Update the web console server, screens, help, prefs and loop setup, with matching page and logic suites

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-02 12:00:12 -08:00
1 parent 2468027a5a
commit 8e34bf1005
119 files changed
+9957 -3728

No files matched your search

+76 -9
View File
@@ -7,7 +7,8 @@
rule, so it needs saying here. */
.footer[hidden] { display: none; }
.dash { max-width: 860px; padding-top: 8px; }
/* The menu follows the Card width setting like the question column does. */
.dash { max-width: min(var(--card-width), 100%); padding-top: 8px; }
.dash-title { margin: 6px 0 8px; font: 600 clamp(26px, 4vw, 36px)/1.1 var(--serif); }
.dash-note { margin: 0 0 26px; font-size: 14.5px; color: var(--ink-2); }
/* The first-run role nudge: one line above the title, wrapping on a narrow
@@ -379,10 +380,10 @@
/* ------------------------------------------------- dashboard confirm */
/* The beat between "I clicked a card" and "it is running": what the pick is,
what it will do, and a START that means it. Narrower than the menu, centered
like the launching pane it precedes. */
what it will do, and a START that means it. As wide as the menu (the page
width setting), centered like the launching pane it precedes. */
.dash-confirm {
max-width: 560px;
max-width: min(var(--card-width), 100%);
margin: 3vh auto 0;
display: grid;
gap: 10px;
@@ -406,6 +407,9 @@
.confirm-head { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dash-confirm .dash-title { margin: 2px 0 0; }
/* The pane is as wide as the menu, but prose is not: its lines stop at a
readable measure while the controls below keep the full width. */
.confirm-about, .confirm-detail, .confirm-spec { max-width: 70ch; }
.confirm-about { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.confirm-detail { margin: 0; font-size: 13px; color: var(--accent); }
.confirm-spec { margin: 0; font-size: 13px; color: var(--ink-2); }
@@ -428,9 +432,23 @@
/* "Start with a note from your Notebook": the switch, then the tabs beside a
preview of the picked one, its pictures each with a tick. */
.confirm-note-box { display: grid; gap: 8px; }
.confirm-note-switch { display: flex; gap: 8px; align-items: center; color: var(--ink-2); cursor: pointer; }
.confirm-note-switch input { accent-color: var(--accent, currentColor); }
/* Stretched past the confirm's centering, and left aligned: a note reads as
a document, not a caption. */
/* Its own frame sets it apart from the text above, so no rule: just room. */
.confirm-note-box { display: grid; gap: 8px; justify-self: stretch; text-align: left; margin-top: 12px; }
.confirm-note-head {
display: grid;
gap: 2px;
padding: 10px 12px;
border: 1px solid var(--accent-line);
border-left: 3px solid var(--accent);
border-radius: 8px;
background: var(--accent-soft);
}
.confirm-note-head.is-on { padding: 8px 12px; }
.confirm-note-switch { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 600; cursor: pointer; }
.confirm-note-switch input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent, currentColor); }
.confirm-note-hint { padding-left: 28px; font-size: 12.5px; color: var(--ink-2); }
.confirm-note { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 10px; }
.confirm-note > .confirm-note-msg { grid-column: 1 / -1; }
.confirm-note-msg { margin: 0; font-size: 13px; color: var(--ink-3); }
@@ -480,7 +498,7 @@
/* ------------------------------------------------------- launching pane */
.launching {
max-width: 560px;
max-width: min(var(--card-width), 100%);
margin: 4vh auto 0;
text-align: center;
display: grid;
@@ -539,5 +557,54 @@
}
.launch-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); max-width: 46ch; }
/* A line, never a banner: no border, no background, no icon. */
.approval-tip { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.approval-tip { max-width: 70ch; margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
/* --------------------------------------------- the Implementation Loop */
/* The card's own link; a span, since a link may not sit inside a button. */
.dash-card-link { font-size: 12px; color: var(--accent); text-decoration: underline; cursor: pointer; justify-self: start; }
/* The setup screen: the confirm pane's width, with a left-aligned form. */
.loop-setup { justify-items: stretch; text-align: left; gap: 14px; }
.loop-setup .card-kicker, .loop-setup .dash-title, .loop-setup .confirm-spec { justify-self: start; }
.loop-lines { display: grid; gap: 4px; }
.loop-line { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 75ch; }
.loop-facts { display: grid; gap: 6px; margin: 0; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: 8px; }
.loop-fact { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 10px; font-size: 13px; }
.loop-fact dt { color: var(--ink-3); }
.loop-fact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; white-space: pre-line; }
.loop-form { display: grid; gap: 16px; }
.loop-field { display: grid; gap: 6px; }
.loop-label { margin: 0; font-weight: 600; font-size: 13.5px; }
.loop-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.loop-switch, .loop-radio { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.loop-switch input, .loop-radio input { accent-color: var(--accent, currentColor); margin-top: 3px; }
.loop-radios { display: grid; gap: 6px; }
.loop-radio-body { display: grid; gap: 1px; }
.loop-radio-detail { font-size: 12.5px; color: var(--ink-3); }
.loop-ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: 4px; }
.loop-text { font: inherit; font-size: 14px; padding: 6px 10px; color: var(--ink); background: var(--panel-2); border: 1px solid var(--rule); border-radius: 6px; max-width: 520px; width: 100%; }
.loop-text.loop-narrow { width: 90px; }
.loop-text.loop-param { width: 180px; }
.loop-test { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.loop-test p { margin: 0; font-size: 12.5px; }
.loop-number { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.loop-warn { margin: 0; font-size: 12.5px; color: var(--warn); }
.loop-start { display: grid; gap: 8px; justify-items: start; }
.loop-why { margin: 0; font-size: 13px; color: var(--ink-2); }
.loop-error { margin: 0; font-size: 13px; color: var(--warn); }
.loop-problems { margin: 0; padding-left: 18px; font-size: 13px; color: var(--warn); }
.loop-help { margin-left: auto; }
/* A card the loop holds: a record with a tag, no inputs. */
.card.is-loop-handled .loop-tag { margin: 0 0 4px; font-weight: 600; color: var(--accent); }
.card.is-loop-locked .answered { opacity: 0.85; }
/* The stop and finish screens the loop's end draws. */
.loop-end { display: grid; gap: 14px; }
.loop-end-phases { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.loop-end-phases th, .loop-end-phases td { text-align: left; padding: 5px 10px 5px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.loop-end-phases code { font-family: var(--mono); font-size: 12px; }
.loop-end-files { margin: 0; padding-left: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.loop-end-actions { display: flex; flex-wrap: wrap; gap: 10px; }
+3 -3
View File
@@ -6,8 +6,8 @@
appearance: none;
flex: none;
margin-left: 14px;
width: 30px;
height: 30px;
width: 36px;
height: 36px;
padding: 0;
display: grid;
place-items: center;
@@ -17,7 +17,7 @@
cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--rule); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .ab-ring { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.icon-btn .ab-mark { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
.icon-btn .ab-dot { fill: var(--ink-2); }
+4 -2
View File
@@ -210,10 +210,12 @@
flex: none;
margin: 0 2px 0 2px;
padding: 1px 5px;
border: 1px solid var(--rule-2);
border: 1px solid var(--accent-line);
border-radius: 999px;
color: var(--ink-3);
background: var(--accent-soft);
color: var(--accent);
font-size: 10.5px;
font-weight: 600;
line-height: 1.3;
white-space: nowrap;
}
+3 -1
View File
@@ -74,6 +74,7 @@
/* ------------------------------------------------------------ options */
.options { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.options-clear { margin-top: 10px; }
.option {
display: flex;
@@ -772,6 +773,7 @@ h4.md-h, h5.md-h, h6.md-h { font-size: 15px; }
.modal.looks { max-width: 720px; }
.modal.looks .modal-ranges + .modal-ranges { margin-top: 18px; }
.looks-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.looks-row.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.looks-row .help { grid-column: 1 / -1; }
/* The Desktop app group exists only inside the app; elsewhere it stays hidden
in spite of the grid above. */
@@ -783,7 +785,7 @@ h4.md-h, h5.md-h, h6.md-h { font-size: 15px; }
.looks-sound-events.is-off label { cursor: default; }
.looks-sound-events.is-off label:hover { border-color: var(--rule-2); }
@media (max-width: 720px) {
.looks-row { grid-template-columns: 1fr; }
.looks-row, .looks-row.four { grid-template-columns: 1fr; }
}
/* User Preferences itself (not the dialogs borrowing .looks): wider, and only
the body scrolls, so Back to default and Done never leave the screen. */
+188
View File
@@ -0,0 +1,188 @@
/* prefs.css: User Preferences' tabs (the side list, the narrow strip), the Saved
mark, the Agents & models table and form, and the unsaved prompt. */
/* --------------------------------------------------------- tabs and panels */
.prefs-layout {
display: grid;
grid-template-columns: 200px minmax(0, 1fr);
gap: 20px;
align-items: start;
}
.prefs-tabs {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.prefs-tab {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
width: 100%;
padding: 8px 10px;
border: 0;
border-left: 3px solid transparent;
border-radius: 6px;
background: transparent;
color: var(--ink-2);
font: inherit;
font-size: 13.5px;
text-align: left;
cursor: pointer;
}
.prefs-tab:hover { background: var(--panel-2); color: var(--ink); }
.prefs-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.prefs-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.prefs-tab-label { display: block; line-height: 1.3; }
.prefs-tab-hint { display: block; font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.prefs-panels { min-width: 0; }
.prefs-panel[hidden] { display: none; }
/* --------------------------------------------------------- Saved mark */
/* At the fieldset's top right, level with its legend. Out of the flow: the
fieldsets are grids (the shared range and row classes), where an in-flow mark
would take a cell and push the choices about. It fades out after about
2 s when the JS adds `is-saved`; an `error` stays put and never fades. */
.prefs-panel fieldset { position: relative; }
.prefs-saved {
position: absolute;
top: 0;
right: 0;
max-width: 60%;
font-size: 12px;
line-height: 1.3;
text-align: right;
color: var(--ok);
opacity: 0;
}
.prefs-saved.is-saved { opacity: 1; }
.prefs-saved.error { color: var(--danger, #d64545); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
@keyframes prefs-saved-fade {
0%, 70% { opacity: 1; }
100% { opacity: 0; }
}
.prefs-saved.is-saved { animation: prefs-saved-fade 2s ease-out forwards; }
}
@media (prefers-reduced-motion: reduce) {
.prefs-saved.is-saved { opacity: 1; }
}
/* --------------------------------------------------------- Agents & models */
.prefs-agents { display: grid; gap: 10px; }
.prefs-agents > .help { margin: 0; }
.prefs-agents [hidden] { display: none; }
#agents-status:empty { display: none; }
#agents-status.error { color: var(--danger, #d64545); }
#agents-add { justify-self: start; }
.prefs-agents-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prefs-agents-table th {
text-align: left;
font-weight: 600;
font-size: 12px;
color: var(--ink-3);
padding: 4px 8px;
border-bottom: 1px solid var(--rule-2);
}
.prefs-agents-table td { padding: 8px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.prefs-agents-name span, .prefs-agents-name code { display: block; }
.prefs-agents-name code { font-size: 12px; color: var(--ink-3); }
.prefs-agents-name .help { margin-top: 2px; font-size: 12px; }
.prefs-agents-models { color: var(--ink-2); overflow-wrap: anywhere; }
.prefs-agents-edit { text-align: right; }
.prefs-agents-soon td { color: var(--ink-3); font-style: italic; }
.prefs-badge, .prefs-unsaved-badge {
display: inline-block;
font-size: 11.5px;
line-height: 1.5;
padding: 0 7px;
border-radius: 10px;
background: var(--panel-2);
color: var(--ink-3);
white-space: nowrap;
}
.prefs-badge.ok { color: var(--ok); }
.prefs-badge.missing { color: var(--warn); }
.prefs-unsaved-badge { background: none; border: 1px solid var(--warn); color: var(--warn); }
.prefs-agents-form { display: grid; gap: 10px; }
.prefs-agents-back { justify-self: start; }
.prefs-agents-title { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 15px; }
.prefs-agents-title code { font-size: 12px; color: var(--ink-3); }
.prefs-agents-title:focus { outline: none; }
.prefs-agents-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.prefs-agents-fields > .models-note,
.prefs-agents-fields > [data-field="models"],
.prefs-agents-fields > .prefs-agents-args,
.prefs-agents-fields > .agent-field:has(> .models-list),
.prefs-agents-fields > .agent-field:has(> .prefs-agents-none) { grid-column: 1 / -1; }
.prefs-agents-form input { min-width: 0; }
.prefs-agents-form input.invalid { border-color: var(--danger, #d64545); }
.prefs-agents-test { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prefs-agents-test .help { margin: 0; }
.prefs-agents-none { margin: 0; }
.prefs-agents-args { display: grid; gap: 8px; }
.prefs-agents-args > summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.prefs-agents-args[open] > summary { margin-bottom: 4px; }
.prefs-agents-args > .agent-field + .agent-field { margin-top: 8px; }
/* The Saved mark sits in the form's foot, in the flow, after the buttons. */
.prefs-agents-foot > .prefs-saved { position: static; max-width: none; text-align: left; }
/* --------------------------------------------------------- unsaved prompt */
/* Over the dialog, inside it: never the browser's confirm(). */
.prefs-unsaved {
position: absolute;
inset: 0;
z-index: 5;
display: grid;
place-items: center;
padding: 16px;
background: color-mix(in srgb, var(--bg, #000) 55%, transparent);
}
.prefs-unsaved[hidden] { display: none; }
.prefs-unsaved-box {
max-width: 380px;
padding: 16px 18px;
border: 1px solid var(--rule-2);
border-radius: 10px;
background: var(--panel);
box-shadow: 0 8px 30px rgb(0 0 0 / 0.25);
}
.prefs-unsaved-box h3 { margin: 0 0 6px; font-size: 15px; }
.prefs-unsaved-box p { margin: 0 0 12px; }
.prefs-unsaved-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* --------------------------------------------------------- narrow screens */
@media (max-width: 720px) {
.prefs-layout { grid-template-columns: 1fr; gap: 12px; }
.prefs-tabs {
flex-direction: row;
overflow-x: auto;
overflow-y: hidden;
padding: 0 0 4px;
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}
.prefs-tab {
width: auto;
flex: none;
white-space: nowrap;
border-left: 0;
border-bottom: 3px solid transparent;
border-radius: 6px 6px 0 0;
}
.prefs-tab[aria-selected="true"] { border-bottom-color: var(--accent); }
.prefs-tab-hint { display: none; }
.prefs-agents-models { display: none; }
.prefs-agents-fields { grid-template-columns: 1fr; }
}
@@ -96,8 +96,6 @@
}
/* User Preferences: the launcher's model menu. */
.models-tabs { display: flex; gap: 6px; }
.models-tabs .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.models-note { font-size: 0.9em; opacity: 0.85; }
.models-note p, .models-note ul { margin: 0 0 6px; }
.models-note ul { padding-left: 18px; }
@@ -108,13 +106,6 @@
.models-row input { min-width: 0; }
.models-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.models-actions .help.error { color: var(--danger, #d64545); }
.agents-list { display: grid; gap: 10px; }
.agents-list:empty { display: none; }
.agent-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--rule-2); border-radius: 8px; }
.agent-card.invalid { border-color: var(--danger, #d64545); }
.agent-card input { min-width: 0; }
.agent-card input.invalid { border-color: var(--danger, #d64545); }
.agent-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.agent-field { display: grid; gap: 4px; min-width: 0; }
.agent-field > span, .agent-field > label { font-size: 0.85em; opacity: 0.85; }
.agent-rows { display: grid; gap: 4px; }
@@ -124,7 +115,6 @@
.agent-foot .help { margin: 0; }
.agent-foot .agent-test-result { flex: 1 1 auto; }
.agent-error { margin: 0; color: var(--danger, #d64545); font-size: 0.9em; }
#agents-replace[hidden] { display: none; }
/* User Preferences: Cleanup's list of what would go, shown before anything
is deleted. */
+4 -2
View File
@@ -178,7 +178,7 @@ h1 {
grows to fill the row, so the icon buttons would sit beside the title. The
first takes the slack instead; with the block shown its flex already eats
the space, so this costs nothing. */
#btn-about { margin-left: auto; }
#btn-looks { margin-left: auto; }
.progress-label {
display: flex;
@@ -516,6 +516,8 @@ h1 {
.footer.is-dash .footer-actions { display: none; }
.footer.is-dash .footer-where { grid-column: 2; }
.footer.is-dash-done .footer-actions { display: none; }
.footer.is-loop-idle .footer-summary,
.footer.is-loop-idle .footer-actions { visibility: hidden; }
.hint { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
/* A label, not a sentence: the full reason rides in the hint's tooltip, and
the dock already carries the ticking clock this would otherwise repeat. */
@@ -544,7 +546,7 @@ kbd {
justify-items: center;
}
.waiting-pane h2 { font: 600 23px/1.3 var(--serif); color: var(--ink); margin: 0; }
.waiting-pane p { margin: 0; }
.waiting-pane p { max-width: 70ch; margin: 0; }
/* The words that open the tasks tab: bold in the highlight color, a button
that reads as part of the sentence. */
.waiting-jump {
+1
View File
@@ -46,6 +46,7 @@
which validates the saved choice and paints data-width on first load. */
:root[data-width="narrow"] { --card-width: 720px; }
:root[data-width="wide"] { --card-width: 1080px; }
:root[data-width="ultrawide"] { --card-width: 1440px; }
/* Dark is written twice on purpose, and the duplication is the whole mechanism.
The first copy follows the system unless the person has explicitly asked for