<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Roteiro — workspace explorer</title>
<style>
:root {
--bg: #f6f7f9;
--panel: #ffffff;
--fg: #1a1f2e;
--muted: #6b7280;
--line: #e5e7eb;
--line-strong: #d1d5db;
--gold: #c99a2e;
--gold-soft: #fdf6e3;
--slate: #64748b;
--slate-soft: #f1f5f9;
--drift: #dc2626;
--drift-soft: #fef2f2;
--drift-line: #fca5a5;
--hub: #eef2ff;
--hub-line: #c7d2fe;
--accent: #4f46e5;
--shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font: 14px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
code,
.mono {
font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
main {
max-width: 1240px;
margin: 0 auto;
padding: 1.75rem 1.25rem 4rem;
}
header.hero h1 {
font-size: 1.6rem;
margin: 0 0 0.35rem;
letter-spacing: -0.01em;
}
header.hero p.sub {
color: var(--muted);
margin: 0;
max-width: 68ch;
}
.ws-switch {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 1rem 0 0;
flex-wrap: wrap;
}
.ws-switch label {
color: var(--muted);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.04em;
}
select#workspace {
font: inherit;
padding: 0.35rem 0.6rem;
border: 1px solid var(--line-strong);
border-radius: 7px;
background: var(--panel);
color: var(--fg);
box-shadow: var(--shadow);
}
.ws-badge {
font-size: 0.72rem;
padding: 0.1rem 0.45rem;
border-radius: 999px;
background: var(--slate-soft);
color: var(--slate);
border: 1px solid var(--line);
}
.ws-badge.standalone {
background: #fff7ed;
color: #b45309;
border-color: #fed7aa;
}
.ws-action {
font: inherit;
font-size: 0.8rem;
padding: 0.35rem 0.7rem;
border: 1px solid var(--line-strong);
border-radius: 7px;
background: var(--panel);
color: var(--fg);
cursor: pointer;
box-shadow: var(--shadow);
}
.ws-action:hover {
border-color: var(--slate);
color: var(--slate);
}
.ws-action:disabled {
opacity: 0.55;
cursor: default;
}
.ws-note {
font-size: 0.78rem;
color: var(--muted);
}
.select-hero {
display: flex;
align-items: center;
gap: 1rem;
margin: 0 0 0.35rem;
}
.select-hero img.logo {
width: 64px;
height: 64px;
flex: none;
}
.select-hero h1 {
font-size: 1.6rem;
margin: 0 0 0.2rem;
letter-spacing: -0.01em;
}
.select-hero p.sub {
color: var(--muted);
margin: 0;
max-width: 68ch;
}
.select-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 0.85rem;
margin: 1.5rem 0;
}
.select-card {
display: block;
text-align: left;
font: inherit;
cursor: pointer;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
padding: 1rem 1.1rem;
box-shadow: var(--shadow);
transition:
border-color 0.12s,
box-shadow 0.12s,
transform 0.12s;
}
.select-card:hover,
.select-card:focus-visible {
border-color: var(--hub-line);
box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
transform: translateY(-1px);
outline: none;
}
.select-card .name {
font-size: 1.05rem;
font-weight: 650;
letter-spacing: -0.01em;
}
.select-card .meta {
margin-top: 0.55rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.select-card .projects {
color: var(--muted);
font-size: 0.8rem;
margin-top: 0.5rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tiles {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 0.75rem;
margin: 1.25rem 0;
}
.tile {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 10px;
padding: 0.85rem 1rem;
box-shadow: var(--shadow);
}
.tile .num {
font-size: 1.7rem;
font-weight: 650;
font-variant-numeric: tabular-nums;
line-height: 1.1;
}
.tile .lbl {
color: var(--muted);
font-size: 0.78rem;
margin-top: 0.15rem;
}
.tile.drift .num {
color: var(--drift);
}
.tile.drift {
border-color: var(--drift-line);
background: var(--drift-soft);
}
.legend {
display: flex;
gap: 1.25rem;
flex-wrap: wrap;
color: var(--muted);
font-size: 0.82rem;
margin: 0 0 1rem;
}
.legend span {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.swatch {
width: 1.5rem;
height: 0.28rem;
border-radius: 2px;
display: inline-block;
}
.swatch.gold {
background: var(--gold);
}
.swatch.slate {
background: var(--slate);
}
.dot {
width: 0.6rem;
height: 0.6rem;
border-radius: 999px;
background: var(--drift);
display: inline-block;
}
section.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
box-shadow: var(--shadow);
margin: 1rem 0;
overflow: hidden;
}
section.panel > h2 {
font-size: 0.95rem;
margin: 0;
padding: 0.85rem 1.1rem;
border-bottom: 1px solid var(--line);
display: flex;
align-items: baseline;
gap: 0.6rem;
}
section.panel > h2 .hint {
font-weight: 400;
color: var(--muted);
font-size: 0.8rem;
}
section.panel > h2 .ws-hide-tooling {
margin-left: auto;
font-weight: 400;
align-self: center;
}
#topology {
width: 100%;
height: 460px;
background: linear-gradient(0deg, #fbfbfd, #ffffff);
}
.matrix-scroll {
overflow-x: auto;
}
table.matrix {
border-collapse: collapse;
width: 100%;
font-size: 0.82rem;
}
table.matrix th,
table.matrix td {
border: 1px solid var(--line);
padding: 0.4rem 0.6rem;
text-align: left;
vertical-align: top;
white-space: nowrap;
}
table.matrix thead th {
position: sticky;
top: 0;
background: var(--panel);
color: var(--muted);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
table.matrix thead th.spoke-col {
cursor: pointer;
color: var(--accent);
}
table.matrix thead th.spoke-col:hover {
text-decoration: underline;
}
tr.section-head th {
background: var(--slate-soft);
color: var(--slate);
font-weight: 650;
letter-spacing: 0.05em;
text-transform: uppercase;
font-size: 0.7rem;
}
td.keycell code {
color: var(--fg);
}
td.hubval {
color: var(--muted);
}
td.cell.inherit {
color: var(--line-strong);
text-align: center;
}
td.cell.set {
background: var(--gold-soft);
}
.tag {
display: inline-block;
font-size: 0.62rem;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 0.02rem 0.3rem;
border-radius: 4px;
margin-left: 0.4rem;
vertical-align: 1px;
}
.tag.authored {
background: var(--gold);
color: #fff;
}
.tag.inferred {
background: var(--slate);
color: #fff;
}
tr.drift-row td {
background: var(--drift-soft);
}
tr.drift-band th {
background: var(--drift);
color: #fff;
font-size: 0.72rem;
letter-spacing: 0.04em;
}
td.drift-key code {
color: var(--drift);
}
.explain {
margin: 0;
padding: 0.9rem 1.1rem;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.82rem;
}
.explain.drift-box {
background: var(--drift-soft);
border-top: 1px solid var(--drift-line);
color: #7f1d1d;
}
.explain strong {
color: var(--fg);
}
.explain.drift-box strong {
color: var(--drift);
}
.muted {
color: var(--muted);
}
.empty {
padding: 1.5rem 1.1rem;
color: var(--muted);
}
#status,
#select-status {
color: var(--muted);
font-size: 0.82rem;
min-height: 1.2rem;
}
#status.err,
#select-status.err {
color: var(--drift);
}
.projects-bar {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
margin: 0.25rem 0 1rem;
}
.projects-bar .plabel {
color: var(--muted);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.04em;
margin-right: 0.25rem;
}
.proj-chip {
font: inherit;
font-size: 0.8rem;
padding: 0.25rem 0.6rem;
border: 1px solid var(--line-strong);
border-radius: 999px;
background: var(--panel);
color: var(--accent);
cursor: pointer;
box-shadow: var(--shadow);
}
.proj-chip:hover {
background: var(--hub);
}
#view-project {
--pbg: #0d1117;
--ppanel: #161b22;
--pline: #30363d;
--pline-strong: #3d444d;
--pfg: #e6edf3;
--pmuted: #8b949e;
--pderived: #6ea8fe;
--pauthored: #e0b64d;
--pinferred: #3fb6a8;
--paccent: #7c8cff;
background: var(--pbg);
color: var(--pfg);
min-height: 100vh;
}
body.on-project {
background: #0d1117;
}
.pbar {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 1rem;
border-bottom: 1px solid var(--pline);
background: var(--ppanel);
position: sticky;
top: 0;
z-index: 5;
}
.p-back {
font: inherit;
font-size: 0.82rem;
cursor: pointer;
background: transparent;
color: var(--pfg);
border: 1px solid var(--pline-strong);
border-radius: 7px;
padding: 0.3rem 0.6rem;
}
.p-back:hover {
border-color: var(--paccent);
color: #fff;
}
.p-crumbs {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 0.85rem;
color: var(--pmuted);
}
.p-crumb-root {
font-weight: 650;
color: var(--pfg);
}
.p-crumb-link {
font: inherit;
background: transparent;
border: 0;
color: var(--paccent);
cursor: pointer;
padding: 0;
}
.p-crumb-link:hover {
text-decoration: underline;
}
.p-crumb-current {
color: var(--pfg);
font-weight: 600;
}
.p-sep {
color: var(--pmuted);
}
.pbar .ws-badge {
background: #21262d;
color: var(--pmuted);
border-color: var(--pline);
}
.pbar .ws-badge.standalone {
background: #2a2010;
color: #e0b64d;
border-color: #5c4a13;
}
.p-status {
padding: 0.4rem 1rem;
color: var(--pmuted);
font-size: 0.82rem;
}
.p-status:empty {
display: none;
}
.p-status.err {
color: #ff7b72;
}
.p-layout {
display: flex;
gap: 0;
height: calc(100vh - 49px);
}
.p-graph-panel {
position: relative;
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
}
#p-graph {
flex: 1 1 auto;
min-height: 0;
background: radial-gradient(circle at 50% 40%, #12171f, #0d1117);
}
.p-controls {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.55rem 0.8rem;
border-bottom: 1px solid var(--pline);
background: var(--ppanel);
flex-wrap: wrap;
}
.p-zoom {
display: inline-flex;
gap: 0.25rem;
}
.p-zoom button {
font: inherit;
min-width: 2rem;
height: 1.9rem;
line-height: 1;
cursor: pointer;
background: #21262d;
color: var(--pfg);
border: 1px solid var(--pline-strong);
border-radius: 6px;
}
.p-zoom button#p-fit {
width: auto;
padding: 0 0.5rem;
font-size: 0.78rem;
}
.p-zoom button:hover {
border-color: var(--paccent);
}
.p-search {
font: inherit;
font-size: 0.85rem;
padding: 0.35rem 0.6rem;
min-width: 160px;
flex: 1 1 160px;
max-width: 280px;
background: #0d1117;
color: var(--pfg);
border: 1px solid var(--pline-strong);
border-radius: 7px;
}
.p-search::placeholder {
color: var(--pmuted);
}
.p-toggle {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-size: 0.8rem;
color: var(--pmuted);
white-space: nowrap;
cursor: pointer;
user-select: none;
}
.p-toggle input {
cursor: pointer;
margin: 0;
}
.p-counter {
margin-left: auto;
color: var(--pmuted);
font-size: 0.8rem;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.p-legend {
display: flex;
gap: 1rem;
flex-wrap: wrap;
align-items: center;
padding: 0.4rem 0.8rem;
border-bottom: 1px solid var(--pline);
background: var(--ppanel);
color: var(--pmuted);
font-size: 0.78rem;
}
.p-legend-label {
text-transform: uppercase;
letter-spacing: 0.04em;
font-size: 0.7rem;
}
.p-legend span {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}
.p-dot {
width: 0.7rem;
height: 0.7rem;
border-radius: 999px;
display: inline-block;
}
.p-dot.derived {
background: var(--pderived);
}
.p-dot.authored {
background: var(--pauthored);
}
.p-dot.inferred {
background: var(--pinferred);
}
.p-legend-xrepo {
display: inline-flex;
gap: 1rem;
align-items: center;
padding-left: 1rem;
margin-left: 0.25rem;
border-left: 1px solid var(--pline);
}
.p-dash {
width: 1.4rem;
height: 0;
border-top: 2px dashed var(--pmuted);
display: inline-block;
}
.p-dash.authored {
border-top-color: #e0b64d;
}
.p-dash.inferred {
border-top-color: #8b95a3;
}
.p-qmark {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1rem;
height: 1rem;
border-radius: 999px;
border: 1.5px dashed #f85149;
color: #f85149;
font-size: 0.7rem;
font-weight: 700;
font-style: normal;
line-height: 1;
}
.p-tip {
position: absolute;
z-index: 40;
pointer-events: none;
background: #161b22;
color: var(--pfg);
border: 1px solid var(--pline-strong);
border-radius: 6px;
padding: 0.2rem 0.45rem;
font-size: 0.72rem;
white-space: nowrap;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.p-chip.xrepo {
border-style: dashed;
}
.p-chip.xrepo.authored {
border-color: #e0b64d;
color: #e0b64d;
}
.p-chip.xrepo.inferred {
border-color: #8b95a3;
color: #c9d1d9;
}
.p-chip.xrepo.drift {
border-color: #f85149;
color: #f85149;
}
.p-follow-hint {
color: var(--pmuted);
font-size: 0.72rem;
font-style: italic;
margin: 0.15rem 0 0.2rem;
}
.p-side {
flex: 0 0 360px;
max-width: 360px;
display: flex;
flex-direction: column;
border-left: 1px solid var(--pline);
background: var(--ppanel);
}
@media (max-width: 820px) {
.p-layout {
flex-direction: column;
height: auto;
}
.p-side {
flex-basis: auto;
max-width: none;
border-left: 0;
border-top: 1px solid var(--pline);
}
#p-graph {
height: 60vh;
}
}
.p-tabs {
display: flex;
border-bottom: 1px solid var(--pline);
}
.p-tab {
flex: 1 1 auto;
font: inherit;
font-size: 0.82rem;
padding: 0.6rem 0.5rem;
cursor: pointer;
background: transparent;
color: var(--pmuted);
border: 0;
border-bottom: 2px solid transparent;
}
.p-tab:hover {
color: var(--pfg);
}
.p-tab.active {
color: var(--pfg);
border-bottom-color: var(--paccent);
font-weight: 600;
}
.p-tab[aria-disabled="true"] {
color: #484f58;
cursor: not-allowed;
}
.p-tab[aria-disabled="true"]:hover {
color: #484f58;
}
.p-tabpanes {
flex: 1 1 auto;
overflow-y: auto;
}
.p-pane {
display: none;
padding: 0.9rem 1rem;
}
.p-pane.active {
display: block;
}
.p-muted {
color: var(--pmuted);
}
.p-empty {
color: var(--pmuted);
font-style: italic;
padding: 0.4rem 0;
}
.p-sec-title {
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--pmuted);
margin: 1.1rem 0 0.5rem;
}
.p-sec-title:first-child {
margin-top: 0.2rem;
}
.p-sec-title .hint {
text-transform: none;
letter-spacing: 0;
font-size: 0.72rem;
color: var(--pmuted);
opacity: 0.8;
margin-left: 0.4rem;
}
.p-hot {
list-style: none;
margin: 0;
padding: 0;
}
.p-hot li {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.32rem 0;
cursor: pointer;
border-bottom: 1px solid var(--pline);
}
.p-hot li:hover .p-hot-name {
color: #fff;
text-decoration: underline;
}
.p-hot-rank {
color: var(--pmuted);
font-size: 0.72rem;
width: 1.4rem;
text-align: right;
font-variant-numeric: tabular-nums;
}
.p-hot-main {
flex: 1 1 auto;
min-width: 0;
}
.p-hot-name {
font-size: 0.82rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.p-hot-kind {
color: var(--pmuted);
font-size: 0.7rem;
}
.p-hot-bar {
flex: 0 0 60px;
height: 0.4rem;
background: #21262d;
border-radius: 3px;
overflow: hidden;
}
.p-hot-bar i {
display: block;
height: 100%;
background: var(--paccent);
}
.p-hot-deg {
color: var(--pmuted);
font-size: 0.72rem;
width: 1.8rem;
text-align: right;
font-variant-numeric: tabular-nums;
}
.p-debt details {
border: 1px solid var(--pline);
border-radius: 7px;
margin-bottom: 0.4rem;
background: #0d1117;
}
.p-debt summary {
cursor: pointer;
padding: 0.4rem 0.55rem;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.8rem;
list-style: none;
}
.p-debt summary::-webkit-details-marker {
display: none;
}
.p-debt-cat {
font-size: 0.62rem;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 0.05rem 0.35rem;
border-radius: 4px;
background: #3b2f10;
color: var(--pauthored);
}
.p-debt-loc {
color: var(--pmuted);
font-size: 0.72rem;
margin-left: auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.p-debt-body {
padding: 0.1rem 0.6rem 0.55rem;
}
.p-debt-body code {
color: var(--pfg);
white-space: pre-wrap;
word-break: break-word;
}
.p-node-name {
font-size: 1rem;
font-weight: 650;
word-break: break-word;
}
.p-node-meta {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin: 0.5rem 0;
}
.p-badge {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 0.1rem 0.4rem;
border-radius: 5px;
border: 1px solid var(--pline-strong);
color: var(--pmuted);
}
.p-badge.prov-derived {
color: var(--pderived);
border-color: #274b7a;
}
.p-badge.prov-authored {
color: var(--pauthored);
border-color: #5c4a13;
}
.p-badge.prov-inferred {
color: var(--pinferred);
border-color: #1f5750;
}
.p-node-path {
font-size: 0.75rem;
color: var(--pmuted);
word-break: break-all;
margin: 0.35rem 0 0.2rem;
}
.p-chips {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin: 0.35rem 0 0.4rem;
}
.p-chip {
font: inherit;
font-size: 0.75rem;
padding: 0.2rem 0.5rem;
border-radius: 999px;
border: 1px solid var(--pline-strong);
background: #0d1117;
color: var(--paccent);
cursor: pointer;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.p-chip:hover {
border-color: var(--paccent);
color: #fff;
}
.p-chip .p-chip-kind {
color: var(--pmuted);
}
.p-loading {
color: var(--pmuted);
padding: 0.5rem 0;
}
.p-err {
color: #ff7b72;
padding: 0.5rem 0;
}
.p-ask-disabled strong {
color: var(--pfg);
}
.p-ask-disabled code {
color: var(--pfg);
background: #0d1117;
padding: 0.05rem 0.3rem;
border-radius: 4px;
border: 1px solid var(--pline);
}
.p-ask {
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.p-ask-form {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.p-ask textarea {
width: 100%;
min-height: 4.5rem;
resize: vertical;
box-sizing: border-box;
padding: 0.5rem 0.6rem;
font: inherit;
color: var(--pfg);
background: var(--pbg);
border: 1px solid var(--pline-strong);
border-radius: 6px;
}
.p-ask textarea:focus {
outline: none;
border-color: var(--paccent);
}
.p-ask-row {
display: flex;
align-items: center;
gap: 0.5rem;
justify-content: space-between;
}
.p-ask button.p-ask-send {
color: #fff;
background: var(--paccent);
border: 1px solid var(--paccent);
border-radius: 6px;
padding: 0.35rem 0.9rem;
font: inherit;
cursor: pointer;
}
.p-ask button.p-ask-send:disabled {
opacity: 0.55;
cursor: default;
}
.p-ask-model {
color: var(--pmuted);
font-size: 0.8rem;
}
.p-ask-answer {
white-space: pre-wrap;
line-height: 1.45;
color: var(--pfg);
border-top: 1px solid var(--pline);
padding-top: 0.6rem;
}
.p-ask-answer a {
color: var(--paccent);
cursor: pointer;
text-decoration: none;
border-bottom: 1px dotted var(--paccent);
}
.p-ask-refs {
color: var(--pmuted);
font-size: 0.8rem;
margin-top: 0.5rem;
}
.p-ask-refs a {
color: var(--paccent);
cursor: pointer;
}
.p-ask code {
color: var(--pfg);
background: #0d1117;
padding: 0.05rem 0.3rem;
border-radius: 4px;
border: 1px solid var(--pline);
}
</style>
</head>
<body>
<div id="view-select">
<main>
<header class="select-hero">
<img
class="logo"
src="/sticker.svg"
width="64"
height="64"
alt="Roteiro logo"
/>
<div>
<h1>Roteiro explorer</h1>
<p class="sub">Choose a workspace to explore.</p>
</div>
</header>
<div id="select-status">Loading workspaces…</div>
<div class="select-grid" id="select-grid"></div>
</main>
</div>
<div id="view-workspace" hidden>
<main>
<header class="hero">
<h1>One app, many deployments — interlinked</h1>
<p class="sub">
See who overrides what, who references config the app no longer defines,
and open any repo to drill in.
</p>
<div class="ws-switch">
<label for="workspace">Workspace</label>
<select id="workspace"></select>
<span id="ws-linkage" class="ws-badge"></span>
<button
id="persist-links"
class="ws-action"
type="button"
title="Infer the cross-repo links and persist them as durable edges (like `roteiro links --infer --write`). The topology above already shows them live; persisting makes the follow-the-link hop and `roteiro check` see them too."
>
Persist links
</button>
<span id="persist-note" class="ws-note" role="status"></span>
</div>
</header>
<div id="status">Loading workspaces…</div>
<div class="tiles" id="tiles"></div>
<div class="projects-bar" id="projects-bar"></div>
<div class="legend" aria-label="legend">
<span><i class="swatch gold"></i> gold = authored link</span>
<span><i class="swatch slate"></i> slate = inferred link</span>
<span><i class="dot"></i> red dot = drift</span>
</div>
<section class="panel">
<h2>
Topology
<span class="hint">Hover a deployment to trace it into the matrix</span>
</h2>
<div id="topology"></div>
</section>
<section class="panel">
<h2>
Config override matrix
<label
class="p-toggle ws-hide-tooling"
title="Hide build/tooling/CI config keys (Cargo.toml, .github/ workflows, nextest, …). Off by default — shows everything."
>
<input
id="ws-hide-tooling"
type="checkbox"
aria-label="hide tooling config keys"
/>
<span>Hide tooling config</span>
</label>
</h2>
<div class="matrix-scroll">
<div id="matrix"></div>
</div>
</section>
</main>
</div>
<div id="view-project" hidden>
<div class="pbar">
<button id="p-back" class="p-back" type="button">← Workspace</button>
<nav class="p-crumbs" aria-label="Breadcrumb">
<span class="p-crumb-root">Roteiro</span>
<span class="p-sep">·</span>
<button id="p-crumb-ws" class="p-crumb-link" type="button">Workspace</button>
<span class="p-sep">▸</span>
<span id="p-crumb-project" class="p-crumb-current"></span>
</nav>
<span id="p-linkage" class="ws-badge"></span>
</div>
<div id="p-status" class="p-status"></div>
<div class="p-layout">
<section class="p-graph-panel">
<div class="p-controls">
<div class="p-zoom">
<button id="p-zoom-in" type="button" title="zoom in" aria-label="zoom in">+</button>
<button id="p-zoom-out" type="button" title="zoom out" aria-label="zoom out">−</button>
<button id="p-fit" type="button" title="fit graph to view">fit</button>
</div>
<input
id="p-search"
class="p-search"
type="search"
placeholder="find in this repo…"
autocomplete="off"
aria-label="find a node in this repo"
/>
<label
class="p-toggle"
title="Hide build/tooling/CI config keys (Cargo.toml, .github/ workflows, nextest, …). Off by default — shows everything."
>
<input
id="p-hide-tooling"
type="checkbox"
aria-label="hide tooling config keys"
/>
<span>Hide tooling config</span>
</label>
<span id="p-counter" class="p-counter"></span>
</div>
<div class="p-legend" aria-label="node provenance legend">
<span class="p-legend-label">colour: provenance</span>
<span><i class="p-dot derived"></i> derived</span>
<span><i class="p-dot authored"></i> authored</span>
<span><i class="p-dot inferred"></i> inferred</span>
<span
class="p-legend-xrepo"
id="p-legend-xrepo"
aria-label="cross-repo link legend"
hidden
>
<span class="p-legend-label">cross-repo</span>
<span><i class="p-dash authored"></i> authored link</span>
<span><i class="p-dash inferred"></i> inferred link</span>
<span><i class="p-qmark">?</i> drift</span>
</span>
</div>
<div id="p-graph"></div>
</section>
<aside class="p-side">
<div class="p-tabs" role="tablist" aria-label="Project inspector">
<button
class="p-tab active"
id="p-tab-hotspots"
data-tab="hotspots"
role="tab"
type="button"
aria-controls="p-pane-hotspots"
aria-selected="true"
tabindex="0"
>
Hotspots
</button>
<button
class="p-tab"
id="p-tab-node"
data-tab="node"
role="tab"
type="button"
aria-controls="p-pane-node"
aria-selected="false"
tabindex="-1"
>
Node
</button>
<button
class="p-tab"
id="p-tab-ask"
data-tab="ask"
role="tab"
type="button"
aria-controls="p-pane-ask"
aria-selected="false"
aria-disabled="true"
tabindex="-1"
title="requires the model build"
>
Ask
</button>
</div>
<div class="p-tabpanes">
<div
class="p-pane active"
id="p-pane-hotspots"
data-pane="hotspots"
role="tabpanel"
aria-labelledby="p-tab-hotspots"
tabindex="0"
></div>
<div
class="p-pane"
id="p-pane-node"
data-pane="node"
role="tabpanel"
aria-labelledby="p-tab-node"
tabindex="0"
hidden
>
<p class="p-muted">Click a node in the graph to inspect it.</p>
</div>
<div
class="p-pane p-ask-disabled"
id="p-pane-ask"
data-pane="ask"
role="tabpanel"
aria-labelledby="p-tab-ask"
tabindex="0"
hidden
>
<p><strong>Ask</strong> is disabled in the explorer.</p>
<p class="p-muted">
The natural-language ask tab needs a local model, which the
llama-free explorer does not load. Start the model build with
<code>roteiro serve --models</code> to enable it.
</p>
</div>
</div>
</aside>
</div>
</div>
<script src="/vendor/cytoscape.min.js"></script>
<script src="/app.js"></script>
</body>
</html>