Watch
0
0
Fork
You've already forked hyperhive
0

frontend: remove the unused vanilla terminal and tab strip, and fix comments that describe removed UI

shared/src/terminal/terminal.js (and its index.js re-export and package export) had no importer: the Preact Row replaced it. The .tail-pill and .load-more-pill rules were only made by it, and the preview's own tail-pill override styled a pill that no longer exists. hive-tab-strip.js had no importer either. Four constants nobody imports are no longer exported. The shared terminal pane section of the web-ui shape doc now describes Row, linkify and markdown instead of the removed factory. Header comments that named removed components (StatusChips, MetaNav, Root.tsx, the cost badge, four folded sections, a detail dialog) now describe the current code.
This commit is contained in:
iris 2026-11-19 18:31:24 +01:00 • committed by mara
commit a1e5855859
4 changed files with 78 additions and 990 deletions

View file

@ -12,7 +12,7 @@ const PREFIX = "swarm-ui:answer:";
export const MAX_AGE_MS = 24 * 60 * 60 * 1000;
/** Where `import.meta.url` names the build: the bundle's file name has its hash. */
export const THIS_BUILD = import.meta.url;
const THIS_BUILD = import.meta.url;
interface Entry {
at: number;

View file

@ -2,7 +2,7 @@
// on at once and, once the request is over, stays on for the rest of `minMs`
// since it came on, so an answer that takes a blink still shows as a refresh
// instead of a flash. Free of Preact (and of the real clock, for the tests).
export const MIN_BUSY_MS = 400;
const MIN_BUSY_MS = 400;
export function createBusyHold(opts: {
/** Called with what to show, only when it changes. */

View file

@ -4,7 +4,7 @@
// nothing.
/** What Tab can reach. */
export const FOCUSABLE =
const FOCUSABLE =
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
/** Move focus into `box`, unless it is already there: onto its first

View file

@ -1,7 +1,7 @@
// Where a table's filter popover sits, without a DOM.
// Space kept between a floating box and the viewport's edge.
export const POPOVER_EDGE_PX = 8;
const POPOVER_EDGE_PX = 8;
/**
* The left edge for a popover of `width` that wants to start at `left`: