Skip to content

Conversation

@kasvith
Copy link
Contributor

@kasvith kasvith commented Jan 19, 2026

Summary

  • Add new /doctors/:id view page that displays doctor information and their surgery history
  • Add listSurgeriesByDoctorId backend API to query surgeries where a doctor was involved (as surgeon or assistant)
  • Support filtering surgeries by role (All/Surgeon/Assistant) using tabs
  • Update navigation to use view page instead of edit page (doctor list, command palette)
  • Fix query cache invalidation after editing a doctor

Test plan

  • Navigate to Doctors list and click on a doctor row → should open view page
  • Verify doctor info displays correctly in sidebar (name, designation, SLMC, dates)
  • Verify surgeries table shows correct data with role badges
  • Test role filter tabs (All/Surgeon/Assistant)
  • Test search functionality in surgeries table
  • Test pagination if doctor has many surgeries
  • Click surgery BHT → navigates to surgery view
  • Click patient name → navigates to patient view
  • Click Edit button → navigates to edit doctor page
  • Edit doctor and save → verify view page shows updated data
  • Test command palette (⌘K) → search doctor → click → opens view page

- Add /doctors/:id view page showing doctor info and surgeries
- Add listSurgeriesByDoctorId API to query surgeries by doctor role
- Support filtering by role (Surgeon/Assistant/All) with tabs
- Update doctor list and command palette to navigate to view page
- Fix query invalidation after editing doctor
- Generate QR code for WhatsApp invite link
- Display QR code in Support > Community section
- Add WhatsApp link and QR to README
- Remove WhatsApp from issue template config
@kasvith kasvith merged commit e9aa47e into main Jan 19, 2026
2 checks passed
@kasvith kasvith deleted the feat/doctor-view branch January 19, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants