Commit Graph

4 Commits

Author SHA1 Message Date
Ilya Mukhortov cc0448bfde Release 0.10.0: StatusBadge/Chip sizes, EditDialog and FilterBar panel refresh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 21:38:08 +10:00
Ilya Mukhortov 770e2c35e6 EmptyState, FilterBar, ScheduleGrid, type scale, release 0.7.0
- EmptyState: icon tile, title, description and action; DataTable turns a
  string `empty` into one.
- FilterBar: filters wrap inside their own block, secondary toggles fold into
  an "Ещё" popover, "Сбросить" with a counter stays on the first row.
- ScheduleGrid: day grid by resource with status-coloured events, lanes for
  overlaps, off-hours hatching, clickable free slots and a "now" line.
- DataTable: `loading` skeleton rows and `renderCard` for narrow screens.
- Type scale tokens text-ui (13px), text-2xs (11px), text-3xs (10px) replace
  arbitrary text-[Npx] across the kit.
- Window shell, sidebar and frames use overflow-clip, so scrollIntoView and
  focus can no longer shift them; dark theme frame gets a faint ring.
- PatientPanel actions wrap on phones, pill ContentTabs cap at full width,
  DateRangeInput no longer shrinks in a flex row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:57:30 +10:00
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 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