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 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 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 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