Commit Graph

9 Commits

Author SHA1 Message Date
Ilya Mukhortov dae5d7d533 Make form errors readable and add a shared phone field.
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>
2026-10-30 11:59:01 +10:00
Ilya Mukhortov feb14ffcfd DataTable: row text and cell captions back to 0.11.0 sizes
Rows are 14px again and small cell captions 12px; the text-table token
is gone. Only the header keeps 13px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:11:33 +10:00
Ilya Mukhortov 5a2b156bef DataTable: one step larger text
Row text is 15px (new text-table token), header and small cell captions
13px instead of 12px, in the phone card view too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:00:13 +10:00
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 50a01fc34e DataTable: container-width columns, grow and minWidth
Columns now adapt to the table's own width instead of the window's:
minWidth hides secondary columns, grow columns take the free space and
shrink first, and cardsBelow (640px) switches to renderCard cards.
useElementWidth moves to hooks/ and is still re-exported from chart-hover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:12:03 +10:00
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 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 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