hyperhive/frontend/packages/dashboard/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 878f95205b fix(dashboard): wire data-async form submit handler on the C0R3 page
Clicking "update & rebuild" (and cancel / respawn / purge) on /core.html
navigated to the bare `ok` response page instead of submitting async. The
C0R3 page (split out of the dashboard) carries `data-async` forms but its
bundle never had the global submit interceptor — that handler lived inline
in tabs.js, so only the dashboard bundle had it. The forms POSTed natively
and the browser followed the response.

Fix: lift the `data-async` submit handler out of tabs.js into a shared
`bindAsyncForms(onSuccess)` in common.js (which already owns the `form`
helper that builds these forms), and call it from both pages:
- tabs.js: `bindAsyncForms(() => refreshState())` — behaviour-preserving
  (same handler, now imported).
- core.js: add a `refreshState()` (re-fetch /api/state + re-render) used
  for the cold load and as the post-submit refresh, and call
  `bindAsyncForms(() => refreshState())` at boot.

Forms with `data-no-refresh` (e.g. meta-update, which gets its update via
the meta SSE events) skip the refresh, same as before.
2026-06-10 22:17:40 +02:00
..
colors.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
common.css fix(frontend): stack the warning banner + tab bar in one sticky wrapper (#1587) 2026-06-10 01:05:55 +02:00
common.js fix(dashboard): wire data-async form submit handler on the C0R3 page 2026-06-10 22:17:40 +02:00
core.css feat(dashboard): add standalone C0R3 page (system tab → its own page) 2026-06-10 19:51:06 +02:00
core.html feat(dashboard): add standalone C0R3 page (system tab → its own page) 2026-06-10 19:51:06 +02:00
core.js fix(dashboard): wire data-async form submit handler on the C0R3 page 2026-06-10 22:17:40 +02:00
dashboard.css fix(frontend): stack the warning banner + tab bar in one sticky wrapper (#1587) 2026-06-10 01:05:55 +02:00
dashboard.html feat(dashboard): remove the SYST3M tab now that C0R3 owns it 2026-06-10 19:51:06 +02:00
flow.css chore(frontend): scrub pre-existing issue-tag refs from source comments 2026-06-09 00:24:49 +02:00
flow.html refactor(frontend): extract the page-chrome into @hive/shared (#1464 step 3) 2026-06-09 09:13:35 +02:00
flow.js chore(frontend): scrub pre-existing issue-tag refs from source comments 2026-06-09 00:24:49 +02:00
home.css feat(frontend): add icons to the H0M3 link cards (#1582) 2026-06-09 15:03:01 +02:00
home.js feat(frontend): add forge link tile to H0M3 hub 2026-06-10 13:22:24 +02:00
index.html feat(dashboard): add standalone C0R3 page (system tab → its own page) 2026-06-10 19:51:06 +02:00
logs.css fix(dashboard): keep the logs ← home link + sub-tabs on one row 2026-06-10 19:51:34 +02:00
logs.html refactor(frontend): extract the page-chrome into @hive/shared (#1464 step 3) 2026-06-09 09:13:35 +02:00
logs.js refactor(frontend): add createTabStrip + migrate logs sub-tabs (#1464 step 1) 2026-06-08 22:13:41 +02:00
permissions.js refactor(frontend): extract the permissions tab into permissions.js (#1451) 2026-06-09 13:33:43 +02:00
schedules.js fix(frontend): flag gone-agent columns in the schedules table (#1586) 2026-06-10 00:59:07 +02:00
settings.css refactor(frontend): extract the page-chrome into @hive/shared (#1464 step 3) 2026-06-09 09:13:35 +02:00
settings.html refactor(frontend): extract the page-chrome into @hive/shared (#1464 step 3) 2026-06-09 09:13:35 +02:00
settings.js refactor(frontend): move S3TT1NGS to its own /settings.html page (#1464 step 2) 2026-06-08 23:44:22 +02:00
state.js refactor(frontend): extract the agent roster into dashboard/state.js (#1451) 2026-06-09 11:33:28 +02:00
stats.css refactor(frontend): extract the page-chrome into @hive/shared (#1464 step 3) 2026-06-09 09:13:35 +02:00
stats.html refactor(frontend): extract the page-chrome into @hive/shared (#1464 step 3) 2026-06-09 09:13:35 +02:00
stats.js refactor(frontend): move ST4TS to its own /stats.html page (#1464 step 2) 2026-06-09 00:11:43 +02:00
stream-worker.js chore: scrub #NNN issue references from code comments and nix descriptions 2026-06-01 13:30:52 +02:00
tabs.js fix(dashboard): wire data-async form submit handler on the C0R3 page 2026-06-10 22:17:40 +02:00
theme.css refactor(frontend): base16 theme contract in a swappable colors.css 2026-06-08 21:24:07 +02:00
util.js refactor(frontend): extract shared render/format helpers into util.js (#1451) 2026-06-09 14:52:01 +02:00