Commit Graph

58 Commits

Author SHA1 Message Date
Ilya Mukhortov 835fa7bd99 TimeRangeInput: minimal width, remove button overlays the corner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 08:07:36 +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
Ilya Mukhortov 83d3e840b5 Doctors section: list, week schedule, interval settings, schedule profiles
- doctors open as section tabs; tab remembers subsection and week (?week=)
- list: search, alphabet (only present letters), specialty chips with
  counts, grouped by specialty, today's load, quick links to subsections
- schedule: week grid built from intervals and profiles; free/booked/past
  slots, live queue for zero-duration profiles, book via patient picker,
  cancel with undo, open patient card from a slot, vacation/off days
- settings: intervals with dates, active/vacation, «continue» copy,
  per-block weekday hours with presets; validation incl. overlaps;
  draft survives tab switches
- profiles: accordion form (duration, color, place, flags, funding,
  services), save/reset, delete with confirmation and usage warning
- mock intervals moved from 2018 to Sep–Dec 2026; deterministic demo
  appointments around today (some linked to patient cards)
- kit: TimeRangeInput, ConfirmDialog, SaveBar; ScrollArea horizontal;
  section tabs honour an explicit href when opening an existing tab

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:27:14 +10:00
Ilya Mukhortov c4cc228d80 Notifications and messages sections; live nav badges
- notifications: day groups, unread/read/all, type filters with counts,
  mark one/all read with undo, «Перейти» routes to the section
- messages: inbox with search and dm/group filter, thread with day
  dividers and grouped bubbles, Enter to send, per-chat drafts shown
  in the inbox, «Написать» colleague picker that opens or creates a DM;
  single pane on narrow screens
- sidebar badges for notifications/messages come from the stores
- sidebar collapses to an icon rail below 768px
- shared createStore (tasks store moved onto it), date helpers,
  SearchInput in the kit
- fix: effects returned scrollIntoView's Promise in recent Chrome

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:16:37 +10:00
Ilya Mukhortov 37c0248629 Tasks section: list, create form, task card with section tabs
- tasks open as section tabs (#1004, «Новая задача»), mirrored in sidebar
- list: search, status multi-select, segments, «мои задачи», reset,
  sorting and pagination; filters kept in the URL
- create: validation, multi-selects, date/time, file drop with previews;
  draft survives tab switches
- card: status change, priority, editable executors/observers,
  due badge, files, replies (private, reply-to, edit/delete own)
- in-memory tasks store shared by all tabs
- kit: MultiSelect, PersonChip/PersonAvatar, FileDrop, FormField/FormSection,
  removable FileGallery tiles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:08:57 +10:00
Ilya Mukhortov 6d1a8719be Extract reusable kit components and add /ui showcase
Kit (src/components/kit): PageTabs, ContentTabs, PatientPanel, DataTable
with sorting, Pagination, FileGallery (image lightbox, PDF preview),
StatusBadge, StatTile, InfoSection/Field, DateLeaf, PageFrame, CodeBlock.
Patient pages now use them; search results are sortable; documents show
attachments. Replace next-themes with a small ThemeProvider (React 19
warned about its inline script).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 21:49:10 +10:00
Ilya Mukhortov 687a880a08 Thin auto-hiding overlay scrollbars; inbox icons below search
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 21:33:03 +10:00
Ilya Mukhortov 89f0d22357 Initial React + shadcn/ui scaffold: layout, section tabs, patients
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 21:21:07 +10:00