hyperhive/frontend/packages/shared/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 9720bdfad0 settings: move the theme/motion panel into @hive/shared, add motion to agent
Review feedback on this PR (mara): "i think the component should be
shared. motion setting is missing." Both addressed:

- `settings-storage.ts` (generic localStorage hook), `theme-apply.ts`,
  `motion-apply.ts`, and `SettingsMenu.tsx`/`.css` all move from
  swarm-ui's `lib/`/`shell/` into `@hive/shared/src/settings/` —
  agent's previous local copies are deleted outright rather than kept
  as a second implementation. One component, `Badge` trigger
  everywhere (already used elsewhere in swarm-ui, so not a new visual
  language there either) — storage keys stay caller-owned (`themeKey`/
  `motionKey` props + matching `useApplyThemeOverride`/
  `useApplyMotionOverride` calls at each package's single mount point)
  so agent and swarm-ui keep fully independent, non-colliding
  persisted settings.
- Agent's settings menu now includes the motion row, matching
  swarm-ui's. No animation in the agent package is gated behind
  `data-motion` yet — same as when swarm-ui first built this plumbing
  ahead of having a consumer — so it's currently inert there, ready for
  whenever agent grows a motion-guarded animation.
- swarm-ui's own theme default flips to `'dark'` as part of this move
  (`theme-apply.ts`'s new default), superseding PR #3715 — that PR
  becomes redundant once this lands and will be closed rather than
  merged, to avoid the two colliding on the same file.

Verified end-to-end with real screenshots on both pages: shared
component renders identically (Badge trigger, theme+motion rows, dark
default) on agent's mock server and a static rebuild of swarm-ui's
dist.
2026-08-29 11:11:39 +02:00
..
api-error-panel frontend: add WarnBanner Preact component, compose ApiErrorPanel from it 2026-08-17 23:11:11 +02:00
badge theme: add --muted-on-dim, a --muted anchored to --purple-dim instead of --bg 2026-08-29 10:43:38 +02:00
dropdown theme: add --muted-on-dim, a --muted anchored to --purple-dim instead of --bg 2026-08-29 10:43:38 +02:00
hive-btn frontend: one component = one dir for hive-btn/hive-dialog/hive-toast 2026-07-31 21:53:28 +02:00
hive-dialog fix: reinstate the style-tag doc-comment fix lost when the merge commit was dropped for a rebase 2026-07-31 21:56:50 +02:00
hive-menu frontend: guard hive-menu/hive-agent-menu connectedCallback against reconnect 2026-08-01 01:57:06 +02:00
hive-toast fix: reinstate the style-tag doc-comment fix lost when the merge commit was dropped for a rebase 2026-07-31 21:56:50 +02:00
hive-warn frontend: hive-warn — replace severity+pulse with info/warning/error levels 2026-08-03 18:34:31 +02:00
jobq-graph apply the same render(h(...)) simplification to JobqGraph 2026-08-16 22:08:38 +02:00
jobq-rollup drop the mountJobqRollup wrapper, render(h(...)) directly 2026-08-16 22:08:38 +02:00
settings settings: move the theme/motion panel into @hive/shared, add motion to agent 2026-08-29 11:11:39 +02:00
side-panel frontend: drop the Panel forwarding object and the side-panel-body compat class 2026-08-01 00:58:53 +02:00
tabs frontend: add <hive-tab-strip>, convert logs/credentials/core/builds tabbars 2026-08-02 13:40:24 +02:00
terminal agent web UI: add terminal verbosity setting (expand tool output by default) 2026-08-02 18:25:45 +02:00
warn-banner frontend: add WarnBanner Preact component, compose ApiErrorPanel from it 2026-08-17 23:11:11 +02:00
api-error.ts frontend: fix api-error.ts's stale in-transition comment 2026-08-17 23:11:11 +02:00
base.css swarm-ui: fix inconsistent header icons + body edge gap 2026-08-24 18:38:12 +02:00
chrome.css fix(dashboard): keep the logs ← home link + sub-tabs on one row 2026-06-10 19:51:34 +02:00
colors.css swarm-ui: delete StatusChip, migrate its 3 callers to shared Badge 2026-08-28 13:21:49 +02:00
dom.js frontend: hive-btn — drop the is= customized-built-in, use an autonomous element instead 2026-07-29 23:17:19 +02:00
forms.js frontend: extract themed dialogs + async-form handler to shared, wire agent UI 2026-07-27 18:55:17 +02:00
index.js frontend: move shared/terminal.js+css into one-dir terminal/ 2026-08-01 01:56:41 +02:00
modal.js frontend: one component = one dir for hive-btn/hive-dialog/hive-toast 2026-07-31 21:53:28 +02:00
pill.css frontend: unify pill/chip/badge shape into shared CSS 2026-08-12 19:25:45 +02:00
prefs.js move terminal-verbosity toggle from agent overflow menu to /settings.html 2026-08-02 18:34:40 +02:00
shadow-css.js review(#2873): use a plain <style> element instead of adoptedStyleSheets 2026-07-31 21:53:28 +02:00
theme.css theme: add --muted-on-dim, a --muted anchored to --purple-dim instead of --bg 2026-08-29 10:43:38 +02:00