feat(maestro): per-host session counts + abbreviated folder paths
ci / rust (push) Successful in 4m54s
ci / rust (push) Successful in 4m54s
Sidebar UI tweaks from a live crit review: - Statusbar: drop the redundant global "N sessions / N live" tally; each daemon chip now carries its own green per-host session-count badge (tabular-nums, dimmed when 0). - Session tree: deep folder paths collapse leading segments to initials and keep the trailing dir name (~/git.naps.pt/naps62/maestro -> ~/g/n/maestro), with the stem dimmed and the full path in the tooltip. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+29
-29
@@ -618,34 +618,6 @@ textarea {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.session-tally {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--sp-2);
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-13);
|
||||
}
|
||||
|
||||
.session-tally b {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.tally-live {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.tally-live::before {
|
||||
content: "";
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: var(--live);
|
||||
box-shadow: 0 0 6px var(--live-glow);
|
||||
}
|
||||
|
||||
.statusbar .spacer {
|
||||
/* zero basis: claim leftover space without inflating the bar's min width */
|
||||
flex: 1 1 0;
|
||||
@@ -668,7 +640,7 @@ textarea {
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-pill);
|
||||
padding: 3px var(--sp-3) 3px var(--sp-2);
|
||||
padding: 3px var(--sp-2) 3px var(--sp-2);
|
||||
font-size: var(--fs-12);
|
||||
color: var(--ink);
|
||||
}
|
||||
@@ -682,6 +654,27 @@ textarea {
|
||||
box-shadow: 0 0 5px var(--live-glow);
|
||||
}
|
||||
|
||||
/* Green session count baked into each host chip (replaces the global tally). */
|
||||
.daemon-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 17px;
|
||||
height: 17px;
|
||||
padding: 0 5px;
|
||||
border-radius: var(--r-pill);
|
||||
font-size: var(--fs-11);
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--live);
|
||||
background: color-mix(in srgb, var(--live) 16%, transparent);
|
||||
}
|
||||
|
||||
.daemon-count.is-empty {
|
||||
color: var(--muted);
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.daemon-empty {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -753,6 +746,7 @@ textarea {
|
||||
|
||||
.folder-name {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
color: var(--ink);
|
||||
font-size: var(--fs-14);
|
||||
font-weight: 500;
|
||||
@@ -761,6 +755,12 @@ textarea {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Earlier path segments collapse to their initial; the trailing segment (the
|
||||
one that actually names the dir) stays full. Dim the collapsed prefix. */
|
||||
.folder-name .folder-stem {
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
.folder-count {
|
||||
font-size: var(--fs-11);
|
||||
color: var(--muted);
|
||||
|
||||
Reference in New Issue
Block a user