Commit Graph

22 Commits

Author SHA1 Message Date
Ilya Mukhortov fbbb4abe15 Release 0.13.2: compact filter actions 2026-10-30 19:55:48 +10:00
Ilya Mukhortov 1933d28a09 Release 0.13.1: polish app sidebar 2026-10-30 17:11:30 +10:00
Ilya Mukhortov a1ca908d3a Release 0.13.0: form controls and responsive UI 2026-10-30 16:43:24 +10:00
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 2cc94b9bd7 Release 0.12.0: TimeRangeInput overnight
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 10:38:54 +10:00
Ilya Mukhortov 65e953b095 Release 0.11.2: DataTable text back to 0.11.0 sizes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:11:49 +10:00
Ilya Mukhortov 818a41e2a1 Release 0.11.1: larger table text, steady pagination, menu icon hover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:00:56 +10:00
Ilya Mukhortov bc92a9b1f7 Release 0.11.0: PageFrame maximize, compact header on phones, draggable ScheduleGrid
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:43:51 +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 00c54130ac Release 0.9.2: FilterBar buttons keep their width
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:55:09 +10:00
Ilya Mukhortov 76fbe9fa2c Release 0.9.1: FilterTabs wraps on narrow screens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:33:57 +10:00
Ilya Mukhortov 6e83bef2a0 Release 0.9.0: FilterTabs, FilterBar drawer, adaptive DataTable columns
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:30:27 +10:00
Ilya Mukhortov 9fa8a46edc LoginScreen, 14px section tabs, release 0.8.0
- LoginScreen: login page layout, the form in a centered card on a soft dot
  grid, `note` under the card and `footer` at the bottom of the screen.
- Section tabs (PageTabs, "ещё N") and the PageFrame title move from 13px to
  14px and still match each other.
- Sidebar open cards under menu items move from 13px to 14px.
- text-ui (13px) is now meant for meta lines under a title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 09:24:07 +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 1d9c935b1e LoginForm without remember-me and forgot-password, release 0.6.0
Breaking: LoginCredentials has no `remember` field and LoginForm no longer
takes `onForgotPassword`. The form is login, password, sign-in and the
electronic signature button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 16:21:02 +10:00
Ilya Mukhortov 96239dd064 Window shell, section tabs, CopyValue, SearchField, release 0.5.0
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>
2026-10-25 12:07:20 +10:00
Ilya Mukhortov 4d04e9af68 Notice, Chip, Autocomplete, loading indicators, release 0.4.0
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>
2026-10-25 11:52:31 +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 7446adc55c Add LoginForm and InputOTP, release 0.2.0
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>
2026-10-25 11:31:17 +10:00
Ilya Mukhortov 5d22cf4948 Install from git: README, repository field, .gitignore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 10:50:59 +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