From fdf4cb75ed92acb0014c2b9a6a4f1733333b446c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 31 Oct 2026 08:49:46 +0000 Subject: [PATCH] =?UTF-8?q?feat(chart=20row):=20a=20glass=20=E2=8B=AF=20me?= =?UTF-8?q?nu,=20a=20status=20popover,=20and=20Alerts=20that=20work=20in?= =?UTF-8?q?=20the=20narrow=20pane?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Checked every control in the chart row's right-hand corner. - The ⋯ menu is one frosted-glass sheet in two groups (Trade, Chart), with icons, an "On" state for open panels and a running replay, an alert count, and arrow-key navigation. Every row calls the same Vela method. - Alerts is drawn inside the menu from ws.alerts. Vela's openAlertsMenu(anchor) threw in the 620 px Hermes pane, where the menu has no anchor. - The status pill said "Agent: offline"; it is the LuxAlgo Library link. It now says "Library offline", and a click opens a popover with both connections, what still works without the Library, and Check again. - The script button is instead of a pencil. - Vela's timeframe and chart-style dropdowns get the same glass, and the timeframe list marks the one in use. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GLsbckEp88WEwC41dfyMeS --- CHANGELOG.md | 25 ++ README.md | 4 +- console/backend/tests/test_broker_api.py | 3 +- console/backend/tests/test_desk_sheet.py | 2 +- console/backend/tests/test_edgestats_ui.py | 5 +- console/backend/tests/test_onchart_chip.py | 24 +- console/backend/tests/test_replay.py | 5 +- console/backend/tests/test_top_menus.py | 117 +++++++ console/backend/tests/test_ui_polish.py | 6 +- .../backend/tests/test_unified_landasan.py | 3 +- console/frontend/app.js | 24 +- console/frontend/index.html | 1 + console/frontend/styles.css | 102 +++++- console/frontend/topmenus.js | 291 ++++++++++++++++++ console/frontend/workspace.js | 89 ++---- 15 files changed, 602 insertions(+), 99 deletions(-) create mode 100644 console/backend/tests/test_top_menus.py create mode 100644 console/frontend/topmenus.js diff --git a/CHANGELOG.md b/CHANGELOG.md index a1fece9..10abc26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,25 @@ All notable changes to this project are documented here. Format: [Keep a Changel ### Added +- **The chart row's right-hand corner, checked and redone** (31 Oct). The operator asked for every control + there to be checked and for the ⋯ menu to look like the replay capsule. `topmenus.js`. + - **The ⋯ menu** is one frosted-glass sheet in two groups, Trade (Trader's desk, Edge Stats, Replay) and + Chart (Alerts, Data window, Object tree, Download screenshot). Every row has an icon. A row says **On** + while its panel is open or replay runs, and Alerts shows its count. ↑ ↓ Home End move, → opens Alerts, + ← goes back, Esc closes and gives focus back. Every row still calls the Vela method it called before. + - **Alerts** is a list inside the menu, drawn from the alerts Vela keeps: title, message, the script and + the time, newest first. A row focuses the chart that fired it. The empty state says where alerts come + from. + - **The status dot** says **Library offline** in two words instead of "Agent: offline · not connected". A + click opens a popover: chart data (Live · BTCUSDT 1h), the LuxAlgo Library (Connected / Not connected), + what still works without the Library, and **Check again**. It used to flash a toast. + - **The script button** is ``; the pencil read as a drawing tool. + - **Vela's dropdowns** (timeframe, chart style) wear the same glass, and the timeframe list marks the one + in use. + - Pinned by `test_top_menus.py`. Verified in Chromium at 1280 px (dark and light) and 620 px: every row + opens what it names, keyboard paths, Data window "On", alerts focusing their chart (alerts injected for + the check), Check again, and no console errors. + - **Two indicator views, one button** (31 Oct). The operator picked both mock-ups and kept both, with Quick as the default. - **Quick** (`picker.js`) is a dropdown under the Indicators button: @@ -44,6 +63,12 @@ All notable changes to this project are documented here. Format: [Keep a Changel ### Fixed +- **Alerts did nothing in a narrow pane** (31 Oct). Vela's `openAlertsMenu(anchor)` reads the anchor's box with + no guard. In the Hermes pane (620 px) the ⋯ menu is reached from Vela's bottom sheet, so there is no + anchor, and the call threw. The list is now drawn by the menu itself. +- **The status pill called the LuxAlgo Library link "Agent"** (31 Oct). It is now "Library", and a failed + check from the popover no longer adds a toast on top. + - **The scripts list behind Indicators** (31 Oct). Six faults from a screenshot review: - **A row whose preview picture failed collapsed.** The `` was deleted, the row's grid shifted one column left, and the name landed in the 52 px picture slot ("Indic…"). That is every row without a diff --git a/README.md b/README.md index 7b2b88f..66aab59 100644 --- a/README.md +++ b/README.md @@ -176,10 +176,12 @@ interpreter itself (details in [`docs/MACOS.md`](docs/MACOS.md)): | `Ctrl+K` → **Trading: toggle the desk chat on row click** | stop the row opening the desk chat when nothing else is in front (it stays reveal-only, exactly as it was before 16 Oct) | | Chart top bar → **⌗ Indicators** | opens the **drawer**: search the 806-row LuxAlgo catalogue, star favourites, mount Vela's built-ins, or open a Library row's Details (write-up, **full Pine source**, licence badge, **Run PineTS** / Add to chart) | | Chart top bar → **Layout** | Vela's own grid picker — presets and custom `gx` grids. The console boots at `2h` (two side by side); the same door is `chart_set_layout` / `trader-chart layout` | -| Chart top bar → **<> Script** | the Pine script pane: write or paste Pine, **Run**, tweak the script's own **Settings**, save and reopen scripts | +| Chart top bar → ** Script** | the Pine script pane: write or paste Pine, **Run**, tweak the script's own **Settings**, save and reopen scripts | | Chart top bar → **⛶ Full screen** | Gives the chart the whole pane — and the whole display: the console's chrome, panels and statusbar step aside and the page asks the browser for fullscreen. `Esc` (or the floating `✕`, or the same button) comes back. Docked on Vela's own toolbar row beside `<> Script` and `☰ catalogue`; the door is `chart_fullscreen` / `trader-chart fullscreen [--off]` | | Chart ⋯ menu → **Edge Stats** | the Edge Stats sheet: ask a question, run one of the 42 catalogue reports, group by weekday / month / year, open any historical session on a chart. [Details below](#edge-stats--how-often-did-it-actually-happen) | | Chart ⋯ menu → **Trader's desk** | the desk sheet: **Paper** (equity, cash, realised, open P&L, positions, fills, Reset), **Journal** (net P&L, win rate, profit factor, avg win/loss, the realised-equity curve, the closed trades) and **Prop firms** (the LuxAlgo directory + what is on offer, and **Simulate** on any challenge — LuxAlgo's own Monte-Carlo engine plays 10,000 journeys through that firm's exact ruleset and the card shows its verdict: pass odds with a 95% CI, failures, cost, days, payout odds and EV). A read surface — the only write is Reset, and approving an order still happens on its card, never here | +| Chart ⋯ menu → **Replay · Alerts · Data window · Object tree · Download screenshot** | Replay starts or ends practice on older bars. Alerts lists what your scripts' `alert()` / `alertcondition()` fired, newest first; a row focuses the chart that fired it. The rest are Vela's own panels and its PNG export. A row says **On** while its panel is open. Keys: ↑ ↓ Home End, → into Alerts, ← back, Esc | +| Chart top bar → **● status** | the dot is green when bars are live and the LuxAlgo Library answers. When something is wrong it says so in two words (**Library offline**); click it for both connections, what still works without the Library, and **Check again** | | The chart's own bottom bar | Vela's range buttons, timezone clock and settings (not ours) | ### Chat beside the chart diff --git a/console/backend/tests/test_broker_api.py b/console/backend/tests/test_broker_api.py index 727b444..80009e9 100644 --- a/console/backend/tests/test_broker_api.py +++ b/console/backend/tests/test_broker_api.py @@ -183,7 +183,8 @@ def test_a_refused_fill_shows_the_reason_and_keeps_the_card(self): self.assertIn("toast", self.js.lower()) def test_the_account_is_reachable_from_the_more_menu(self): - ws = (self.front / "workspace.js").read_text(encoding="utf-8") + # the ⋯ menu's rows live in topmenus.js since 31 Oct + ws = (self.front / "topmenus.js").read_text(encoding="utf-8") self.assertIn("Trader's desk", ws) self.assertIn("taDesk", ws) diff --git a/console/backend/tests/test_desk_sheet.py b/console/backend/tests/test_desk_sheet.py index f4b21da..cb8983e 100644 --- a/console/backend/tests/test_desk_sheet.py +++ b/console/backend/tests/test_desk_sheet.py @@ -46,7 +46,7 @@ def test_three_views_the_account_the_journal_the_firms(self): self.assertIn(label, JS) def test_it_opens_from_the_more_menu_on_the_paper_view(self): - ws = (FRONT / "workspace.js").read_text(encoding="utf-8") + ws = (FRONT / "topmenus.js").read_text(encoding="utf-8") # the ⋯ menu's rows (31 Oct) self.assertIn("taDesk", ws) self.assertIn("open('paper')", ws) diff --git a/console/backend/tests/test_edgestats_ui.py b/console/backend/tests/test_edgestats_ui.py index f5eeec0..0c1822b 100644 --- a/console/backend/tests/test_edgestats_ui.py +++ b/console/backend/tests/test_edgestats_ui.py @@ -136,8 +136,9 @@ def test_a_background_refresh_does_not_replay_the_entrance(self): class Doors(unittest.TestCase): def test_the_more_menu_opens_it(self): - ws = (FRONT / "workspace.js").read_text(encoding="utf-8") - self.assertRegex(ws, r"\['Edge Stats', \(\) => \{ if \(window\.edgeSheet\) window\.edgeSheet\.open\(\); \}\]") + ws = (FRONT / "topmenus.js").read_text(encoding="utf-8") # the ⋯ menu's rows (31 Oct) + self.assertIn("label: 'Edge Stats'", ws) + self.assertIn("go: () => { if (window.edgeSheet) window.edgeSheet.open(); }", ws) def test_escape_closes_one_layer_and_app_js_skips_a_handled_press(self): self.assertIn("window.closeEdgeIfOpen", JS) diff --git a/console/backend/tests/test_onchart_chip.py b/console/backend/tests/test_onchart_chip.py index 961bbe9..fc574d0 100644 --- a/console/backend/tests/test_onchart_chip.py +++ b/console/backend/tests/test_onchart_chip.py @@ -30,6 +30,7 @@ def read(name: str) -> str: HTML, APP, DRAWER, WS, UNIFIED, CSS, BRIDGE = ( read("index.html"), read("app.js"), read("drawer.js"), read("workspace.js"), read("unified.js"), read("styles.css"), read("chart-bridge.js")) +MENUS = read("topmenus.js") class TheRunAnnouncesItself(unittest.TestCase): @@ -154,17 +155,20 @@ def test_one_more_button_is_registered_before_the_workspace(self): self.assertLess(WS.index("id: 'ta-more'"), WS.index("new VelaWorkspace(")) def test_the_menu_reaches_all_four_through_vela(self): - body = WS.split("function openMoreMenu", 1)[1][:2600] - self.assertIn("openAlertsMenu", body) - self.assertIn("dock.toggle('dataWindow'", body) - self.assertIn("dock.toggle('objects'", body) - self.assertIn("downloadScreenshot", body) + # 31 Oct: the sheet moved to topmenus.js; each row still calls the Vela method its old row did. + # Alerts reads the list Vela keeps (ws.alerts) instead of openAlertsMenu(anchor), which threw + # in a narrow pane where there is no anchor. + self.assertIn("window.taTopMenus.more(anchor, ws, { replayOn })", WS) + self.assertIn("ws.alerts", MENUS) + self.assertNotIn("ws.openAlertsMenu(", MENUS) + self.assertIn("dock.toggle('dataWindow')", MENUS) + self.assertIn("dock.toggle('objects')", MENUS) + self.assertIn("downloadScreenshot()", MENUS) def test_the_menu_closes_itself_and_obeys_escape(self): - body = WS.split("function openMoreMenu", 1)[1][:2600] - self.assertIn("Escape", body) - self.assertIn("pointerdown", body) - self.assertIn("role", body) + self.assertIn("Escape", MENUS) + self.assertIn("pointerdown", MENUS) + self.assertIn("role", MENUS) def test_the_more_button_has_a_glyph(self): self.assertIn("registerIcon('ta-more'", WS, "Vela ships no 'more' icon, so the button would be blank") @@ -172,7 +176,7 @@ def test_the_more_button_has_a_glyph(self): def test_the_menu_is_styled_with_tokens(self): self.assertIn(".ta-more", CSS) - self.assertIn("var(--lx-", CSS.split(".ta-more", 1)[1][:900]) + self.assertIn("var(--lx-", CSS.split(".ta-more__item {", 1)[1][:900]) if __name__ == "__main__": diff --git a/console/backend/tests/test_replay.py b/console/backend/tests/test_replay.py index 085ef6b..07777e4 100644 --- a/console/backend/tests/test_replay.py +++ b/console/backend/tests/test_replay.py @@ -163,8 +163,9 @@ def test_a_bars_back_start_counts_minutes_not_months(self): self.assertNotIn("43200", _read(FRONT / "chart-bridge.js")) def test_the_menu_starts_and_exits_replay(self): - self.assertIn("taReplay", self.ws) - self.assertIn("'Replay'", self.ws) + menus = (FRONT / "topmenus.js").read_text(encoding="utf-8") # the ⋯ menu's rows (31 Oct) + self.assertIn("taReplay", menus) + self.assertIn("replayOn ? 'Exit replay' : 'Replay'", menus) def test_the_topbar_carries_a_replay_button_with_velas_own_glyph(self): self.assertIn("id: 'ta-replay'", self.ws) diff --git a/console/backend/tests/test_top_menus.py b/console/backend/tests/test_top_menus.py new file mode 100644 index 0000000..39e0ce1 --- /dev/null +++ b/console/backend/tests/test_top_menus.py @@ -0,0 +1,117 @@ +"""The chart row's right-hand corner (31 Oct). + +The operator asked for every control there to be checked, and for the ⋯ menu to look like the replay +capsule: one frosted-glass sheet. The check found Alerts dead in a narrow pane (Vela's +openAlertsMenu(anchor) reads the anchor's box with no guard, and the narrow pane has no anchor), a +status pill that called the LuxAlgo Library link "Agent", a status click that only flashed a toast, +a pencil for the script editor beside the drawing tools, and a timeframe list that did not mark the +one in use. topmenus.js holds the menu and the popover. +""" + +import os +import re +import unittest + +HERE = os.path.dirname(os.path.abspath(__file__)) +FRONT = os.path.abspath(os.path.join(HERE, "..", "..", "frontend")) + + +def read(name: str) -> str: + with open(os.path.join(FRONT, name), encoding="utf-8") as fh: + return fh.read() + + +MENUS, WS, APP, CSS, HTML = (read("topmenus.js"), read("workspace.js"), read("app.js"), + read("styles.css"), read("index.html")) + + +class TheMoreMenu(unittest.TestCase): + def test_it_is_loaded(self): + self.assertIn('', HTML) + self.assertIn("window.taTopMenus = {", MENUS) + + def test_grouped_rows_with_icons_and_state(self): + for part in ("['Trade', [", "['Chart', [", "ta-more__ic", "ta-more__on", "ta-more__count"): + self.assertIn(part, MENUS) + # "On" beside an open panel or a running replay comes from Vela's own state + self.assertIn("ws.dock.openId === id", MENUS) + + def test_every_row_is_still_the_old_call(self): + for call in ("window.taDesk.open('paper')", "window.edgeSheet.open()", "window.taReplay.stop()", + "window.taReplay.start()", "ws.dock.toggle('dataWindow')", "ws.dock.toggle('objects')", + "ws.downloadScreenshot()"): + self.assertIn(call, MENUS) + + def test_alerts_work_without_an_anchor(self): + # the list Vela keeps, and the chart that fired it focused with Vela's own call + self.assertIn("ws.alerts", MENUS) + self.assertIn("ws.setActiveCell(a.cellId)", MENUS) + self.assertNotIn("ws.openAlertsMenu(", MENUS) + self.assertIn("No alerts yet", MENUS) + self.assertIn("alertcondition()", MENUS, "the empty state says where alerts come from") + + def test_alert_text_is_escaped(self): + # titles and messages come from scripts; every one goes through esc() + for field in ("esc(a.title || 'Alert')", "esc(a.message)", "esc(a.source || '')"): + self.assertIn(field, MENUS) + + def test_keyboard(self): + for key in ("'ArrowDown'", "'ArrowUp'", "'Home'", "'End'", "'ArrowRight'", "'ArrowLeft'", "'Escape'"): + self.assertIn(key, MENUS) + # Esc gives focus back to what opened it (audit 8 Oct, G6) + self.assertIn("back.focus({ preventScroll: true })", MENUS) + + def test_a_hidden_anchor_is_no_anchor(self): + body = MENUS.split("function openMore(anchor, ws, opts) {", 1)[1][:300] + self.assertRegex(body, r"anchor\.getBoundingClientRect\(\)\.width === 0\)\s*anchor = null") + + def test_a_second_press_closes_it(self): + self.assertIn("isOpen('ta-more') && current ? (current(true), null)", MENUS) + + +class TheStatus(unittest.TestCase): + def test_it_is_the_library_not_the_agent(self): + self.assertIn("'Library: offline'", APP) + self.assertNotIn("'Agent: ", APP) + self.assertIn("'Library offline'", APP, "two words in the row, the reason in the popover") + self.assertIn("s.short || s.text", WS) + + def test_a_click_opens_the_connections_popover(self): + block = WS.split("id: 'ta-status'", 1)[1].split("};", 1)[0] + self.assertIn("window.taTopMenus.status(pressed())", block) + for part in ("Chart data", "LuxAlgo Library", "Check again", "window.taCheckHealth({ quiet: true })"): + self.assertIn(part, MENUS) + self.assertIn("window.taCheckHealth = checkHealth;", APP) + + def test_check_again_does_not_toast(self): + body = APP.split("async function checkHealth(opts) {", 1)[1].split("\n}", 1)[0] + self.assertIn("if (!ready && !quiet) toast(", body) + self.assertIn("if (!quiet) toast(", body) + + def test_it_says_what_still_works(self): + self.assertIn("Only LuxAlgo Library scripts need it.", MENUS) + + +class TheRowAndVelasMenus(unittest.TestCase): + def test_the_script_button_is_code_not_a_pencil(self): + self.assertIn("registerIcon('ta-code'", WS) + block = WS.split("id: 'ta-script'", 1)[1][:120] + self.assertIn("icon: 'ta-code'", block) + + def test_the_timeframe_in_use_is_marked(self): + self.assertIn('.vela-menu[aria-labelledby="vela-topbar-tf"]', MENUS) + self.assertIn("ta-is-current", MENUS) + self.assertIn(".vela-menu-item.ta-is-current", CSS) + + def test_one_glass_for_the_corner(self): + rule = re.search(r"\.ta-glass \{([^}]*)\}", CSS).group(1) + self.assertIn("backdrop-filter: blur(", rule) + self.assertIn("color-mix(in srgb, var(--lx-surface-2) 80%, transparent)", rule) + vela = re.search(r":root \.vela-menu \{([^}]*)\}", CSS).group(1) + self.assertIn("backdrop-filter: blur(", vela) + self.assertIn(':root[data-theme="light"] .ta-glass', CSS) + self.assertIn("@media (prefers-reduced-motion: reduce) { .ta-glass { animation: none; } }", CSS) + + +if __name__ == "__main__": + unittest.main() diff --git a/console/backend/tests/test_ui_polish.py b/console/backend/tests/test_ui_polish.py index 3e1e715..5e835ef 100644 --- a/console/backend/tests/test_ui_polish.py +++ b/console/backend/tests/test_ui_polish.py @@ -270,8 +270,10 @@ def test_the_agent_state_is_a_dot_and_a_tooltip(self): # appears only when something is wrong and the numbers stay in the tooltip. app = read(APP) self.assertIn("statusState.mcp", app) - self.assertIn("'Agent: ' + label", app) - self.assertIn("'Agent: offline'", app) + # 31 Oct: it was never the agent — it is the console's link to the LuxAlgo Library. + self.assertIn("'Library: ' + label", app) + self.assertIn("'Library: offline'", app) + self.assertNotIn("'Agent: offline'", app) self.assertNotIn("`MCP: ${label}`", app) # the old visible shape def test_the_activity_line_is_wired_to_mutations(self): diff --git a/console/backend/tests/test_unified_landasan.py b/console/backend/tests/test_unified_landasan.py index 95078ed..b0d0aef 100644 --- a/console/backend/tests/test_unified_landasan.py +++ b/console/backend/tests/test_unified_landasan.py @@ -171,7 +171,8 @@ def test_mcp_pill_follows_the_calls_it_reports(self): """The Library panel proved the connection live (health: connected true, calls moved 0->1) while the pill still read boot's number — checkHealth ran exactly once, at boot. Every door that moves the backend's MCP counter refreshes it.""" - self.assertGreaterEqual(APP.count("checkHealth()"), 4) # boot + search + 2 details + # the definition plus every call (it takes {quiet} since 31 Oct, so count the open paren) + self.assertGreaterEqual(APP.count("checkHealth("), 4) def test_where_the_control_lives_is_stated_honestly(self): self.assertIn("Indicators button opens the drawer", BRIDGE) # mode() tells the one-door story diff --git a/console/frontend/app.js b/console/frontend/app.js index ff3e1cd..7332fe8 100644 --- a/console/frontend/app.js +++ b/console/frontend/app.js @@ -490,18 +490,22 @@ function paintStatus() { const m = statusState.mcp, b = statusState.bars; if (!el.dot) return; const bad = []; - if (m && m.ok === false) bad.push(m.text || 'agent offline'); + if (m && m.ok === false) bad.push(m.text || 'Library offline'); if (b && b.ok === false) bad.push(b.text || 'no bars'); + /* What the row shows when something is wrong: two words, not the reason (that is the tooltip and + the popover the dot opens). "Agent" was the old name; it is the LuxAlgo Library link (31 Oct). */ + const short = [m && m.ok === false ? 'Library offline' : '', b && b.ok === false ? 'No live bars' : ''].filter(Boolean); const waiting = !m || !b; el.dot.className = 'status-dot ' + (bad.length ? 'is-bad' : waiting ? 'is-wait' : 'is-ok'); el.dot.textContent = bad.length ? '● ' + bad.join(' · ') : '●'; el.dot.title = [m && m.text, b && b.text].filter(Boolean).join(' · ') - || 'Agent and bars — the two lights this dot replaced'; + || 'LuxAlgo Library and chart data — waiting for both to answer'; /* The dot rides Vela's row as a widget action (3 Oct); this statusbar copy is the bare-chart fallback. Publish the state once and let the row re-render itself. */ window.taToast = toast; window.taStatus = { state: bad.length ? 'bad' : waiting ? 'wait' : 'ok', - text: bad.join(' · '), title: el.dot.title }; + text: bad.join(' · '), short: short.join(' · '), title: el.dot.title, + mcp: m, bars: b }; window.dispatchEvent(new CustomEvent('ta-status')); } function setBars(text, detail) { @@ -1194,7 +1198,8 @@ window.openResult = openResult; /* ------------------------------------------------------------------- wiring */ -async function checkHealth() { +async function checkHealth(opts) { + const quiet = Boolean(opts && opts.quiet); try { const data = await api('/api/health'); // Two backend generations answer this endpoint: the MVP shape @@ -1212,20 +1217,23 @@ async function checkHealth() { live in the tooltip; text appears on the dot only when something is wrong. */ statusState.mcp = { ok: ready, - text: (ready ? 'Agent: ' + label : 'Agent: offline') + ' · ' + (ready + text: (ready ? 'Library: ' + label : 'Library: offline') + ' · ' + (ready ? (data.mcp_url || (data.mcp && data.mcp.url) || 'connected') : ((data.mcp_error || (data.mcp && data.mcp.last_error)) || 'not connected')), }; paintStatus(); - if (!ready) toast('LuxAlgo MCP is not connected — see backend log', true); + if (!ready && !quiet) toast('LuxAlgo Library is not connected — built-ins and your own Pine still work', true); } catch (err) { - statusState.mcp = { ok: false, text: 'Agent: offline — ' + err.message }; + statusState.mcp = { ok: false, text: 'Library: offline — ' + err.message }; paintStatus(); - toast('Backend unreachable — start ./console/start.sh (or luxalgo-web.service) first', true); + if (!quiet) toast('Backend unreachable — start ./console/start.sh (or luxalgo-web.service) first', true); } } +window.taCheckHealth = checkHealth; /* the status popover's "Check again" */ + + /* The script pane's control surface (3 Oct): the `<>` toggle is a Vela widget action, so the agent has no button to click — these functions ARE the door, and they answer with the pane's own state (the COLUMN and the view — the 23 Sep lesson) so a report of "open" is never about a shut column. */ diff --git a/console/frontend/index.html b/console/frontend/index.html index a69c6a5..6ec88ab 100644 --- a/console/frontend/index.html +++ b/console/frontend/index.html @@ -497,6 +497,7 @@

Nothing selected

+