Repository navigation
✨ dashboard: pop out the Hive activity monitor into its own window and a full-screen toggle - #15830
Conversation
…d a full-screen toggle Two header buttons next to the gear (#15829): ⧉ opens the SPA in a named popup on ?popout=1#section-activity-monitor-section (boot.js flags the body before first paint; css/popout.css removes the chrome and every other section; same localStorage bearer token, so no second login; title 'Hive · Activity Monitor · <hive id>'; ⤶ Return to dashboard focuses the opener and closes), and ⛶ toggles the Fullscreen API on the document with a body class sharing the same layout so toasts stay visible; f toggles it with focus in the tracker. Nothing persisted beyond the popout URL. Signed-off-by: Andrew Anderson <andy@clubanderson.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
|
stage 080-awaiting-merge-admission: no activity for 30m0s: merge-train:queued-behind#15748:3/10:0/0:openapi.json,main.go,main_sweeps.go,auth.md,+27 |
There was a problem hiding this comment.
Reviewed (correctness) — read head f8a6a31: the data-action dispatcher resolves window[action] (static/index.html:43312), so the three new top-level handlers wire up; index.html matches static-src for tracker-popout.js/popout.css/boot.js; no competing f hotkey or document.title writer exists; node --test stage_tracker_popout.test.js passes 8/8 against the shipped index.html.
Low — a hidden activity monitor leaves the pop-out blank. dashboardCanHideSection only denies overview-section (index.html:10400), so the operator can hide the activity monitor from the nav; dashboardApplyHiddenSections then adds .dashboard-section-hidden (index.html:10419), which is display:none !important (index.html:257). css/popout.css forces a collapsed body open (lines 36–37) but nothing overrides hidden, and the pop-out shares localStorage with the main window — hide the section there, reload the pop-out (or open it from a bookmark), and the window is empty with no way back except the URL. Kiosk has the same gap, but the pop-out is the first attended path to it.
body.popout-mode #activity-monitor-section.dashboard-section-hidden,
body.ham-fullscreen #activity-monitor-section.dashboard-section-hidden { display: block !important; }
(append to src/pkg/dashboard/static-src/css/popout.css after the .section-body.collapsed rule, then make dashboard-gen.)
Nit: tracker-popout.js:9 still says "⛶ toggles the Fullscreen API on the section itself"; the code and the comment at line 86 go full screen on the document.
— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88
|
stage 080-awaiting-merge-admission → 050-review-pending: required-check-pending:Sign-off survives the squash |
|
stage 080-awaiting-merge-admission: no activity for 30m0s: merge-train:queued-behind#15748:6/9:0/0:main.go,main_sweeps.go,auth.md,dashboard-misc.md,+14 |
|
Thank you for your contribution! Your PR has been merged. We'd love to hear how your experience was: share feedback |
Closes #15829
Usage. The Hive activity monitor's card header gains two buttons beside the ⚙ gear. ⧉ Pop out opens the dashboard in a new browser window (
window.open(…, 'hive-activity-monitor', 'popup,width=1600,height=900')) on?popout=1#section-activity-monitor-section;boot.jsflagsbody.popout-modebefore first paint andcss/popout.cssremoves the sidebar, topbar, notices, chat and every other section, so the window is the tracker alone — drag it to another monitor. SSE/polling, toasts, sounds, the Merged bee and the settings gear keep working; the bearer token is already inlocalStorage, so there is no second login; the title isHive · Activity Monitor · <hive id>; a ⤶ Return to dashboard pill focuses the opener and closes the pop-out; reloading keeps the layout because the flag lives in the URL. ⛶ Full screen toggles the Fullscreen API on the document with a sharedbody.ham-fullscreenlayout (the document rather than the section so body-level toasts stay visible); the label flips to Exit full screen, Esc exits natively, andftoggles it while focus is inside the tracker (never while typing or with a modifier). Nothing is persisted; kiosk mode is unchanged. CSP is untouched —window.opento the same origin needs no directive.Tests.
src/pkg/dashboard/stage_tracker_popout.test.js(node:test, lifted from the shippedindex.html): pop-out URL building and the return URL, popup open/blocked, popout-mode wiring and CSS, title sync, return-to-dashboard, fullscreen request/exit + label flip + Esc rollback, refused fullscreen, and thefhotkey predicate.go test ./pkg/dashboard/...andnode --test src/pkg/dashboard/*.test.jspass;index.htmlregenerated withmake dashboard-gen.Docs: new "Pop out and full screen" entry in
src/docs/dashboard-sections/activity-monitor.md; changelog fragmentchangelog.d/added-15829-activity-monitor-popout.md.