svrnty-hermes-webui-plugin/static/umbrella.css
Svrnty f8ce6b21f1
Some checks failed
plugin-tests / test (push) Failing after 6s
feat(umbrella): cortex-os umbrella graph viz panel — Phase 2.E
Per sot/03-PROTOCOLS/CORTEX-OS-UMBRELLA-VIZ-PRD.md. Living-graph panel
inside hermes-webui consuming curator-maintained graph/umbrella.json
(UI-stable v1.0 schema emitted by curator-planb sweep.py v0.2).

routes/umbrella.py — 3 endpoints:
  GET /umbrella                  → redirect to static panel HTML
  GET /api/umbrella              → graph/umbrella.json contents
  GET /api/umbrella/doc?path=X   → markdown body for a node's source_path
                                   (path-traversal guarded; 50KB cap)

static/umbrella.{html,css,js} — Cytoscape.js v3.30.2 (CDN) render:
  - 8 node types: doc/profile/skill/mcp_server/sovereign_api/cortex_tool/
    external_dep/credential — each gets distinct color + shape
  - 5 edge types: depends_on/governs/consumes/produces/supersedes
  - filter chips (toggle node type visibility)
  - layout switcher (force/tier/concentric)
  - search (dim non-matching nodes)
  - click node → side panel w/ frontmatter + markdown body + in/out edges
  - edge-list buttons jump between connected nodes

Plan B brand-aligned dark theme; DESIGN.md 8-property subset
(backgroundColor/textColor/typography/rounded/padding/size/height/width).

svrnty_nav.js bundled (sidebar nav integration — non-umbrella scope).

CONNECTION-MAP.md regenerated via scripts/ast-connection-map.py.
plugin.py route-list extended w/ "umbrella" + injects umbrella assets via
the standard static dir registration.

Module import: ✓ (python3 -c "import routes.umbrella" clean).
Graph artifact verified: 81 nodes / 120 edges live in graph/umbrella.json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-24 12:43:29 -04:00

109 lines
4.0 KiB
CSS

/* Cortex-OS Umbrella panel — Plan B brand-aligned (8-property DESIGN.md subset). */
:root {
--bg: #0f1115;
--bg-2: #15181f;
--fg: #e7eaf0;
--fg-dim: #98a0b3;
--accent: #6ee7b7;
--accent-2: #fbbf24;
--warn: #f87171;
--rounded: 8px;
--pad: 12px;
--mono: ui-monospace, "JetBrains Mono", "SF Mono", monospace;
}
.umbrella-root {
position: fixed; inset: 0;
background: var(--bg); color: var(--fg);
display: grid;
grid-template-rows: auto 1fr auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
font-size: 14px;
z-index: 9999;
}
.umbrella-header {
background: var(--bg-2);
padding: var(--pad);
border-bottom: 1px solid #2a2f3a;
display: grid;
grid-template-columns: auto 1fr auto;
gap: var(--pad);
align-items: center;
}
.umbrella-header h1 { margin: 0; font-size: 16px; font-weight: 600; color: var(--accent); }
.umbrella-stats { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.umbrella-controls { display: flex; gap: 8px; align-items: center; }
.umbrella-controls input[type=search] {
background: var(--bg); color: var(--fg);
border: 1px solid #2a2f3a; border-radius: var(--rounded);
padding: 6px 10px; width: 200px; font-size: 13px;
}
.umbrella-controls button {
background: var(--bg); color: var(--fg);
border: 1px solid #2a2f3a; border-radius: var(--rounded);
padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.umbrella-controls button:hover { border-color: var(--accent); color: var(--accent); }
.umbrella-filters {
grid-column: 1 / -1;
display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
background: var(--bg); color: var(--fg-dim);
border: 1px solid #2a2f3a; border-radius: 999px;
padding: 4px 10px; font-size: 11px; cursor: pointer;
font-family: var(--mono);
}
.chip.active { color: var(--accent); border-color: var(--accent); background: rgba(110,231,183,0.08); }
.umbrella-canvas { position: relative; display: grid; grid-template-columns: 1fr; }
.umbrella-cy { position: absolute; inset: 0; }
.umbrella-side {
position: absolute; top: 0; right: 0; bottom: 0;
width: 420px; background: var(--bg-2);
border-left: 1px solid #2a2f3a;
transform: translateX(100%);
transition: transform 180ms ease-out;
overflow: hidden;
display: flex; flex-direction: column;
}
.umbrella-side[data-open="true"] { transform: translateX(0); }
.umbrella-side .close {
position: absolute; top: 8px; right: 8px;
background: transparent; color: var(--fg-dim);
border: none; cursor: pointer; font-size: 20px; line-height: 1;
}
.side-content { padding: var(--pad); overflow-y: auto; height: 100%; }
.side-content h2 { margin: 0 0 8px; font-size: 16px; color: var(--accent); }
.side-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); margin-bottom: 12px; }
.side-meta div { margin-bottom: 2px; }
.side-meta b { color: var(--fg); }
.side-body {
background: var(--bg);
border-radius: var(--rounded); padding: 10px;
font-family: var(--mono); font-size: 12px;
white-space: pre-wrap; word-break: break-word;
max-height: 50vh; overflow-y: auto;
border: 1px solid #2a2f3a;
}
.side-edges { margin-top: 12px; font-size: 12px; }
.side-edges h3 { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; margin: 8px 0 4px; font-weight: 500; letter-spacing: 0.05em; }
.side-edges ul { list-style: none; padding: 0; margin: 0; }
.side-edges li { padding: 3px 0; font-family: var(--mono); }
.side-edges li button {
background: transparent; color: var(--accent);
border: none; cursor: pointer; font-family: var(--mono); font-size: 12px;
padding: 0; text-align: left;
}
.side-edges li button:hover { text-decoration: underline; }
.side-edges .etype { color: var(--fg-dim); font-size: 10px; text-transform: uppercase; margin-right: 6px; }
.umbrella-footer {
background: var(--bg-2); padding: 6px var(--pad);
border-top: 1px solid #2a2f3a;
font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
display: flex; justify-content: space-between; align-items: center;
}
.umbrella-footer a { color: var(--accent); }