Commit Graph

66 Commits

Author SHA1 Message Date
Ilya Mukhortov c3d7774df9 useSectionTabState: form state that survives leaving a section tab
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:44:38 +10:00
Ilya Mukhortov 7eec39a93e Presence status on sidebar user avatar
PresenceDot, PRESENCE labels/tones and PRESENCE_ORDER; AppSidebar
user.presence shows the dot on the avatar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:22:03 +10:00
Ilya Mukhortov 5f021385fa SectionFrame remembers scroll position per address
useScrollMemory(ref, key) records every scroll container inside ref and
restores it when the key comes back, holding the position until layout
settles. SectionFrame keys it by pathname + search, so section tabs and
in-card sub-tabs return to where the user left them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 16:17:05 +10:00
Ilya Mukhortov a413c3893d Release 0.22.0: sidebar card tones, borderless cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 09:55:47 +10:00
Ilya Mukhortov ab65f4467b Release 0.21.0: Graphite style, sidebar color tokens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 21:42:54 +10:00
Ilya Mukhortov d88896f40d Release 0.20.0: dismissible sidebar cards, footerExtra above footer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:30:19 +10:00
Ilya Mukhortov f0468527cb Release 0.19.0: rotating sidebar cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 15:27:27 +10:00
Ilya Mukhortov 48ff0d03ed Release 0.18.0: sidebar footer slot, actions in logo row.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 15:11:32 +10:00
Ilya Mukhortov 32eb1775bc Release 0.17.0: plain title variant for PageFrame.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:49:13 +10:00
Ilya Mukhortov 2b0f94bddd Release 0.16.0: sidebar action buttons beside search.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:44:22 +10:00
Ilya Mukhortov 08ef767b63 Release 0.15.0: file type icon and upload progress.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:41:14 +10:00
Ilya Mukhortov b57b3e1ad0 Release 0.14.2: white autocomplete value.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-01 20:40:51 +10:00
Ilya Mukhortov cba5581c5d Release 0.14.1: filter panel matches the form layout.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-01 17:07:33 +10:00
Ilya Mukhortov 5a76d695bb Release 0.14.0: filter toggle.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-01 16:55:03 +10:00
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 14e2806142 Add rich autocomplete values 2026-10-30 16:39:47 +10:00
Ilya Mukhortov 2386174d9a Improve responsive UI presentation 2026-10-30 16:25:52 +10:00
Ilya Mukhortov a948542326 Add popover filters and calendar alignment 2026-10-30 16:08:30 +10:00
Ilya Mukhortov 3cb17740c5 Keep later date digits in place when a middle digit is deleted.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 13:54:15 +10:00
Ilya Mukhortov 77fd8fd1dd Let the calendar year be typed when the year list is long.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 13:23:36 +10:00
Ilya Mukhortov 5441245827 Use the kit select for calendar month and year so the list stays with the popover.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 13:00:07 +10:00
Ilya Mukhortov 93208fb911 Keep the date range year visible and ring the whole field.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-30 12:38:43 +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 1cad1831b1 ScheduleGrid: compact view, time only on cards
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 10:58:38 +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 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 b960dd334f Pagination: larger text, pages stay put when switching
Three-column grid keeps the page numbers centred whatever the range
label width; with many pages there are always 7 slots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 12:00:13 +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 5d137d4ae6 AppSidebar: menu icon turns teal and gently grows on hover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:57:10 +10:00
Ilya Mukhortov 019b5caa07 PageFrame: maximize button, icon-only header on phones
PageFrame now sits on SectionFrame and gets the same maximize button
(Alt+F, Esc) as section tab bars; the unreleased expanded prop is gone.
Below md, header action buttons with an icon, the PageFrame title and
section root tabs collapse to their icons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 11:43:37 +10:00
Ilya Mukhortov 4cd590f3a7 PageFrame: expanded prop to cover the whole window
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 10:45:14 +10:00
Ilya Mukhortov 9bdaec0fbd ScheduleGrid: drag to pan, scale fills the viewport
Mouse drag scrolls the grid (grab cursor), a drag doesn't trigger
event or slot clicks. A short day extends the time scale to the bottom
of the viewport instead of leaving empty space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 10:45:14 +10:00
Ilya Mukhortov b7c038c9d7 SearchInput: bordered like Input, matching Select in FilterBar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 10:31:53 +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 3024d5b63f FilterBar: stable button widths, dot on reset, muted zero on more
«Сбросить» shows a dot above the label instead of a count (the count is
in the tooltip), and «Ещё» always shows its count, a faint 0 when no
extended filter is on, so neither button changes width as filters change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:54:23 +10:00
Ilya Mukhortov a6d31e9744 FilterTabs: wrap options instead of clipping them on narrow screens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:33:07 +10:00
Ilya Mukhortov 6aa1db25aa FilterTabs: multi-select pill tabs with counts and status highlight
Like ContentTabs variant="pill" but several options can be on at once;
an empty value means «Все». Options take count and tone; highlight
colors selected options with their status tone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:29:09 +10:00
Ilya Mukhortov c9be29e6fb FilterBar: extended filters in a right-side drawer
The «Ещё» button now always opens a sheet on the right with the `more`
filters (applied immediately, «Сбросить все» and «Готово» in the footer).
«Ещё» and «Сбросить» sit at the right edge and wrap below on narrow bars.
New FilterSwitch for toggles in the drawer. collapseAt is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 17:29:09 +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 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 7ac2af1b8b PatientPanel: cake icon before the birth date, birthIcon slot
The icon can be replaced via the birthIcon prop (e.g. with an interactive one).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 11:48:22 +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