Skip to content

✨ dashboard: pop out the Hive activity monitor into its own window and a full-screen toggle - #15830

Merged
clubanderson merged 2 commits into
v5from
feat/activity-monitor-popout
Oct 30, 2026
Merged

clubanderson merged 2 commits into
v5from
feat/activity-monitor-popout

Conversation

@clubanderson

Copy link
Copy Markdown
Member

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.js flags body.popout-mode before first paint and css/popout.css removes 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 in localStorage, so there is no second login; the title is Hive · 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 shared body.ham-fullscreen layout (the document rather than the section so body-level toasts stay visible); the label flips to Exit full screen, Esc exits natively, and f toggles 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.open to the same origin needs no directive.

Tests. src/pkg/dashboard/stage_tracker_popout.test.js (node:test, lifted from the shipped index.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 the f hotkey predicate. go test ./pkg/dashboard/... and node --test src/pkg/dashboard/*.test.js pass; index.html regenerated with make dashboard-gen.

Docs: new "Pop out and full screen" entry in src/docs/dashboard-sections/activity-monitor.md; changelog fragment changelog.d/added-15829-activity-monitor-popout.md.

…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>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Oct 30, 2026
@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign kellyaa for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Oct 30, 2026
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Open PR overlap check

Base branch: v5

Conflicts are checked with every PR merged onto the current tip of v5, so a PR that only needs a rebase is not reported as conflicting with its siblings.

PR Title Relation Files
#15774 ✨ dashboard: onboarding and GitHub App errors point to the Getting Started guide same files src/pkg/dashboard/static-src/js/refresh.js
src/pkg/dashboard/static-src/js/welcome.js
src/pkg/dashboard/static/index.html
#15853 ✨ Complete native GitHub queue CI and policy integration same files src/pkg/dashboard/static/index.html
#15831 🐛 Merge train seats only PRs green and reviewed on their current head; regressed members are ejected same files src/pkg/dashboard/static/index.html
#15804 ✨ Show the upgrade animation for every roll (announce + SIGTERM fallback) same files src/pkg/dashboard/static-src/js/sse-bootstrap.js
src/pkg/dashboard/static/index.html
#15817 🐛 activity monitor: 'merging now' lingers, silent merges, closed rows vanish same files src/pkg/dashboard/static/index.html
#15771 🌱 refactor: split tracker row source same files src/pkg/dashboard/static-src/manifest.txt
#15834 ✨ stage tracker: PR sub-row names the other issues it also closes same files src/docs/dashboard-sections/activity-monitor.md
src/pkg/dashboard/static/index.html
#15849 ✨ Show online ClankeR IDs on the Contributors count pill same files src/pkg/dashboard/static/index.html

@hivecommons-hive

Copy link
Copy Markdown
Contributor

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

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no findings from this perspective.

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@hivecommons-hive

Copy link
Copy Markdown
Contributor

stage 080-awaiting-merge-admission → 050-review-pending: required-check-pending:Sign-off survives the squash

@hivecommons-hive

Copy link
Copy Markdown
Contributor

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

@clubanderson
clubanderson merged commit 19d5b09 into v5 Oct 30, 2026
78 of 79 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the feat/activity-monitor-popout branch October 30, 2026 19:01
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

We'd love to hear how your experience was: share feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ dashboard: pop out the Hive activity monitor into its own window and a full-screen toggle

1 participant