Commit Graph

2 Commits

Author SHA1 Message Date
Ilya Mukhortov 0f02a3c252 Extract UI kit into Medkit workspace package (@medkit/ui)
Move shadcn primitives, kit components, charts, theme provider, shared
hooks and utils (cn, format, masks, clipboard) into packages/medkit,
consumed as source via npm workspaces. The app now imports everything
from "@medkit/ui".

- Package-internal imports are relative; no @/ alias inside the kit
- Theme tokens, fonts and base styles move to @medkit/ui/styles.css,
  which registers its own @source so classes are found from node_modules
- NotifyToaster takes a navigate prop instead of depending on
  react-router; the app mounts it in App with useNavigate()
- Kit-only dependencies move to the package; react, react-dom and
  tailwindcss are peers
- Drop components.json (shadcn CLI unused, aliases no longer valid)
- Update UI docs and add a package README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 10:48:51 +10:00
Ilya Mukhortov c099858ad7 Registry and Schedule sections on top of the shared doctors store
- registry: section tabs — «Регистратура» day overview (stats, today's
  queue with next-step buttons, nearest free slots) and parallel
  «Запись на приём» tabs; tab label shows the chosen patient
- booking wizard: free slots of all doctors by date range, day part,
  specialty, doctor → patient, funding, service, comment → ticket;
  same-day warning, same-time block, «slot just taken» guard;
  reschedule cancels the old appointment
- schedule: day list across doctors with date nav, doctor/patient
  filters, status pills, online/canceled toggles, sorting; side sheet
  with appointment details and status flow (пришёл → на приёме →
  завершён, неявка, отмена с подтверждением, перенос)
- appointments gain status, source, booked by/at, funding, service,
  comment; demo data derives statuses from the current time
- patient card «Записать на приём» opens a booking tab with the patient
- kit: Stepper, PatientPicker; shadcn sheet

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 07:43:08 +10:00