Screen readers hear field errors, phone entry keeps the caret, table rows open from the keyboard, and mask logic is covered by tests.
Co-authored-by: Cursor <cursoragent@cursor.com>
- 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>
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>
- 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>
- 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>
- 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>
- «Выбор услуг» 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>
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>