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>
Replacements for MUI pieces the LIS still uses:
- Notice: inline error/warning/info/success message with title, action, close
- Chip: static, selectable, with count or remove button; MultiSelect chips use it
- Autocomplete: type-in field with suggestions, local filter or server search
- Spinner, LoadingBar, indeterminate Progress
- RadioGroup and Collapsible (height animation) from shadcn
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>
LoginForm covers login/password, sign-in with an electronic signature
and a second step with a one-time code when onLogin (or onSignature)
returns an OtpChallenge. Errors are thrown from the async callbacks and
shown in the form.
- Password field: show/hide toggle, Caps Lock hint
- OTP step: auto-submit on the last digit, wrong code clears the field,
resend after a countdown when the code was sent somewhere, back to
the password step
- InputOTP primitive from shadcn (input-otp dependency), caret-blink
animation in styles.css
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- 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>
- 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>
- 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>
- 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>
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>