Commit Graph

3 Commits

Author SHA1 Message Date
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 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 c4cc228d80 Notifications and messages sections; live nav badges
- notifications: day groups, unread/read/all, type filters with counts,
  mark one/all read with undo, «Перейти» routes to the section
- messages: inbox with search and dm/group filter, thread with day
  dividers and grouped bubbles, Enter to send, per-chat drafts shown
  in the inbox, «Написать» colleague picker that opens or creates a DM;
  single pane on narrow screens
- sidebar badges for notifications/messages come from the stores
- sidebar collapses to an icon rail below 768px
- shared createStore (tasks store moved onto it), date helpers,
  SearchInput in the kit
- fix: effects returned scrollIntoView's Promise in recent Chrome

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:16:37 +10:00