NOC tab and Pie Control tidied for phones: Pie Control in the NOC top row, traceroute in Routing & DDoS, government money in the bank

- NOC tab: Pie Control is a button in the top row next to "Open NOC dashboard" (only once the rocket
  company is unlocked) and replaces the Pie in the Sky card; a spat waiting for an answer keeps its card.
  The Connections button is gone (it lives in the NOC dashboard), and the traceroute moved into the
  Routing & DDoS modal as an entry that opens the unchanged traceroute modal.
- Government money (Rural Digital Pie Fund, Pitcairn grant, Ex-Im Pie Bank) is a section of the bank,
  shown with a rocket company or anything of the fund's to show. pieGovOpen, the action the toasts use,
  opens the bank there; pieTab({t:'gov'}) does too.
- Pie Control has four tabs (Traffic, Company, Launch, Dishes) in one segmented control that fits 360 px,
  styled like the HUD's speed buttons. The Founder's posts and the orbit books moved into the Company tab,
  newest three posts shown and the rest folded. A stale UI.pieTab of 'gov', 'book' or 'founder' falls back.
- Agent docs for pieGovOpen, pieTab, routingOpen and connOpen; the route fuzzer drops connOpen from the
  NOC tab on both pages to stay in lockstep with main.
- Tests: tests/noc-panel-layout.test.js, and the pie tests follow the moves.
This commit is contained in:
Frederic Jung 2026-11-06 07:21:52 +01:00
parent 176a6995b1
commit 9d74873edb
No known key found for this signature in database
22 changed files with 207 additions and 68 deletions

View file

@ -5,6 +5,12 @@
.toast .b{pointer-events:auto}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg .b{white-space:normal;text-align:left}
/* A segmented control: one framed row of equal tabs, the active one filled like the HUD's speed buttons (Pie Control). */
.segc{display:flex;gap:3px;padding:3px;margin:6px 0 10px;border:3px solid var(--ink);border-radius:14px;background:var(--soft);box-shadow:3px 3px 0 var(--ink)}
.segc button{flex:1 1 0;min-width:0;min-height:40px;padding:3px 2px;border:2.5px solid transparent;border-radius:10px;background:none;color:var(--ink);font-family:var(--display);font-weight:800;font-size:min(13.5px,3.6vw);line-height:1.1;cursor:pointer;overflow-wrap:anywhere;hyphens:auto}
.segc button:hover{background:var(--paper)}
.segc button.on{background:var(--sun);border-color:var(--ink)}
.segc button:focus-visible{outline:3px solid var(--me);outline-offset:1px}
.toast .tx{flex:1;font-size:13px;line-height:1.35}
.toast .tx b{font-family:var(--display);font-size:14.5px}
@keyframes pop{from{transform:scale(.8) translateY(10px);opacity:0}}

View file

@ -14,3 +14,14 @@
.ops-mood{margin:6px 0 0;font-style:italic;font-size:13px;color:var(--ink2)}
.ops-rep{border-left:3px solid #8E5CF7;background:#F7F2FF;border-radius:0 8px 8px 0;padding:6px 8px;margin:6px 0;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.ops-rep .eyebrow{margin-bottom:2px}
/* Pie Control's Company tab ends with the Founder's feed: a quiet section, older posts folded away. */
.pie-feed{border-top:2px solid var(--line);margin-top:12px;padding-top:4px}
.pie-feed h3{font-size:15px;margin:8px 0 4px}
.pie-feed summary{cursor:pointer;font-weight:800;font-size:13px;color:var(--ink2);padding:8px 0;min-height:24px}
/* Government money in the bank: the same boxes as the loans next to it. */
.bank-gov>.meta{font-size:13px;color:var(--ink2);margin:2px 0 6px;line-height:1.35}
.bank-gov .ops-o{border:2.5px solid var(--ink);border-radius:14px;padding:10px 12px;margin-top:10px}
.bank-gov .ops-o .nm{font-weight:800;font-family:var(--display);font-size:16px}
.bank-gov .ops-o .meta{font-size:12.5px;color:var(--ink2);line-height:1.35}
.bank-gov .fact{display:inline-block;margin-top:2px}
.bank-gov .ops-o p.meta{margin:4px 0}