Commit Graph
19 Commits
Author SHA1 Message Date
hamedandClaude Opus 4.8 ff54daf1ae fix(doctor): unwrap double-nested API response and guard empty sections
The GET /api/v1/doctor/{uuid} response is double-nested
({ success, data: { data: {...} } }), but the page only unwrapped one
level, leaving every field (name, specialties, expertise, address)
undefined — so خدمات / موقعیت مکانی / نظرات rendered empty or broken.

- Extract the doctor object with res.data?.data?.data in both
  generateMetadata and the page.
- Hide the خدمات block when expertise is empty (no fabricated data).
- Render the location map iframe and routing buttons only when the
  address has real latitude/longitude (was building q=null,null).
- Fix the comments list rendering a stray 0 on empty arrays.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 15:18:06 +03:30
ehsan e1510b142b handle download poster and qrcode, fix to show timestamp, add pagination to doctors page 2025-10-02 02:52:26 +03:30
ehsan b10fa6259e fix bug modal search location in home && send request after click on continue for update list clinics && change style on hover text of specialties and service in clinics page && add loading for list of clinics && fix bug page doctor item && link footer to clinic-pro 2025-09-29 00:36:55 +03:30
Ehsan 41ba7aa709 add auto-selecotr to home page and handle set in data, search in specialties and send req for filter && add locations and change text 2025-09-15 19:45:39 +03:30
Ehsan c6e2657e45 change design and data list in doctor-item & handle component appointment in doctor-item & handle functionality date-picker & fix bug appointment page & add req get appointment list 2025-07-09 03:05:48 +03:30
Ehsan 0217e5e67e change data blog item and clinic item & change pages clinic and clinic to ssr & remove loading & handle pagination page clinics 2025-06-02 06:04:49 +03:30
Ehsan e292176a61 handle limit page dashboard & change header profile user & get data from api in page clinics & clinic item and doctor item 2025-06-01 01:08:25 +03:30
Ehsan 254d5d4ebd change format all file 2025-05-18 01:18:35 +03:30
Ehsan a8a320465d change name in register & add link to most-searched home page & change tag & change design and responsive & fix active link header & must include field num in register & send code msg 2025-05-13 22:07:03 +03:30
Ehsan eda896e917 add prettier formatter to all file 2024-09-25 11:03:44 +03:30
Ehsan fa38ee2b21 change home page and style buttons 2024-09-25 10:50:26 +03:30
Ehsan c45a161fcb add loading all page & change bugs 2024-09-05 22:20:18 +03:30
Ehsan 680ef74034 fix responsive all page & add modal doctor id & page dashboard aside 2024-09-01 01:36:36 +03:30
Ehsan 451ae76cb1 design and responsive page doctor and account 2024-08-30 11:59:53 +03:30
Ehsan 707206450c responsive page doctor item & page booking 2024-08-29 03:18:01 +03:30
Ehsan 6384dd10b6 update design page doctor item & design page account & success and failed pay 2024-08-28 03:14:42 +03:30
Ehsan 381b0a9eea respnsive pages 2024-08-19 21:48:15 +03:30
Ehsan 8a53f60d7e change responsive page doctors & change modal and responsive & responsive page doctor item 2024-08-18 14:39:34 +03:30
Ehsan 7315167325 page doctor detail 2024-07-06 21:46:11 +03:30