refactor(dashboard): drop the P33RS tab, fold peers + identity into SW4RM (#1535)
Removes the standalone P33RS tab + pane. Peer hives now render as a headline section at the bottom of the SW4RM pane; the swarm/hive name moves off the cramped strip above the tabbar into a headline at the top of SW4RM. Both are quiet when nothing's configured: - swarm/hive identity → `#swarm-identity` h2 in the SW4RM pane (hidden until hive_name/swarm_name are set), replacing the `#hive-identity` banner-thin line above the tabbar. - peer hives → `#peers-block` headline + `#peers-section` cards in the SW4RM pane. When no peers are federated the headline block is hidden entirely and a grey "no peer hives configured" note shows in its place. - drops `peers` from the tab list + the per-refresh peers-tab gating; renderPeerHives now toggles its own headline. No backend change — still reads `state.peer_hives` + `hive_name` / `swarm_name`. Build green.
This commit is contained in:
parent
e1c276a06e
commit
0a0038f23c
2 changed files with 30 additions and 36 deletions
|
|
@ -22,10 +22,6 @@
|
|||
dashboard all link back to the landing page rather than to each
|
||||
other — H0M3 is the single navigation hub. -->
|
||||
<a class="dash-home-back" href="/" title="back to the H0M3 menu">← home</a>
|
||||
<!-- Hive identity line: swarm/hive label. Hidden until JS populates
|
||||
it from /api/state (hive_name + swarm_name). Falls back to
|
||||
hostname when only the domain is configured. -->
|
||||
<p class="banner-thin" id="hive-identity" hidden></p>
|
||||
<nav class="tabbar" id="tabbar" role="tablist">
|
||||
<a class="tab" id="tab-swarm" href="#swarm" role="tab"
|
||||
aria-controls="tab-pane-swarm"
|
||||
|
|
@ -73,14 +69,8 @@
|
|||
<span class="tab-label">◆ ST4TS ◆</span>
|
||||
</a>
|
||||
|
||||
<!-- P33RS: peer hive navigation links. Hidden until at least one
|
||||
peer is configured in `services.hyperhive.peers`. -->
|
||||
<a class="tab" id="tab-peers" href="#peers" role="tab"
|
||||
aria-controls="tab-pane-peers"
|
||||
data-tab="peers" hidden>
|
||||
<span class="tab-label">◆ P33RS ◆</span>
|
||||
<span class="tab-count" id="tab-count-peers" hidden></span>
|
||||
</a>
|
||||
<!-- (Peer hives are no longer a tab — they render as a headline
|
||||
under SW4RM. See tab-pane-swarm.) -->
|
||||
|
||||
<!-- FL0W, L0GS, and M4TR1X are separate pages reachable from the
|
||||
H0M3 hub (served at /), not from the dashboard tab strip — the
|
||||
|
|
@ -122,9 +112,21 @@
|
|||
— the tab label SW4RM already says it. -->
|
||||
<section class="tab-pane" id="tab-pane-swarm"
|
||||
role="tabpanel" aria-labelledby="tab-swarm">
|
||||
<!-- Swarm / hive identity headline. Populated by refreshState from
|
||||
hive_name + swarm_name; stays hidden when neither is set. -->
|
||||
<h2 id="swarm-identity" hidden></h2>
|
||||
<div id="containers-section">
|
||||
<p class="meta">loading…</p>
|
||||
</div>
|
||||
<!-- Peer hives (federated swarms). The headline block is hidden
|
||||
entirely when nothing is federated; renderPeerHives then drops
|
||||
a quiet "no peer hives configured" note into #peers-section. -->
|
||||
<div id="peers-block" hidden>
|
||||
<h2>◆ P33R H1V3S ◆</h2>
|
||||
<div class="divider">══════════════════════════════════════════════════════════════</div>
|
||||
<p class="meta">peer hives in this swarm. click a card to open that hive's dashboard.</p>
|
||||
</div>
|
||||
<div id="peers-section"></div>
|
||||
</section>
|
||||
|
||||
<!-- Y3R C4LL: things blocked on operator decision. Approvals +
|
||||
|
|
@ -221,18 +223,6 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<!-- P33RS: peer hive link cards. Rendered from state.peer_hives;
|
||||
hidden when the list is empty. -->
|
||||
<section class="tab-pane" id="tab-pane-peers"
|
||||
role="tabpanel" aria-labelledby="tab-peers">
|
||||
<h2>◆ P33R H1V3S ◆</h2>
|
||||
<div class="divider">══════════════════════════════════════════════════════════════</div>
|
||||
<p class="meta">peer hives in this swarm. click a card to open that hive's dashboard.</p>
|
||||
<div id="peers-section">
|
||||
<p class="meta">loading…</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- SCH3DUL3S: scheduled prompts. Creation + edit are folded
|
||||
into the same table — empty bottom row is the create form
|
||||
(fill cells, click +), inline-edit-row expands on the `✎`
|
||||
|
|
|
|||
Loading…
Reference in a new issue