mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 05:07:46 +01:00
* chore(ux): task flows with step and time budgets; production baseline Ten top tasks across five audiences, each with a success criterion, a step budget (clicks, keystrokes, choices and screens of scrolling) and a time-to-first-answer budget, driven at 390 and 1440. Plus a dead-end check: every empty or error state must offer the next action. Baseline against production: 9 of 20 task runs pass; 3 of 5 empty/error states are dead ends. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(tools): answer first, one header, one empty state, no dead ends Measured by scripts/ux (baseline in the previous commit), then fixed worst first: - X-ray: names the biggest single-source risk, the country most weight rests on alone, and the most-shared bottleneck first (lib/xray/headline.ts, ranking only); scrolls the answer into view; Ctrl/Cmd+Enter runs; a list nobody could read offers the sample instead of a blank report; shared PageHeader; privacy note folded to one line; placeholder no longer looks like a filled portfolio. - Scenarios: result first, picker folded under it; presets before the form; a Copy link button instead of a printed URL; an unreadable ?at says so. - Careers: regions (Europe, North America, …) in the place filter, so "process engineers in Europe" is one choice, not thirty; results before the hiring sidebar on a phone. - Data series: shared PageHeader and filter bar (auto-applies), search reads the bottleneck name, 40 rows then Show more (all 145 made a 1 MB page). - Science pipeline: PageHeader with the counts in one line; jump links to what the feeds collected. - Bottleneck pages: a signed-out reader sees Follow (sign in, come back) instead of nothing. - Update news now: Try again on failure; a next step when nothing is new. - Shared: Empty takes an action (desk, exposure, careers, series, pipeline, x-ray, reader views); a real not-found page with ways on; filter bars show one loading state; CopyLink; desk settings use PageHeader. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
129 lines
2.6 KiB
CSS
129 lines
2.6 KiB
CSS
/* ── "Update news now": bottleneck, company and desk pages ── */
|
|
.update {
|
|
display: grid;
|
|
gap: 0.6rem;
|
|
max-width: 48rem;
|
|
}
|
|
.update-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
}
|
|
.update-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.55rem;
|
|
min-height: 2.75rem;
|
|
padding: 0 1.1rem;
|
|
border-radius: 999px;
|
|
background: var(--color-accent);
|
|
color: var(--color-surface-page);
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
.update-button:disabled {
|
|
opacity: 0.7;
|
|
cursor: progress;
|
|
}
|
|
.update-icon {
|
|
display: inline-block;
|
|
font-size: 1.05rem;
|
|
line-height: 1;
|
|
}
|
|
.update-icon.is-spinning {
|
|
animation: update-spin 0.9s linear infinite;
|
|
}
|
|
@keyframes update-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.update-icon.is-spinning {
|
|
animation: none;
|
|
}
|
|
}
|
|
.update-note,
|
|
.update-status {
|
|
font-size: 0.8rem;
|
|
line-height: 1.5;
|
|
color: var(--color-fg-muted);
|
|
}
|
|
.update-status:empty {
|
|
display: none;
|
|
}
|
|
.update-status {
|
|
color: var(--color-fg-secondary);
|
|
}
|
|
.update-key {
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
padding: 0.9rem 1rem;
|
|
border: 1px solid var(--color-border-strong);
|
|
border-radius: 0.5rem;
|
|
background: var(--color-surface-raised);
|
|
font-size: 0.875rem;
|
|
line-height: 1.55;
|
|
color: var(--color-fg-secondary);
|
|
}
|
|
.update-key strong {
|
|
color: var(--color-fg-primary);
|
|
}
|
|
.update-key a:not([class]) {
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.2em;
|
|
}
|
|
.update-leads {
|
|
border-top: 1px solid var(--color-border-subtle);
|
|
}
|
|
.update-leads > li {
|
|
display: grid;
|
|
gap: 0.25rem;
|
|
padding: 0.7rem 0;
|
|
border-bottom: 1px solid var(--color-border-subtle);
|
|
}
|
|
.update-meta {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.72rem;
|
|
color: var(--color-fg-tertiary);
|
|
}
|
|
.update-meta a:hover,
|
|
.update-title a:hover {
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.2em;
|
|
}
|
|
.update-tag {
|
|
display: inline-block;
|
|
padding: 0 0.35rem;
|
|
border: 1px solid var(--color-border-strong);
|
|
border-radius: 0.25rem;
|
|
font-family: var(--font-mono);
|
|
font-size: 0.68rem;
|
|
letter-spacing: var(--tracking-caps);
|
|
text-transform: uppercase;
|
|
color: var(--color-fg-tertiary);
|
|
}
|
|
.update-title {
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
color: var(--color-fg-primary);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.update-draft {
|
|
font-size: 0.85rem;
|
|
line-height: 1.5;
|
|
color: var(--color-fg-secondary);
|
|
}
|
|
.update-retry {
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.2em;
|
|
color: var(--color-fg-primary);
|
|
cursor: pointer;
|
|
}
|
|
.update-note a {
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.2em;
|
|
}
|