Finishes the U2 WIP (37b0891a3) to samples 01, 03 and 08 of the 2026-11-09 unified workspace set: - workspace.js: sidebar Organizations and Projects groups (collapsible, state remembered), the org dashboard, the Agents levels. - workspace-data.js: every read these screens make, GET no-store, redirect manual; a refused read shows unavailable for that part only. - shell.css: the html[data-organizations] .ws-* block from the sample. - bus.js: org-mode sidebar order, pinned Settings, no project tree under Projects, focus kept across repaint. - Honest empty states where the Console has no data (KPIs, metrics, kind). - Tests: unified-workspace-browser (10), picker/delete/switch browser tests follow the sidebar, browser.test script pin.
47 lines
12 KiB
HTML
47 lines
12 KiB
HTML
<!doctype html>
|
||
<html lang="en" data-design="console" data-palette="harbor">
|
||
<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Dashboard · Mosaic Console</title>
|
||
<link rel="stylesheet" href="/shared/app.css"><link rel="stylesheet" href="/tokens.css"><link rel="stylesheet" href="/console.css"><link rel="stylesheet" href="/live.css"><link rel="stylesheet" href="/bus.css"><link rel="stylesheet" href="/chat.css"><link rel="stylesheet" href="/inbox.css"><link rel="stylesheet" href="/requests.css"><link rel="stylesheet" href="/files.css"><link rel="stylesheet" href="/project-remote.css"><link rel="stylesheet" href="/shell.css">
|
||
<link rel="stylesheet" href="/editor.css"><script src="/editor.js" defer></script>
|
||
<link rel="stylesheet" href="/project-archive.css"><link rel="stylesheet" href="/projects.css">
|
||
<link rel="stylesheet" href="/processing.css"><script src="/processing.js" defer></script>
|
||
<link rel="stylesheet" href="/org-create.css"><script src="/org-create.js" defer></script>
|
||
<link rel="stylesheet" href="/onboarding.css"><script src="/onboarding.js" defer></script>
|
||
<script src="/workspace-data.js" defer></script><script src="/workspace.js" defer></script><script src="/console-restart.js" defer></script><script src="/display.js" defer></script><script src="/inbox.js" defer></script><script src="/files.js" defer></script><script src="/project-remote.js" defer></script><script src="/federation.js" defer></script><script src="/brand.js" defer></script><script src="/app.js" defer></script><script src="/markdown-preview.js" defer></script><script src="/projects.js" defer></script><script src="/chat.js" defer></script><script src="/project-archive.js" defer></script><script src="/agents.js" defer></script><script src="/bus.js" defer></script><script src="/requests.js" defer></script></head>
|
||
<body>
|
||
<div hidden aria-hidden="true"><select id="palette"></select><select id="mode"><option value="system">system</option><option value="light">light</option><option value="dim">dim</option><option value="dark">dark</option></select></div>
|
||
<a class="skip" href="#main">Skip to content</a>
|
||
<header class="cmdbar"><button type="button" id="nav-open" class="btn" aria-controls="console-nav" aria-expanded="false" aria-label="Open menu" title="Menu"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h16"/></svg></button><a href="#/" class="wordmark" aria-label="Mosaic Stack Dashboard"><svg class="mosaic-logo" viewBox="0 0 36 36" aria-hidden="true"><rect x="3" y="12" width="13" height="10" rx="2"/><rect x="18" y="3" width="13" height="12" rx="2"/><rect x="3" y="24" width="13" height="10" rx="2"/><rect x="18" y="17" width="13" height="12" rx="2"/></svg><span>Mosaic Stack</span></a>
|
||
<button type="button" class="cmdk" id="cmdk" aria-haspopup="dialog" aria-controls="cmdk-dialog" aria-label="Search" title="Search"><svg class="i" aria-hidden="true"><use href="/icons.svg#i-search"/></svg><span>Go to a view, decision or task</span><kbd>Ctrl K</kbd></button>
|
||
<nav id="federation" class="federation small" aria-label="Consoles" hidden></nav><p class="fresh" id="fresh"><span id="fresh-board"></span><span id="fresh-bus"></span></p>
|
||
<div class="cmd-right"><a href="#/" id="processing-link" class="processing-link"><span aria-hidden="true">●</span> <span id="processing-short">Processing unavailable</span></a><button class="header-action" id="refresh" type="button" aria-label="Refresh" title="Refresh"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M20 7v5h-5M4 17v-5h5M5 9a7 7 0 0 1 12-3l3 3M19 15a7 7 0 0 1-12 3l-3-3"/></svg><span>Refresh</span></button><button class="header-action" id="pause" type="button" aria-label="Pause" title="Pause" aria-pressed="false"><svg class="i" viewBox="0 0 24 24" aria-hidden="true"><path d="M9 5v14M15 5v14"/></svg><span>Pause</span></button><button id="theme-switch" class="theme-switch" type="button" role="switch" aria-checked="false" aria-label="Dark mode" title="Dark mode"><span class="theme-track" aria-hidden="true"><svg class="theme-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.5 1.5m11 11L19 19M19 5l-1.5 1.5m-11 11L5 19"/></svg><svg class="theme-moon" viewBox="0 0 24 24"><path d="M20 15a8 8 0 0 1-11-11 8 8 0 1 0 11 11Z"/></svg><span class="theme-thumb"></span></span></button><div class="avatar-wrap"><button type="button" id="avatar-button" aria-haspopup="menu" aria-expanded="false" aria-controls="avatar-menu"><span class="avatar-initial">L</span><span id="avatar-name">Local operator</span><span aria-hidden="true">⌄</span></button><div id="avatar-menu" class="avatar-menu" role="menu" hidden><a href="#/settings" role="menuitem">Settings</a><a href="#/" id="mobile-processing-link" class="mobile-menu-item" role="menuitem">Processing unavailable</a><button id="mobile-refresh" class="mobile-menu-item" type="button" role="menuitem">Refresh</button><button id="mobile-pause" class="mobile-menu-item" type="button" role="menuitem">Pause</button><form id="sign-out" method="post" action="/auth/logout" hidden><button type="submit" role="menuitem">Sign out</button></form><div id="local-sign-out" role="menuitem" aria-disabled="true">Sign out <small>Not signed in (local dev)</small></div></div></div></div></header>
|
||
<div id="processing-banner" class="processing-banner" role="alert" hidden></div>
|
||
<div id="processing-mobile"></div>
|
||
<div class="frame">
|
||
<div id="nav-scrim" hidden></div><nav class="tree" id="console-nav" aria-label="Console"><div class="drawer-head"><strong>Navigation</strong><button type="button" class="btn" id="nav-close">Close</button></div><p id="nav-overflow" class="small muted" hidden>Scroll for more destinations</p><div id="project-context" aria-label="Current project and conversation"></div>
|
||
<ul class="s1-sections" id="sections"></ul><div id="workspace-nav" aria-label="Organizations and projects"></div><div id="board-tree"><h2 class="tree-title">Board project filter</h2><div id="projects"><p class="muted">Loading projects…</p></div><p class="small muted">Select a project to filter sessions. Waiting on you always shows all projects.</p></div></nav>
|
||
<main id="main" class="content" tabindex="-1"><div id="signed-out" class="banner ref" role="alert" tabindex="-1" hidden></div><div id="bus-down" class="banner err" role="alert" hidden></div><div id="theme-warning" class="banner ref" role="status" hidden><p></p><div class="actions"><button id="theme-clear" type="button" class="btn" hidden>Use the default theme</button></div></div><p id="org-cue" class="org-cue" hidden></p><nav class="breadcrumbs" id="breadcrumbs" aria-label="Breadcrumb"><span aria-current="page">Dashboard</span></nav><div class="page-head" id="board-head"><div><h1>Dashboard</h1><p id="dashboard-business" class="muted">Business overview</p><p id="status" class="small muted" role="status">Loading board…</p></div><div class="filters"><label><input id="show-machine" type="checkbox">Show machine sessions</label></div></div>
|
||
<section id="dashboard-summary" aria-label="Dashboard metrics"><div id="dashboard-kpis" class="kpi-grid"></div><p id="dashboard-updated" class="kpi-footer">Not read yet</p></section>
|
||
<section id="held-section" aria-labelledby="held-title"><h2 id="held-title">Held roles <span id="held-count" class="count">–</span></h2><p class="small muted">The stack's seats: each role a run holds on the bus, from the bus <code>agents</code> read. Machine sessions are under Show machine sessions.</p><div id="held"><div class="skel-rows" aria-busy="true"><span class="sr-only">Reading the held roles.</span><span class="skel"></span><span class="skel"></span></div></div></section>
|
||
<div id="dashboard-cards"><section id="dashboard-processing" class="dashboard-card" aria-labelledby="processing-title"><h2 id="processing-title">Processing</h2><div id="processing-controls" class="processing-controls" role="region" aria-label="Instance processing">
|
||
<strong>Processing</strong><p id="processing-state" role="status">Reading processing state.</p>
|
||
<button id="processing-halt" type="button" class="btn" disabled>Stop processing</button>
|
||
<button id="processing-resume" type="button" class="btn" disabled hidden>Resume processing</button>
|
||
<p id="processing-unavailable" class="processing-note small muted">Processing controls are unavailable here. Use mosaic halt or mosaic resume from the instance CLI.</p>
|
||
<p id="processing-receipt" class="processing-receipt small" aria-live="polite"></p></div></section><section id="dashboard-inbox" class="dashboard-card"><h2>Needs your input</h2><div id="dashboard-inbox-items"><p class="muted">Not available yet</p></div><a href="#/inbox">Open Inbox →</a></section></div>
|
||
<div id="error" class="banner err" role="alert" hidden></div>
|
||
<div id="board-refused" class="empty" hidden><b>Nothing to show.</b><p>The board refused the read, so Console shows nothing rather than a guess. The reason is above.</p></div>
|
||
<section id="conversation" class="conversation" aria-labelledby="conv-title" hidden><div class="page-head"><div><h2 id="conv-title" tabindex="-1">Conversation</h2><p id="conv-meta" class="small muted"></p></div><div class="conv-actions"><label>Session<select id="conv-pick"></select></label><button class="btn" id="conv-back" type="button">Back to Dashboard</button></div></div>
|
||
<div id="conv-markers"></div><p id="conv-status" class="small muted" role="status"></p><ol id="conv-log" class="turns conv-log" aria-label="Conversation history"></ol>
|
||
<form id="conv-form" class="conv-form" hidden><label for="conv-reply" id="conv-reply-label">Reply</label><textarea id="conv-reply" maxlength="2000" rows="3" placeholder="Message this seat"></textarea><button class="btn primary" type="submit" id="conv-send">Send</button><p id="conv-receipt" class="conv-receipt" role="status" hidden></p></form><p id="conv-no-reply" class="muted" hidden></p></section>
|
||
<div id="board-view"><section class="console-waiting" aria-labelledby="waiting-title"><h2 id="waiting-title">Waiting on you <span id="waiting-count" class="count">0</span></h2><div id="waiting"><p class="muted">Loading sessions…</p></div></section>
|
||
<details id="seen-section"><summary>Seen <span id="seen-count" class="count">0</span></summary><div id="seen"></div></details>
|
||
<section aria-labelledby="sessions-title"><div class="page-head"><h2 id="sessions-title">All sessions <span id="session-count" class="count">0</span></h2><div class="filters"><label><input id="hide-offline" type="checkbox" checked>Hide offline</label><label><input id="hide-seen" type="checkbox" checked>Hide seen</label></div></div><p class="small muted">Select an agent to inspect. Arrow keys move between agents; Enter opens the inspector. Scroll the table for all columns.</p><div id="sessions"><div class="skel-rows" aria-busy="true"><span class="sr-only">Loading sessions…</span><span class="skel"></span><span class="skel"></span><span class="skel"></span><span class="skel"></span></div></div></section></div>
|
||
<div id="bus-view" hidden></div>
|
||
</main>
|
||
<aside class="inspector" id="inspector" aria-labelledby="inspector-title" hidden><div class="inspector-head"><h2 id="inspector-title" tabindex="-1">Inspector</h2><button type="button" class="btn" id="close">Close</button></div><div id="inspection"></div></aside>
|
||
</div><footer class="foot"><span id="footer">Mosaic Stack</span><span id="board-url"></span></footer><div id="announce" class="sr-only" aria-live="polite"></div><div id="display-announcement" class="sr-only" role="status" aria-live="polite"></div>
|
||
<div id="toast" class="toast" role="status" aria-live="polite"></div>
|
||
<dialog class="pk" id="cmdk-dialog" aria-label="Go to"><div class="pk-in"><svg class="i" aria-hidden="true"><use href="/icons.svg#i-search"/></svg><input id="cmdk-input" type="text" role="combobox" aria-expanded="true" aria-controls="cmdk-list" aria-autocomplete="list" aria-label="Go to a view, decision or task" autocomplete="off" spellcheck="false"></div><ul id="cmdk-list" class="pk-list" role="listbox" aria-label="Results"></ul><p class="pk-foot small"><kbd>↑</kbd><kbd>↓</kbd> move · <kbd>Enter</kbd> open · <kbd>Esc</kbd> close</p></dialog>
|
||
</body></html>
|