hyperhive/frontend/packages/agent
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 0680f87d3d refactor(frontend): migrate agent stat-window selector to createTabStrip (#1464 step 1)
Replaces the agent stats page's bespoke window-tab click handler with the
shared createTabStrip (@hive/shared/tabs.js). The selector is now
hash-routed — #1h / #24h / … become deep-linkable and survive
back/forward navigation.

- window buttons use data-tab (was data-w); the strip resolves them by
  that convention and toggles .hive-tab--active + aria-selected.
- onShow(w) sets currentWindow + reloads stats; the strip's initial show
  fires it once, so the explicit loadStats() in DOMContentLoaded is
  dropped (avoids a double fetch).
- the selector keeps its distinct pill look — agent.css now targets
  .window-tabs button.hive-tab--active (was .active), not the shared
  .hive-tab text-tab base. It's a pure data-selector with no panes;
  createTabStrip skips the absent [data-tab-pane] gracefully.

Behaviour-preserving; aria-selected is now standardised on the buttons.
2026-06-08 22:41:54 +02:00
..
src refactor(frontend): migrate agent stat-window selector to createTabStrip (#1464 step 1) 2026-06-08 22:41:54 +02:00
build.mjs refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
package.json frontend: npm dependency updates (#681) 2026-05-31 01:29:35 +02:00