Commit Graph

8 Commits

Author SHA1 Message Date
Ilya Mukhortov 87d12b72ec Text sizes through cn(), tab underline, sticky table header, release 0.7.1
- cn(): tailwind-merge knows text-ui / text-2xs / text-3xs. Before, text-ui
  was taken for a colour and dropped next to text-<colour>, so section tabs
  and other text-ui labels rendered at 16px instead of 13px (regression
  from 0.7.0).
- ContentTabs: the line underline no longer overflows the strip by 1px (the
  strip stopped being vertically scrollable); new `actions` slot puts
  buttons in the same row with one shared bottom line.
- DataTable: sticky header has a solid background and its divider is a cell
  shadow, so it scrolls with the header and rows don't show through.
- PageFrame: the title is a pill like the SectionTabsBar root tab
  (13px medium, same height and position).
- ScheduleGrid: solid sticky header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:14:11 +10:00
Ilya Mukhortov 96239dd064 Window shell, section tabs, CopyValue, SearchField, release 0.5.0
The shell used to be copied into every app; now it lives in the kit:
- ShellProvider: the app passes location, navigate, storageKey and basename,
  so the kit stays router-agnostic and apps on one domain keep separate storage
- AppShell and AppSidebar: groups, badges, disabled items, open section tabs,
  search button, user menu; logo and header extras come from props
- SectionFrame with Alt+F maximize, SectionTabsProvider/SectionTabsBar and hooks,
  useCloseSectionTab instead of closeSectionTab
- createStore in lib/store
- CopyValue: click to copy with a short "Скопировано" tooltip
- SearchField: debounced filter, Enter applies at once, optional select for the next scan
- SearchInput: a passed onKeyDown no longer disables Esc-to-clear

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 12:07:20 +10:00
Ilya Mukhortov ac8617d542 Status dots, page-controlled ConfirmDialog, system theme, release 0.3.0
- ContentTabs: tone dot before the label for status filter tabs;
  tabs with a zero count are dimmed
- StatusBadge: pulse for in-progress states (connecting, waiting for
  the device); StatusDot exported on its own
- ConfirmDialog: trigger is optional, open/onOpenChange let the page
  drive it; pending, error, disabled, content fields, footer,
  extraActions, onClosed. A Promise from onConfirm shows the spinner
  and error by itself and closes on success; the dialog can't be
  closed while pending; focus goes to the first field
- ThemeProvider: "system" mode that follows the OS, defaultTheme and
  storageKey props; Toaster works without the provider
- copyText with an execCommand fallback for plain http; copyToClipboard
  uses it and reports failures
- Dialog and Sheet: close button labelled "Закрыть" for screen readers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 11:41:05 +10:00
Ilya Mukhortov 97ea626045 Date/time widgets everywhere, TimeInput, profile block editing
- Replace native date inputs with DateInput / DateRangeInput (tasks,
  schedule, booking, doctor intervals, patient birth and issue dates)
- New TimeInput: «чч:мм» mask plus hour/minute picker; used for task due time
- Patient create: anonymous patient hides the name fields; SNILS under birth date
- Patient profile: every block edits in its own EditDialog (new kit component,
  InfoSection onEdit pencil); name copies on click; SNILS moved to the header
- UI_COMPONENTS.md / UI_STRUCTURE.md: component reference and design rules
  (dates via DateInput, time via TimeInput, block editing via EditDialog)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 20:31:12 +10:00
Ilya Mukhortov 7ebaac8e1a Patient create form, /ui-form page with date and SNILS inputs, notify toasts
- Patients: create form with masks and validation, patients store
- Kit: SnilsInput, DateInput (manual entry + calendar), DateRangeInput
  (two months, presets), Combobox, notify toasts
- Date mask rejects impossible dates as you type (40.33, 31.04, 29.02.2027),
  pads 4 -> 04, overwrites digits in a full field, keeps the caret in place
- shadcn Calendar on react-day-picker 9 with Russian locale
- /ui-form showcase page, shared Showcase block, notify demo on /ui
- Logo heartbeat animation on hover and click
- .claude/launch.json with dev server configs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 08:23:26 +10:00
Ilya Mukhortov 13960689fd Booking: choose services like in the current MIS
- «Выбор услуг» dialog: doctor's / internal / all services, funding and
  category filters, search, checkboxes, selected total; already added
  services are marked
- booking form: services table with quantity, price, sum, category
  totals; profile's main service is added automatically; at least one
  service required; amount due in the summary and on the ticket
- appointment sheet in Schedule: services with payment status
  (не оплачено / оплачено / возвращено / отказ), totals and refunds
- demo price list (ОМС, платные, ДМС, внутренние) with codes from the MIS
- kit: ServicePicker, ServiceLinesTable (editable and compact modes);
  FormField accepts className; formatMoney

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 08:21:52 +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 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