"Idle" was set by SessionStart and by nothing else, and there was no path back into it. So it never meant "sitting unused" -- it meant "opened and never asked anything yet", a state a few seconds long that you would almost never catch. Meanwhile a session that finished an hour ago and was forgotten showed as waiting, which is correct but leaves the fourth state with nothing to describe. A session that has just opened is waiting for your first prompt exactly as one that finished a turn is waiting for your next. They are the same thing, and now they are the same state. Three glyphs instead of four, which also gives the remaining three more room to be told apart in a monochrome panel. Files written by the previous hook still say "idle", and a session open across the upgrade must not disappear, so unrecognised states now read as waiting rather than being treated as unknown. Covered by a test that feeds an "idle" file to the store and asserts it comes back as waiting, sorted by age among the others. The "hide when nothing is running" setting goes with it. Its condition was "no sessions, or all of them idle"; with idle gone the second half is unreachable and the first was already unconditional, so the switch could no longer change anything. A control that does nothing is worse than no control. The compaction test also got stronger in passing: it now checks that a mid-turn SessionStart leaves a *busy* session alone, which is the case that matters. It used to assert from waiting, where the state it was guarding against happened to be the state already stored.
59 lines
1.2 KiB
CSS
59 lines
1.2 KiB
CSS
/* The panel stays monochrome: every glyph is drawn in the panel's own text
|
|
colour, so it follows the theme instead of fighting it, and the shell's
|
|
accent colours keep meaning what they mean. State is carried by shape, which
|
|
also survives a monochrome theme and colour vision deficiency. */
|
|
|
|
.ccs-panel-box {
|
|
spacing: 10px;
|
|
/* Small gap so the chips read as a separate group from the clock rather
|
|
than as part of it. */
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.ccs-chip {
|
|
spacing: 4px;
|
|
}
|
|
|
|
/* Glyph is drawn in code (St.DrawingArea) using the panel text colour. */
|
|
.ccs-dot {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.ccs-chip-label {
|
|
font-size: 0.9em;
|
|
font-weight: bold;
|
|
/* Tabular figures keep a chip that gains a digit ("ds" -> "ds2") from
|
|
nudging every chip after it sideways. */
|
|
font-feature-settings: "tnum";
|
|
}
|
|
|
|
.ccs-chip-age {
|
|
font-size: 0.85em;
|
|
opacity: 0.7;
|
|
font-feature-settings: "tnum";
|
|
}
|
|
|
|
.ccs-summary {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ccs-row {
|
|
spacing: 8px;
|
|
}
|
|
|
|
.ccs-row-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ccs-row-age {
|
|
font-feature-settings: "tnum";
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.ccs-row-subtitle {
|
|
font-size: 0.85em;
|
|
opacity: 0.65;
|
|
max-width: 460px;
|
|
}
|