Mockups: rich tasks, task, projects and needs-you screens
One self-contained mockup (docs/mockups/tasks.html) for the inner-screen UX pass, plus tasks-notes.md mapping each piece to API v1 data and what is missing. - Sidebar specialists: the Stardust mark scaled down with an elapsed timer, and a chevron that opens the task, stage, attempt, the last activity lines and the queue. Idle rows stay quiet. Review and Checks have rows. - Tasks grouped by Needs you, In progress, Ready to merge, Done, with quiet project and person filters. Each row: project monogram, a six-node stage track with the live mark, who filed it, the source message, time since the last change, checks and review badges with the family in a tooltip, who is working now, and possible duplicates with a creator-only ⋯. - Task page: header with the full track, a one-line summary, a timeline of what happened beside the Questions and notes thread, and the brief, findings and step summaries folded under Details as markdown. - Projects list and detail: description, attachments with branch and last commit, stack, whether checks run here, task spread, people, recent activity and the coordinator's notes. Nav order puts Projects above Tasks. Every row is clickable and keyboard reachable. - Merging per Paul's ruling: no "Open on Amadan to merge". The coordinator merges (a Merging stage, then Done with the merged SHA); the one exception is a single "Merge without checks?" card. Needs you is decision cards. - Desktop 1280 and phone 390, light and dark, reduced motion, and a Live toggle that runs a step through to Done.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2 files changed,
+1,330
−0
docs/mockups/tasks-notes.md+96 −0docs/mockups/tasks.html+1,234 −0
CI failed — run details
diff --git a/docs/mockups/tasks-notes.md b/docs/mockups/tasks-notes.md| new file mode 100644 |
| index 00000000..3cd09554 |
| --- /dev/null |
| +++ b/docs/mockups/tasks-notes.md |
| @@ -0,0 +1,96 @@ |
| +# Tasks, task, projects, project, needs you: notes for the build |
| + |
| +The mockup is `tasks.html`, one self-contained file. `?screen=tasks|task|projects|project|needs&theme=light|dark&motion=reduced&live=on&task=<id>` opens straight into a state. Copy is placeholder and goes through copy review when built. |
| + |
| +## What each piece needs from API v1 |
| + |
| +Shapes are `internal/wire` (`Task`, `Step`, `Finding`, `Project`, `Attachment`, `Question`, `ThreadEntry`). "Missing" means nothing stores or serves it today. |
| + |
| +### Sidebar specialist rows |
| + |
| +| Piece | Source | Status | |
| +| --- | --- | --- | |
| +| Working or idle | last `Step` of each task: `state` running or queued, by `specialist` (checks folded under Review today in `rail.go`; the mockup gives Checks its own row) | have | |
| +| Elapsed timer | `Step.started_at` | have | |
| +| Task link, stage, attempt | `Task.id`, `Task.stage`, `Step.attempt` | have | |
| +| Live activity lines ("Reading live.js", "Running checks", "Committing") | per-step activity events, the same kind the coordinator's thinking line already streams (`chat.activity.*`) | missing: the runner reports nothing between start and finish; needs a step activity stream (last N lines, with a time each) | |
| +| Queue ("1 waiting: …") | tasks whose next step is queued, or tasks investigated but not started | partly: `StepQueued` exists; "looked into, waiting for Engineering" has no step yet, so it needs a flag or the coordinator's own queue | |
| +| Coordinator working (looking into, merging) | no step today | missing: a coordinator activity for a task (looking into it, merging) | |
| + |
| +### Task rows and groups |
| + |
| +| Piece | Source | Status | |
| +| --- | --- | --- | |
| +| Group: Needs you | `Task.needs_you` (`fix_rounds`, `branch_moved`, `review_blocked`) | partly: also needs `merge_without_checks`, `stopped` (last step failed, creator can retry), `question` (a question to the person), and the creator address so only the creator sees the group | |
| +| Group: In progress, Ready to merge, Done | `Task.stage` | have; `merging` is a new stage (see Merging) | |
| +| Project monogram | `Project.title` | have; a project icon is missing (letter monogram with a stable hue until then) | |
| +| Stage track | `Task.stage`, and `Step` timestamps for the small times under the full track | have | |
| +| Live mark on the track | a running step, or a coordinator activity | partly (coordinator activity missing) | |
| +| Who filed it (avatar and name) | `Task.creator` (an address) | partly: no display name or avatar; Keymail profile or a people lookup needed | |
| +| "From your conversation, 18:39" linked to the message | `Task.turn_id` | partly: the turn is known but the message id and its time in the conversation are not served with the task; needs `source_message_id` and `source_at` | |
| +| Time since the last change | `Task.updated_at` | have, as long as every step, verdict and merge bumps it | |
| +| Checks badge with reason | `Task.checks`, `Task.checks_reason`, the step's `gate` and `exit_code` | have | |
| +| Review badge with family in the tooltip | `Task.verdict`, `Task.review_label`, `Step.family` | have | |
| +| Who is working now | running step's `specialist`; "Waiting for Nora" from `creator` and `needs_you` | have / partly (names) | |
| +| Branch and SHA in detail or on hover | `Task.branch`, `candidate_sha`, `url` | have | |
| +| Possible duplicate | similarity between open tasks in the same project | missing: `Task.duplicate_of` set by the coordinator when it records a task (title and brief similarity, same project, open); plus a "merge into" mutation that closes one task as a duplicate of another | |
| +| Quiet ⋯ for the creator only | `Task.creator` vs the signed-in address | have | |
| +| Filters by project and person | `project_id`, `creator` | have (client-side is enough) | |
| +| Whole row clickable | none | have | |
| + |
| +### Task page |
| + |
| +| Piece | Source | Status | |
| +| --- | --- | --- | |
| +| Header, full stage track with times | `Task`, `Step.started_at/finished_at`, findings' `at` | have | |
| +| One-line human summary | derived from stage, last step, checks and review | derivable; the coordinator could also write it (`Task.summary`, missing) | |
| +| Timeline: noted, findings, attempt N with summary, pushed, checks, review findings, fix rounds, ready, merging, merged | `Findings`, `Steps` (summary, candidate_sha, pushed, round, verdict, findings), `Task.stage` | have, except merging and merged (see below) | |
| +| Step summaries as markdown | `Step.summary` | have; render with the same `chatMarkdown` as the conversation | |
| +| Details folded: brief, findings, summaries, branch, SHA, Open on Amadan | `Task.brief`, `findings`, `steps`, `branch`, `candidate_sha`, `url` | have | |
| +| Live step with the current activity line | step activity stream | missing (as above) | |
| +| Questions and notes beside the timeline | `Task.questions`, `Task.thread`, ask and notes endpoints | have | |
| +| Decision card: Merge without checks? | `checks == cannot_run` and `verdict == approve` on `candidate_sha`; a merge mutation | missing (see Merging) | |
| + |
| +### Merging (binding ruling, 2026-11-07) |
| + |
| +"Open on Amadan to merge" goes. After Ready to merge the coordinator merges (or tasks a specialist to). This needs a backend merge capability that another agent builds: |
| + |
| +- a `merging` stage between `ready_to_merge` and `done`, with `merging_since`; |
| +- a merge action the coordinator can take: fast-forward or merge the task branch into the repo's default branch on Amadan, record `merged_sha` and `merged_at`, move to `done`, delete the branch; |
| +- an outcome-level line in the conversation ("Merged Replace em dash in README into main"); |
| +- the one exception as a question to the creator when checks could not run: `needs_you = merge_without_checks`, answered by `merge` or `wait`; `wait` keeps the task ready and retries checks when a capable runner joins; |
| +- "Open on Amadan" stays as a quiet link in Details only. |
| + |
| +### Projects |
| + |
| +| Piece | Source | Status | |
| +| --- | --- | --- | |
| +| Title and attachments (repos) | `Project.title`, `attachments` | have | |
| +| One-line description | coordinator's notebook and the README | missing: `Project.description` written by the coordinator when it moves in | |
| +| Repo default branch, last commit, when | forge | missing: `Attachment.default_branch`, `head_sha`, `head_subject`, `head_at` (cheap to refresh on the task-list poll) | |
| +| Stack or platforms (iOS, Swift; Go) | detect from the repo (Package.swift, go.mod, project files) when moving in | missing: `Project.stack []string`, `platform` | |
| +| Checks can run here, and where | the runner's capabilities against the project's needs | missing: `Project.checks {here bool, reason, gate}`; today only a step's `checks_reason` says so after the fact | |
| +| Task counts by stage | tasks by `project_id` | have (count client-side or add `Project.task_counts`) | |
| +| Recent activity | task and step timestamps | derivable from tasks; a per-project event list would be cheaper | |
| +| Who is involved | creators of the project's tasks, plus `Project.added_by` | derivable; names and avatars missing as above | |
| +| Coordinator's notes about the project | notebook entries tagged with the project | partly: notebook exists; entries need a `project_id` | |
| +| Later: CARLOS apps and links as attachments | `Attachment.kind` | have the shape | |
| + |
| +### Needs you |
| + |
| +| Piece | Source | Status | |
| +| --- | --- | --- | |
| +| One card per decision with context | `needs_you` plus the task's last step, checks and review | partly: needs the new `needs_you` values above | |
| +| One-tap answers | mutations: merge, wait, retry, cancel, merge-into, answer a question | partly: retry and cancel exist; merge, wait, merge-into and the one-tap question answer are missing | |
| +| Waiting on others | tasks with `needs_you` whose creator is someone else | have | |
| + |
| +### Nav |
| + |
| +Projects moves above Tasks: Conversation, Projects, Tasks, Needs you. `rail.go`'s `nav` order changes; no data change. |
| + |
| +## Behaviour notes |
| + |
| +- The coordinator should check open tasks in the same project before recording a new one, and ask "Is this the same as …?" instead of filing a third copy. The swipe-back bug was filed three times in one evening. When it does file, it sets `duplicate_of` so the list can show it and the creator can fold it. |
| +- Only the creator acts on a task. Everyone on the team reads it. Rows and cards show "Waiting for Nora" rather than hiding her tasks. |
| +- The live mark is the Stardust sparkle from the thinking line, at `font-size` 0.85em in the rail and on a track, without motes there so it sheds no dust over text. Reduced motion keeps the star and two satellites still; the timers keep counting, since they are content. |
| +- Elapsed timers tick client-side from `started_at`; nothing polls for them. |
diff --git a/docs/mockups/tasks.html b/docs/mockups/tasks.html| new file mode 100644 |
| index 00000000..6b2d233c |
| --- /dev/null |
| +++ b/docs/mockups/tasks.html |
| @@ -0,0 +1,1234 @@ |
| +<!DOCTYPE html> |
| +<html lang="en" data-theme="system" data-motion="full" data-live="off"> |
| +<head> |
| +<meta charset="utf-8"> |
| +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| +<title>Equipo inner screens: tasks, projects, needs you</title> |
| +<style> |
| +/* ── Theme tokens, copied from internal/equipo/static/theme.css and |
| + tokens.css (day theme). Everything below uses only these. ───────── */ |
| +:root { |
| + color-scheme: light dark; |
| + --rst-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; |
| + --rst-radius: 6px; --rst-radius-sm: 4px; --rst-radius-pill: 999px; |
| + --rst-bg: light-dark(#fbfbfc, #0c0d0f); |
| + --rst-surface: light-dark(#ffffff, #141518); |
| + --rst-surface-2: light-dark(#f3f3f5, #18191d); |
| + --rst-line: light-dark(#e6e6ea, #26282e); |
| + --rst-line-strong: light-dark(#868691, #71737c); |
| + --rst-text: light-dark(#18181b, #ededf0); |
| + --rst-text-muted: light-dark(#52525c, #a1a1aa); |
| + --rst-text-faint: light-dark(#6b6b75, #8c8c96); |
| + --rst-accent: light-dark(#1f56d6, #7aa2ff); |
| + --rst-accent-strong: light-dark(color-mix(in srgb, var(--rst-accent) 80%, #000000), color-mix(in srgb, var(--rst-accent) 68.5%, #ffffff)); |
| + --rst-accent-soft: light-dark(#ecf1ff, #16234a); |
| + --rst-on-accent: light-dark(#ffffff, #0c0d0f); |
| + --rst-on-accent-fill: #ffffff; |
| + --rst-accent-fill: light-dark(#2257df, #2f61e8); |
| + --rst-accent-fill-hover: light-dark(#1d4dc8, #2956d0); |
| + --rst-accent-fill-edge: light-dark(#153ca0, #1f43a6); |
| + --rst-tone-neutral-fg: light-dark(#374151, #c3c9d1); |
| + --rst-tone-neutral-bg: light-dark(#eef0f2, #262c34); |
| + --rst-tone-positive-fg: light-dark(#166534, #6ee7a8); |
| + --rst-tone-positive-bg: light-dark(#dcfce7, #10281c); |
| + --rst-tone-warning-fg: light-dark(#854d0e, #f0c46a); |
| + --rst-tone-warning-bg: light-dark(#fef3c7, #2c2110); |
| + --rst-tone-negative-fg: light-dark(#b91c1c, #f79aa0); |
| + --rst-tone-negative-bg: light-dark(#fee2e2, #331819); |
| + --rst-shadow-pop: 0 2px 4px light-dark(rgba(16, 24, 40, 0.06), rgba(0, 0, 0, 0.35)), 0 8px 16px -4px light-dark(rgba(16, 24, 40, 0.1), rgba(0, 0, 0, 0.5)); |
| + --rst-shadow-lift: 0 1px 2px light-dark(rgba(16, 24, 40, 0.08), rgba(0, 0, 0, 0.3)); |
| + --rst-control-face: light-dark(#ffffff, #141518); |
| + --rst-control-face-hover: light-dark(#f7f8fa, #1b1d22); |
| + --rst-control-border: light-dark(#d0d4dc, #343843); |
| + --rst-control-border-hover: light-dark(#8a8a95, #71737c); |
| + --rst-tint-hover: light-dark(color-mix(in srgb, var(--rst-accent) 4.5%, var(--rst-surface)), color-mix(in srgb, var(--rst-accent) 10%, var(--rst-bg))); |
| + --rst-tint-press: light-dark(color-mix(in srgb, var(--rst-accent) 8.5%, var(--rst-surface)), color-mix(in srgb, var(--rst-accent) 19%, #000000)); |
| + --rst-focus-edge: var(--rst-accent); |
| + --rst-nav-current-bg: light-dark(#ffffff, #141518); |
| + --rst-nav-current-fg: light-dark(#18181b, #ededf0); |
| + --rst-title-size: 1.25rem; --rst-title-weight: 600; --rst-title-track: -0.012em; |
| + --rst-fs-lg: 1.0625rem; --rst-fs-base: 0.875rem; --rst-fs-sm: 0.78125rem; --rst-fs-xs: 0.71875rem; |
| + --rst-sp-1: 0.25rem; --rst-sp-2: 0.5rem; --rst-sp-3: 0.75rem; --rst-sp-4: 1rem; --rst-sp-5: 1.5rem; --rst-sp-6: 2.5rem; |
| + --rst-target: 2rem; --rst-tap: 2.75rem; |
| + --equipo-ease: cubic-bezier(.22, .8, .24, 1); |
| + --equipo-warm: color-mix(in srgb, var(--rst-tone-warning-fg) 85%, var(--rst-tone-warning-bg)); |
| +} |
| +:root[data-theme="light"] { color-scheme: light; } |
| +:root[data-theme="dark"] { color-scheme: dark; } |
| + |
| +/* ── The mockup page around the frames ───────────────────────────── */ |
| +*, *::before, *::after { box-sizing: border-box; } |
| +html { background: var(--rst-bg); } |
| +body { margin: 0; color: var(--rst-text); font: var(--rst-fs-base)/1.5 var(--rst-font); -webkit-font-smoothing: antialiased; } |
| +a { color: var(--rst-accent); } |
| +:focus-visible { outline: 2px solid var(--rst-focus-edge); outline-offset: 2px; } |
| +.page { padding: var(--rst-sp-5) clamp(var(--rst-sp-3), 3vw, var(--rst-sp-6)) var(--rst-sp-6); } |
| +.intro { max-width: 52rem; margin-block-end: var(--rst-sp-4); } |
| +.intro h1 { font-size: var(--rst-title-size); font-weight: var(--rst-title-weight); letter-spacing: var(--rst-title-track); margin: 0 0 var(--rst-sp-2); } |
| +.intro p { margin: 0; color: var(--rst-text-muted); max-width: 70ch; } |
| +.controls { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: var(--rst-sp-2) var(--rst-sp-5); margin: 0 calc(-1 * clamp(var(--rst-sp-3), 3vw, var(--rst-sp-6))) var(--rst-sp-5); padding: var(--rst-sp-2) clamp(var(--rst-sp-3), 3vw, var(--rst-sp-6)); background: color-mix(in srgb, var(--rst-bg) 88%, transparent); backdrop-filter: blur(8px); border-block-end: 1px solid var(--rst-line); } |
| +.control { display: flex; align-items: center; gap: var(--rst-sp-2); font-size: var(--rst-fs-sm); color: var(--rst-text-muted); } |
| +.seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--rst-control-border); border-radius: var(--rst-radius); background: var(--rst-control-face); } |
| +.seg button, .replay { font: inherit; font-size: var(--rst-fs-sm); color: var(--rst-text-muted); background: transparent; border: 0; border-radius: var(--rst-radius-sm); padding: .25rem .65rem; cursor: pointer; white-space: nowrap; } |
| +.seg button[aria-pressed="true"] { background: var(--rst-accent-soft); color: var(--rst-accent); } |
| +.replay { border: 1px solid var(--rst-control-border); background: var(--rst-control-face); color: var(--rst-text); border-radius: var(--rst-radius); padding: .3rem .8rem; } |
| +.band { margin-block-start: var(--rst-sp-6); } |
| +.band > h2 { font-size: var(--rst-fs-base); font-weight: 600; margin: 0 0 var(--rst-sp-1); } |
| +.band > p { margin: 0 0 var(--rst-sp-4); color: var(--rst-text-muted); font-size: var(--rst-fs-sm); max-width: 70ch; } |
| +.stage-wrap { position: relative; } |
| +.stage { inline-size: 1280px; block-size: 860px; transform-origin: 0 0; border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); overflow: hidden; box-shadow: var(--rst-shadow-lift); background: var(--rst-bg); } |
| +.phones { display: flex; flex-wrap: wrap; gap: var(--rst-sp-5); align-items: flex-start; } |
| +.phone { inline-size: 390px; block-size: 800px; flex: none; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rst-line); border-radius: 2.25rem; box-shadow: var(--rst-shadow-pop); background: var(--rst-bg); |
| + --rst-fs-lg: 1.1875rem; --rst-fs-base: 1rem; --rst-fs-sm: 0.875rem; --rst-fs-xs: 0.8125rem; font-size: var(--rst-fs-base); } |
| +.phone > .status { flex: none; display: flex; justify-content: space-between; padding: var(--rst-sp-3) var(--rst-sp-5) 0 1.75rem; background: var(--rst-surface); font-size: var(--rst-fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; } |
| +.phone > header { position: relative; flex: none; display: flex; align-items: center; min-block-size: 2.75rem; padding: var(--rst-sp-2) var(--rst-sp-3); background: var(--rst-surface); border-block-end: 1px solid var(--rst-line); } |
| +.phone > header .back { display: inline-flex; align-items: center; gap: 2px; color: var(--rst-accent); text-decoration: none; font-size: var(--rst-fs-sm); } |
| +.phone > header .back svg { inline-size: 1.1em; block-size: 1.1em; transform: rotate(90deg); } |
| +.phone > header .ptitle { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: var(--rst-fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-inline-size: 55%; } |
| +.phone > .app { flex: 1; min-block-size: 0; overflow-y: auto; } |
| +.phone .main { padding: var(--rst-sp-4) var(--rst-sp-3) var(--rst-sp-6); } |
| +.caption { color: var(--rst-text-muted); font-size: var(--rst-fs-sm); margin: var(--rst-sp-2) 0 0; max-inline-size: 390px; } |
| + |
| +/* ── The shell: rail and main, as the sidebar shell draws them ───── */ |
| +.shell { display: grid; grid-template-columns: 17rem minmax(0, 1fr); block-size: 100%; } |
| +.rail { padding: var(--rst-sp-4); border-inline-end: 1px solid var(--rst-line); background: var(--rst-bg); overflow-y: auto; font-size: var(--rst-fs-sm); } |
| +.brand { display: flex; align-items: center; gap: var(--rst-sp-2); font-weight: 600; margin: 0 0.55rem var(--rst-sp-4); color: var(--rst-text); text-decoration: none; } |
| +.brand .icon { inline-size: 1em; block-size: 1em; } |
| +.rail nav a, .rail .spec > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--rst-sp-2); padding: 0.35rem 0.55rem; border-radius: var(--rst-radius); color: var(--rst-text-muted); text-decoration: none; } |
| +.rail nav a .icon, .rail .spec .icon { inline-size: 1em; block-size: 1em; } |
| +.rail nav a > span, .rail .spec > summary > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rst-text); } |
| +.rail nav a:hover, .rail .spec > summary:hover { background: var(--rst-tint-hover); } |
| +.rail nav a[aria-current="page"] { background: var(--rst-nav-current-bg); color: var(--rst-nav-current-fg); box-shadow: 0 0 0 1px var(--rst-line), var(--rst-shadow-lift); } |
| +.rail .count { font-size: var(--rst-fs-xs); color: var(--rst-text-muted); font-variant-numeric: tabular-nums; } |
| +.rail .count[data-attention] { color: var(--rst-tone-warning-fg); font-weight: 600; } |
| +.nav-group { color: var(--rst-text-muted); margin: var(--rst-sp-4) 0 var(--rst-sp-1); padding: 0 0.55rem; font-size: var(--rst-fs-xs); } |
| +.main { padding: var(--rst-sp-5) var(--rst-sp-6); overflow-y: auto; container: app / inline-size; } |
| +.stage .main { block-size: 100%; } |
| +.main h1 { font-size: var(--rst-title-size); font-weight: var(--rst-title-weight); letter-spacing: var(--rst-title-track); margin: 0; } |
| +.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--rst-sp-2) var(--rst-sp-4); margin-block-end: var(--rst-sp-4); } |
| +.page-head p { margin: 0; color: var(--rst-text-muted); } |
| +.inner { max-inline-size: 66rem; } |
| + |
| +/* ── The living mark: Stardust, scaled to where it sits ──────────── */ |
| +.mark { position: relative; flex: none; display: inline-block; inline-size: 1em; block-size: 1em; vertical-align: -.12em; } |
| +.mark svg { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; filter: drop-shadow(0 0 .22em color-mix(in srgb, var(--rst-accent) 55%, transparent)); } |
| +.mark path { fill: var(--rst-accent); transform-box: fill-box; transform-origin: center; animation: equipo-star 4.2s ease-in-out infinite; } |
| +.mark circle { fill: var(--rst-on-accent-fill); transform-box: fill-box; transform-origin: center; animation: equipo-glint 2.1s ease-in-out infinite; } |
| +@keyframes equipo-star { 0% { transform: rotate(0) scale(.8); } 50% { transform: rotate(45deg) scale(1.05); } 100% { transform: rotate(90deg) scale(.8); } } |
| +@keyframes equipo-glint { 0%, 100% { transform: scale(.75); opacity: .65; } 50% { transform: scale(1.1); opacity: 1; } } |
| +.mark i { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; opacity: 0; } |
| +.mark [data-sat] { inset-block-start: auto; inset-inline-start: auto; inline-size: .44em; block-size: .44em; background: var(--rst-accent); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); transform: scale(0); animation: equipo-sat 2.7s ease-in-out .4s infinite; } |
| +.mark [data-sat="1"] { inset-block-start: -.32em; inset-inline-end: -.38em; } |
| +.mark [data-sat="2"] { inset-block-end: -.22em; inset-inline-start: -.36em; inline-size: .34em; block-size: .34em; background: color-mix(in srgb, var(--rst-accent) 45%, var(--rst-on-accent-fill)); animation-duration: 3.7s; animation-delay: 1.5s; } |
| +.mark [data-sat="3"] { inset-block-start: -.45em; inset-inline-start: -.05em; inline-size: .3em; block-size: .3em; animation-duration: 4.3s; animation-delay: 2.6s; } |
| +@keyframes equipo-sat { 0%, 24%, 100% { opacity: 0; transform: scale(0) rotate(0); } 10% { opacity: 1; transform: scale(1) rotate(45deg); } } |
| +.mark [data-mote] { inline-size: .26em; block-size: .26em; margin: -.13em; border-radius: 50%; background: var(--rst-accent); box-shadow: 0 0 .25em color-mix(in srgb, var(--rst-accent) 70%, transparent); } |
| +.mark [data-mote="light"] { background: color-mix(in srgb, var(--rst-accent) 40%, var(--rst-on-accent-fill)); } |
| +.mark[data-flourish] svg { animation: equipo-half .7s var(--equipo-ease); } |
| +.mark[data-flourish] [data-mote] { animation: equipo-dust 1.3s ease-out var(--d) both; } |
| +@keyframes equipo-half { 50% { transform: rotate(90deg) scale(1.28); } 100% { transform: rotate(180deg); } } |
| +@keyframes equipo-dust { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 15% { opacity: 1; transform: translate(calc(var(--dx) * .12), calc(var(--dy) * .12)) scale(1.2); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } } |
| +/* Smaller marks (the rail, a row's track) keep the star and lose the |
| + motes, so they never shed dust over neighbouring text. */ |
| +.mark[data-size="s"] { font-size: .85em; } |
| +.mark[data-size="s"] [data-mote] { display: none; } |
| +.elapsed { font-variant-numeric: tabular-nums; color: var(--rst-text-muted); } |
| + |
| +/* ── Rail: specialist rows with the living mark and a dropdown ───── */ |
| +.spec { margin: 0; } |
| +.spec > summary { list-style: none; cursor: default; } |
| +.spec > summary::-webkit-details-marker { display: none; } |
| +.spec[data-state="working"] > summary { cursor: pointer; } |
| +.spec .state { display: inline-flex; align-items: center; gap: .4em; font-size: var(--rst-fs-xs); color: var(--rst-text-muted); white-space: nowrap; } |
| +.spec[data-state="idle"] .state { color: var(--rst-text-faint); } |
| +.spec .chev { inline-size: 1em; block-size: 1em; color: var(--rst-text-faint); transition: transform .25s var(--equipo-ease); } |
| +.spec[open] .chev { transform: rotate(180deg); } |
| +.spec[data-state="idle"] .chev { visibility: hidden; } |
| +.spec-panel { margin: var(--rst-sp-1) 0.55rem var(--rst-sp-2) calc(0.55rem + 1em + var(--rst-sp-2)); padding: var(--rst-sp-2) var(--rst-sp-3); border: 1px solid var(--rst-line); border-radius: var(--rst-radius); background: color-mix(in oklab, var(--rst-surface), var(--rst-accent-soft) 35%); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); animation: equipo-open .25s var(--equipo-ease); } |
| +@keyframes equipo-open { from { opacity: 0; transform: translateY(-.25rem); } } |
| +.spec-panel a.task { display: block; color: var(--rst-text); font-size: var(--rst-fs-sm); font-weight: 500; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| +.spec-panel a.task:hover { text-decoration: underline; text-underline-offset: 2px; } |
| +.spec-panel .where { margin: 2px 0 var(--rst-sp-2); display: flex; flex-wrap: wrap; gap: 0 var(--rst-sp-2); } |
| +.spec-panel ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; } |
| +.spec-panel ol li { display: flex; gap: var(--rst-sp-2); align-items: baseline; min-width: 0; color: var(--rst-text-faint); } |
| +.spec-panel ol li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| +.spec-panel ol li:last-child { color: var(--rst-text); } |
| +.spec-panel ol li:last-child > span:first-child { font-weight: 500; } |
| +.spec-panel ol li[data-new] { animation: equipo-rise .3s ease-out both; } |
| +@keyframes equipo-rise { from { opacity: 0; transform: translateY(.3em); } } |
| +.spec-panel .queue { margin: var(--rst-sp-2) 0 0; padding-block-start: var(--rst-sp-2); border-block-start: 1px solid var(--rst-line); } |
| +.spec-panel .queue a { color: var(--rst-text-muted); } |
| + |
| +/* ── Phone index (the rail as drill-down rows) ───────────────────── */ |
| +.index { list-style: none; margin: 0 0 var(--rst-sp-4); padding: 0; border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); background: var(--rst-surface); overflow: hidden; } |
| +.index li + li { border-block-start: 1px solid var(--rst-line); } |
| +.index a, .index .spec > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--rst-sp-3); padding: var(--rst-sp-3); color: var(--rst-text); text-decoration: none; border-radius: 0; } |
| +.index a:hover, .index .spec > summary:hover { background: var(--rst-tint-hover); } |
| +.index .icon { inline-size: 1.1em; block-size: 1.1em; color: var(--rst-accent); } |
| +.index .chev-r { inline-size: 1em; block-size: 1em; color: var(--rst-text-faint); transform: rotate(-90deg); } |
| +.index .spec-panel { margin: 0 var(--rst-sp-3) var(--rst-sp-3) calc(var(--rst-sp-3) + 1.1em + var(--rst-sp-3)); } |
| + |
| +/* ── People and projects ─────────────────────────────────────────── */ |
| +.av { display: inline-grid; place-items: center; flex: none; inline-size: 1.25rem; block-size: 1.25rem; border-radius: 50%; font-size: .6rem; font-weight: 600; letter-spacing: 0; color: light-dark(oklch(0.35 0.08 var(--h)), oklch(0.9 0.06 var(--h))); background: light-dark(oklch(0.92 0.045 var(--h)), oklch(0.32 0.06 var(--h))); box-shadow: inset 0 0 0 1px light-dark(oklch(0.85 0.06 var(--h)), oklch(0.4 0.07 var(--h))); } |
| +.av[data-size="l"] { inline-size: 2rem; block-size: 2rem; font-size: .85rem; } |
| +.who { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; } |
| +.avs { display: inline-flex; } |
| +.avs .av + .av { margin-inline-start: -.3rem; box-shadow: 0 0 0 2px var(--rst-surface), inset 0 0 0 1px light-dark(oklch(0.85 0.06 var(--h)), oklch(0.4 0.07 var(--h))); } |
| +.mono { display: inline-grid; place-items: center; flex: none; inline-size: 1.75rem; block-size: 1.75rem; border-radius: var(--rst-radius); font-weight: 650; font-size: .85rem; color: light-dark(oklch(0.42 0.13 var(--h)), oklch(0.88 0.09 var(--h))); background: light-dark(oklch(0.955 0.03 var(--h)), oklch(0.3 0.06 var(--h))); box-shadow: inset 0 0 0 1px light-dark(oklch(0.9 0.05 var(--h)), oklch(0.38 0.07 var(--h))); } |
| +.mono[data-size="l"] { inline-size: 2.75rem; block-size: 2.75rem; font-size: 1.25rem; border-radius: calc(1.5 * var(--rst-radius)); } |
| +.mono[data-size="s"] { inline-size: 1.25rem; block-size: 1.25rem; font-size: .65rem; border-radius: var(--rst-radius-sm); } |
| + |
| +/* ── Lists: a bordered group of rows, the whole row clickable ────── */ |
| +.group { margin-block: 0 var(--rst-sp-5); } |
| +.group > h2 { display: flex; align-items: baseline; gap: var(--rst-sp-2); font-size: var(--rst-fs-base); font-weight: 600; margin: 0 0 var(--rst-sp-2); } |
| +.group > h2 .n { color: var(--rst-text-muted); font-weight: 400; font-variant-numeric: tabular-nums; } |
| +.group > h2 .hint { color: var(--rst-text-muted); font-weight: 400; font-size: var(--rst-fs-sm); margin-inline-start: auto; } |
| +.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); background: var(--rst-surface); overflow: hidden; } |
| +.row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--rst-sp-3); align-items: start; padding: var(--rst-sp-3) var(--rst-sp-4); transition: background .15s; } |
| +.row + .row { border-block-start: 1px solid var(--rst-line); } |
| +.row:hover { background: var(--rst-tint-hover); } |
| +.row:has(.row-link:focus-visible) { background: var(--rst-tint-hover); box-shadow: inset 0 0 0 2px var(--rst-focus-edge); } |
| +.row .row-link { color: var(--rst-text); text-decoration: none; font-weight: 500; } |
| +.row .row-link::after { content: ""; position: absolute; inset: 0; cursor: pointer; } |
| +.row .row-link:focus-visible { outline: none; } |
| +.row :is(.badge, .menu, .dup a, .chip a, .who a) { position: relative; z-index: 1; } |
| +.row > .mono { margin-block-start: .1rem; } |
| +.row .body { min-width: 0; display: grid; gap: .3rem; } |
| +.row .title { display: flex; align-items: baseline; gap: var(--rst-sp-2); min-width: 0; } |
| +.row .title .row-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } |
| +.row .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem var(--rst-sp-3); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); min-width: 0; } |
| +.row .meta .who { color: var(--rst-text-muted); } |
| +.row .meta .who a { color: inherit; text-decoration: none; } |
| +.row .meta .who a:hover { text-decoration: underline; text-underline-offset: 2px; } |
| +.row .side { display: grid; justify-items: end; gap: .35rem; font-size: var(--rst-fs-xs); color: var(--rst-text-muted); white-space: nowrap; } |
| +.row .side .top { display: inline-flex; align-items: center; gap: var(--rst-sp-2); min-block-size: 1.5rem; } |
| +.row .side .badges { display: flex; gap: var(--rst-sp-1); } |
| +.row .side .badges:empty { display: none; } |
| +.row .ago { font-variant-numeric: tabular-nums; } |
| +.row[data-stage="done"] .row-link, .row[data-stage="cancelled"] .row-link { color: var(--rst-text-muted); font-weight: 400; } |
| +.row[data-stage="done"] .track, .row[data-stage="cancelled"] .track { opacity: .6; } |
| + |
| +/* ── The stage track: six nodes on a hairline, the current one lit ── */ |
| +.track { display: inline-flex; align-items: center; margin: 0; padding: 0; list-style: none; flex: none; } |
| +.track li { position: relative; display: grid; place-items: center; inline-size: .5rem; block-size: .5rem; } |
| +.track li + li { margin-inline-start: .85rem; } |
| +.track li + li::before { content: ""; position: absolute; inset-inline-end: 100%; inline-size: .85rem; block-size: 1px; background: var(--rst-line-strong); opacity: .45; } |
| +.track li::after { content: ""; inline-size: .4rem; block-size: .4rem; border-radius: 50%; border: 1px solid var(--rst-line-strong); background: var(--rst-surface); } |
| +.track li[data-s="done"]::after { background: var(--rst-line-strong); border-color: var(--rst-line-strong); } |
| +.track li[data-s="done"] + li::before { opacity: 1; } |
| +.track li[data-s="current"]::after { inline-size: .5rem; block-size: .5rem; background: var(--rst-accent); border-color: var(--rst-accent); box-shadow: 0 0 0 3px var(--rst-accent-soft); } |
| +.track li[data-s="current"][data-tone="negative"]::after { background: var(--rst-tone-negative-fg); border-color: var(--rst-tone-negative-fg); box-shadow: 0 0 0 3px var(--rst-tone-negative-bg); } |
| +.track li[data-s="current"][data-tone="positive"]::after { background: var(--rst-tone-positive-fg); border-color: var(--rst-tone-positive-fg); box-shadow: 0 0 0 3px var(--rst-tone-positive-bg); } |
| +.track li[data-s="current"][data-tone="attention"]::after { background: var(--rst-tone-warning-fg); border-color: var(--rst-tone-warning-fg); box-shadow: 0 0 0 3px var(--rst-tone-warning-bg); } |
| +.track li[data-live]::after { display: none; } |
| +.track li[data-live] .mark { font-size: 1rem; } |
| +.track-line { display: inline-flex; align-items: center; gap: var(--rst-sp-2); min-width: 0; } |
| +.track-line .stage-name { color: var(--rst-text); font-weight: 500; white-space: nowrap; } |
| +.track-line .stage-name[data-tone="negative"] { color: var(--rst-tone-negative-fg); } |
| +.track-line .stage-name[data-tone="attention"] { color: var(--rst-tone-warning-fg); } |
| +.chip { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; color: var(--rst-text-muted); } |
| +.chip .mark { font-size: .9em; } |
| +/* The full track with labels under each node, for the detail header. */ |
| +.track-full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: var(--rst-sp-4) 0 0; padding: 0; list-style: none; font-size: var(--rst-fs-xs); color: var(--rst-text-muted); } |
| +.track-full li { position: relative; display: grid; justify-items: center; gap: .4rem; padding-block-start: .25rem; } |
| +.track-full li::before { content: ""; position: absolute; inset-block-start: calc(.25rem + .35rem); inset-inline: 50%; block-size: 1px; background: var(--rst-line-strong); opacity: .45; } |
| +.track-full li + li::before { inset-inline-start: -50%; inset-inline-end: 50%; } |
| +.track-full li:last-child::before { display: none; } |
| +.track-full li[data-s="done"] + li::before, .track-full li[data-s="current"]::before { opacity: 1; } |
| +.track-full li:last-child[data-s="current"]::before, .track-full li:last-child[data-s="done"]::before { display: none; } |
| +.track-full li .dot { position: relative; z-index: 1; display: grid; place-items: center; inline-size: .7rem; block-size: .7rem; } |
| +.track-full li .dot::after { content: ""; inline-size: .5rem; block-size: .5rem; border-radius: 50%; border: 1px solid var(--rst-line-strong); background: var(--rst-surface); } |
| +.track-full li[data-s="done"] .dot::after { background: var(--rst-line-strong); border-color: var(--rst-line-strong); } |
| +.track-full li[data-s="current"] .dot::after { inline-size: .7rem; block-size: .7rem; background: var(--rst-accent); border-color: var(--rst-accent); box-shadow: 0 0 0 4px var(--rst-accent-soft); } |
| +.track-full li[data-s="current"][data-tone="positive"] .dot::after { background: var(--rst-tone-positive-fg); border-color: var(--rst-tone-positive-fg); box-shadow: 0 0 0 4px var(--rst-tone-positive-bg); } |
| +.track-full li[data-s="current"][data-tone="negative"] .dot::after { background: var(--rst-tone-negative-fg); border-color: var(--rst-tone-negative-fg); box-shadow: 0 0 0 4px var(--rst-tone-negative-bg); } |
| +.track-full li[data-live] .dot::after { display: none; } |
| +.track-full li[data-live] .dot .mark { font-size: 1.2rem; } |
| +.track-full li[data-s="current"] > span { color: var(--rst-text); font-weight: 600; } |
| +.track-full li > span { text-align: center; white-space: nowrap; } |
| +.track-full li > small { color: var(--rst-text-faint); margin-block-start: -.3rem; } |
| + |
| +/* ── Badges for checks and review ────────────────────────────────── */ |
| +.badge { display: inline-flex; align-items: center; gap: .35em; padding: .1rem .5rem .1rem .4rem; border-radius: var(--rst-radius-pill); font-size: var(--rst-fs-xs); white-space: nowrap; border: 1px solid transparent; color: var(--rst-tone-neutral-fg); background: var(--rst-tone-neutral-bg); cursor: default; } |
| +.badge .icon { inline-size: .95em; block-size: .95em; } |
| +.badge[data-tone="positive"] { color: var(--rst-tone-positive-fg); background: var(--rst-tone-positive-bg); } |
| +.badge[data-tone="negative"] { color: var(--rst-tone-negative-fg); background: var(--rst-tone-negative-bg); } |
| +.badge[data-tone="warning"] { color: var(--rst-tone-warning-fg); background: var(--rst-tone-warning-bg); } |
| +.badge[data-tone="live"] { color: var(--rst-accent); background: var(--rst-accent-soft); } |
| +.badge[data-tone="quiet"] { color: var(--rst-text-faint); background: transparent; border-color: var(--rst-line); } |
| + |
| +/* ── Quiet actions: ⋯ menu, hover-revealed links ─────────────────── */ |
| +.menu { position: relative; } |
| +.menu > summary { list-style: none; display: inline-grid; place-items: center; inline-size: 1.5rem; block-size: 1.5rem; border-radius: var(--rst-radius-sm); color: var(--rst-text-muted); cursor: pointer; } |
| +.menu > summary::-webkit-details-marker { display: none; } |
| +.menu > summary:hover { background: var(--rst-tint-press); color: var(--rst-text); } |
| +.menu > summary .icon { inline-size: 1em; block-size: 1em; } |
| +.menu > div { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 2px); z-index: 3; min-inline-size: 15rem; padding: var(--rst-sp-1); border: 1px solid var(--rst-line); border-radius: var(--rst-radius); background: var(--rst-surface); box-shadow: var(--rst-shadow-pop); font-size: var(--rst-fs-sm); } |
| +.menu > div a, .menu > div button { display: block; inline-size: 100%; text-align: start; font: inherit; color: var(--rst-text); background: none; border: 0; padding: .35rem .6rem; border-radius: var(--rst-radius-sm); text-decoration: none; cursor: pointer; } |
| +.menu > div a:hover, .menu > div button:hover { background: var(--rst-tint-hover); } |
| +.menu > div .danger { color: var(--rst-tone-negative-fg); } |
| +.menu > div small { display: block; color: var(--rst-text-muted); } |
| +.row .menu { opacity: 0; transition: opacity .15s; } |
| +.row:hover .menu, .row:focus-within .menu, .row .menu[open] { opacity: 1; } |
| +@media (hover: none) { .row .menu { opacity: 1; } } |
| +.dup { display: flex; align-items: center; gap: var(--rst-sp-2); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); } |
| +.dup .icon { inline-size: 1em; block-size: 1em; color: var(--rst-tone-warning-fg); } |
| +.dup a { color: var(--rst-text-muted); } |
| +.quiet { color: var(--rst-text-muted); font-size: var(--rst-fs-xs); } |
| +.quiet a { color: inherit; } |
| + |
| +/* ── Filters: quiet text with a chevron, not a form ──────────────── */ |
| +.filters { display: flex; flex-wrap: wrap; gap: var(--rst-sp-2) var(--rst-sp-4); margin: 0 0 var(--rst-sp-4); font-size: var(--rst-fs-sm); } |
| +.filter { position: relative; } |
| +.filter > summary { list-style: none; display: inline-flex; align-items: center; gap: .3em; color: var(--rst-text-muted); cursor: pointer; padding: .15rem .3rem; margin: 0 -.3rem; border-radius: var(--rst-radius-sm); } |
| +.filter > summary::-webkit-details-marker { display: none; } |
| +.filter > summary:hover { color: var(--rst-text); background: var(--rst-tint-hover); } |
| +.filter > summary .icon { inline-size: 1em; block-size: 1em; } |
| +.filter[data-active] > summary { color: var(--rst-text); font-weight: 500; } |
| +.filter > div { position: absolute; z-index: 3; inset-block-start: calc(100% + 4px); inset-inline-start: -.3rem; min-inline-size: 12rem; padding: var(--rst-sp-1); border: 1px solid var(--rst-line); border-radius: var(--rst-radius); background: var(--rst-surface); box-shadow: var(--rst-shadow-pop); } |
| +.filter button { display: flex; align-items: center; gap: var(--rst-sp-2); inline-size: 100%; text-align: start; font: inherit; font-size: var(--rst-fs-sm); color: var(--rst-text); background: none; border: 0; padding: .35rem .6rem; border-radius: var(--rst-radius-sm); cursor: pointer; } |
| +.filter button:hover { background: var(--rst-tint-hover); } |
| +.filter button[aria-pressed="true"] { background: var(--rst-accent-soft); color: var(--rst-accent); } |
| + |
| +/* ── Decision cards: the one place a prominent button appears ────── */ |
| +.decision { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--rst-sp-3); row-gap: var(--rst-sp-2); padding: var(--rst-sp-3) var(--rst-sp-4); margin: 0 0 var(--rst-sp-3); border: 1px solid color-mix(in srgb, var(--rst-accent) 22%, var(--rst-line)); border-radius: calc(2 * var(--rst-radius)); background: color-mix(in oklab, var(--rst-surface), var(--rst-accent-soft) 45%); } |
| +.decision[data-tone="attention"] { border-color: color-mix(in srgb, var(--rst-tone-warning-fg) 25%, var(--rst-line)); background: color-mix(in srgb, var(--rst-tone-warning-bg) 45%, var(--rst-surface)); } |
| +.decision > .mono { grid-column: 1; grid-row: 1 / span 4; margin-block-start: .15rem; } |
| +.decision > :not(.mono) { grid-column: 2; } |
| +.decision:not(:has(> .mono)) { grid-template-columns: minmax(0, 1fr); } |
| +.decision:not(:has(> .mono)) > * { grid-column: 1; } |
| +.decision .d-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--rst-sp-2) var(--rst-sp-3); min-width: 0; } |
| +.decision .d-title a { color: var(--rst-text); font-weight: 500; text-decoration: none; } |
| +.decision .d-title a:hover { text-decoration: underline; text-underline-offset: 2px; } |
| +.decision .d-title .quiet { margin-inline-start: auto; } |
| +.decision .d-why { margin: 0; color: var(--rst-text-muted); font-size: var(--rst-fs-sm); max-inline-size: 64ch; } |
| +.decision .d-why strong { color: var(--rst-text); font-weight: 500; } |
| +.decision .d-ask { margin: 0; font-weight: 500; } |
| +.decision .d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rst-sp-2) var(--rst-sp-3); } |
| +.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-block-size: 2rem; padding: .3rem .85rem; font: inherit; font-size: var(--rst-fs-sm); font-weight: 500; border-radius: var(--rst-radius-sm); border: 1px solid var(--rst-control-border); background: var(--rst-control-face); color: var(--rst-text); cursor: pointer; text-decoration: none; } |
| +.btn:hover { background: var(--rst-control-face-hover); border-color: var(--rst-control-border-hover); } |
| +.btn[data-primary] { background: var(--rst-accent-fill); border-color: var(--rst-accent-fill-edge); color: var(--rst-on-accent-fill); } |
| +.btn[data-primary]:hover { background: var(--rst-accent-fill-hover); } |
| +.link { appearance: none; background: none; border: 0; padding: 0; font: inherit; font-size: var(--rst-fs-sm); color: var(--rst-text-muted); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; } |
| +.link:hover { color: var(--rst-text); } |
| +.empty { color: var(--rst-text-muted); margin: 0; } |
| + |
| +/* ── Task detail ─────────────────────────────────────────────────── */ |
| +.t-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--rst-sp-3); row-gap: .3rem; align-items: start; } |
| +.t-head .mono { margin-block-start: .2rem; } |
| +.t-head .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem var(--rst-sp-2); font-size: var(--rst-fs-sm); color: var(--rst-text-muted); } |
| +.t-head .crumbs a { color: var(--rst-text-muted); text-decoration: none; } |
| +.t-head .crumbs a:hover { text-decoration: underline; text-underline-offset: 2px; } |
| +.t-head h1 { margin: 0; } |
| +.t-head .filed { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem var(--rst-sp-3); font-size: var(--rst-fs-sm); color: var(--rst-text-muted); } |
| +.t-head .filed a { color: inherit; } |
| +.t-head .track-full { grid-column: 1 / -1; } |
| +.t-summary { margin: var(--rst-sp-5) 0 var(--rst-sp-4); max-inline-size: 68ch; font-size: var(--rst-fs-lg); line-height: 1.45; } |
| +.t-summary .mark { margin-inline-end: .35em; } |
| +.t-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); gap: var(--rst-sp-6); align-items: start; margin-block-start: var(--rst-sp-4); } |
| +.t-cols > section > h2, .details > summary, .p-section > h2 { font-size: var(--rst-fs-base); font-weight: 600; margin: 0 0 var(--rst-sp-3); } |
| +/* The timeline: a sequence, so nodes and a line. */ |
| +.tl { list-style: none; margin: 0; padding: 0; } |
| +.tl > li { position: relative; display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: var(--rst-sp-3); padding-block: 0 var(--rst-sp-4); } |
| +.tl > li::before { content: ""; position: absolute; inset-inline-start: calc(.625rem - .5px); inset-block-start: 1rem; inset-block-end: 0; inline-size: 1px; background: var(--rst-line); } |
| +.tl > li:last-child::before { display: none; } |
| +.tl .node { position: relative; z-index: 1; display: grid; place-items: center; inline-size: 1.25rem; block-size: 1.25rem; margin-block-start: .1rem; } |
| +.tl .node::after { content: ""; inline-size: .5rem; block-size: .5rem; border-radius: 50%; background: var(--rst-line-strong); } |
| +.tl > li[data-kind="finding"] .node::after, .tl > li[data-kind="noted"] .node::after { background: var(--rst-surface); border: 1px solid var(--rst-line-strong); } |
| +.tl > li[data-kind="stopped"] .node::after { background: var(--rst-tone-negative-fg); } |
| +.tl > li[data-kind="merged"] .node::after { background: var(--rst-tone-positive-fg); box-shadow: 0 0 0 3px var(--rst-tone-positive-bg); } |
| +.tl > li[data-kind="ready"] .node::after, .tl > li[data-kind="decision"] .node::after { background: var(--rst-accent); box-shadow: 0 0 0 3px var(--rst-accent-soft); } |
| +.tl > li[data-live] .node::after { display: none; } |
| +.tl > li[data-live] .node .mark { font-size: 1.2rem; } |
| +.tl > li[data-new] { animation: equipo-rise .35s ease-out both; } |
| +.tl .what { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem var(--rst-sp-2); min-width: 0; } |
| +.tl .what b { font-weight: 500; } |
| +.tl .what time, .tl .what .elapsed { font-size: var(--rst-fs-xs); color: var(--rst-text-faint); font-variant-numeric: tabular-nums; } |
| +.tl .what .badge { margin-inline-start: .1rem; } |
| +.tl .detail { margin: .2rem 0 0; color: var(--rst-text-muted); font-size: var(--rst-fs-sm); max-inline-size: 64ch; } |
| +.tl .detail code, .md code, .attach code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; padding: .05em .3em; border-radius: var(--rst-radius-sm); background: var(--rst-surface-2); color: var(--rst-text); } |
| +.tl .receipt { display: inline-flex; flex-wrap: wrap; gap: 0 var(--rst-sp-3); font-size: var(--rst-fs-xs); color: var(--rst-text-faint); } |
| +.tl .receipt a { color: inherit; opacity: 0; transition: opacity .15s; } |
| +.tl > li:hover .receipt a, .tl > li:focus-within .receipt a { opacity: 1; } |
| +@media (hover: none) { .tl .receipt a { opacity: 1; } } |
| +.tl .live-line { display: inline-flex; align-items: center; gap: .5em; color: var(--rst-text); font-weight: 500; font-size: var(--rst-fs-sm); } |
| +.tl .live-line .elapsed { font-weight: 400; } |
| +.tl .findings { margin: .3rem 0 0; padding-inline-start: 1.1rem; color: var(--rst-text-muted); font-size: var(--rst-fs-sm); } |
| +.tl .findings small { display: block; color: var(--rst-text-faint); font-size: var(--rst-fs-xs); } |
| +.tl .decision { margin: var(--rst-sp-2) 0 0; grid-template-columns: minmax(0, 1fr); } |
| +/* Questions and notes: the task thread beside the timeline. */ |
| +.thread { position: sticky; top: 0; display: flex; flex-direction: column; max-block-size: calc(860px - 8rem); } |
| +.feed { list-style: none; margin: 0 0 var(--rst-sp-3); padding: 0; display: flex; flex-direction: column; gap: var(--rst-sp-3); font-size: var(--rst-fs-sm); } |
| +.msg { max-inline-size: 92%; align-self: flex-start; } |
| +.msg[data-own] { align-self: flex-end; } |
| +.msg .m-meta { display: flex; align-items: baseline; gap: var(--rst-sp-2); color: var(--rst-text-muted); font-size: var(--rst-fs-xs); margin-block-end: .15rem; } |
| +.msg .m-meta .icon { inline-size: 1em; block-size: 1em; vertical-align: -.15em; margin-inline-end: .3em; } |
| +.msg .m-meta time { margin-inline-start: auto; } |
| +.msg[data-own] .m-meta { justify-content: flex-end; } |
| +.msg p { margin: 0; } |
| +.msg[data-own] .bubble { padding: var(--rst-sp-2) var(--rst-sp-3); border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); background: var(--rst-accent-soft); } |
| +.sysnote { color: var(--rst-text-muted); font-size: var(--rst-fs-xs); } |
| +.composer { display: grid; gap: var(--rst-sp-2); padding: var(--rst-sp-3); border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); background: var(--rst-surface); } |
| +.composer .ta { color: var(--rst-text-faint); font-size: var(--rst-fs-sm); min-block-size: 1.5rem; } |
| +.composer .tools { display: flex; align-items: center; gap: var(--rst-sp-2); font-size: var(--rst-fs-sm); color: var(--rst-text-muted); } |
| +.composer .tools .link { margin-inline-start: .2rem; } |
| +.composer .tools .btn { margin-inline-start: auto; min-block-size: 1.75rem; padding: .15rem .7rem; } |
| +/* Details: the brief, findings, step summaries and the branch, folded. */ |
| +.details { margin-block-start: var(--rst-sp-5); border-block-start: 1px solid var(--rst-line); padding-block-start: var(--rst-sp-4); } |
| +.details > summary { list-style: none; display: inline-flex; align-items: center; gap: .4em; cursor: pointer; color: var(--rst-text); } |
| +.details > summary::-webkit-details-marker { display: none; } |
| +.details > summary .icon { inline-size: 1em; block-size: 1em; color: var(--rst-text-faint); transition: transform .25s var(--equipo-ease); } |
| +.details[open] > summary .icon { transform: rotate(180deg); } |
| +.details .d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--rst-sp-5); margin-block-start: var(--rst-sp-3); } |
| +.details h3 { font-size: var(--rst-fs-sm); font-weight: 600; margin: 0 0 var(--rst-sp-2); color: var(--rst-text-muted); } |
| +.md { font-size: var(--rst-fs-sm); color: var(--rst-text); max-inline-size: 64ch; } |
| +.md p { margin: 0 0 var(--rst-sp-2); } |
| +.md ul { margin: 0 0 var(--rst-sp-2); padding-inline-start: 1.2rem; } |
| +.md > :last-child { margin-block-end: 0; } |
| +.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem var(--rst-sp-3); font-size: var(--rst-fs-sm); margin: 0; } |
| +.kv dt { color: var(--rst-text-muted); } |
| +.kv dd { margin: 0; overflow-wrap: anywhere; } |
| +.kv dd a { color: var(--rst-text-muted); } |
| + |
| +/* ── Projects ────────────────────────────────────────────────────── */ |
| +.prow { grid-template-columns: auto minmax(0, 1fr) auto; } |
| +.prow .desc { color: var(--rst-text-muted); font-size: var(--rst-fs-sm); margin: 0; max-inline-size: 64ch; } |
| +.prow .facts { display: flex; flex-wrap: wrap; gap: .3rem var(--rst-sp-4); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); margin-block-start: .2rem; } |
| +.prow .facts span { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; } |
| +.prow .facts .icon { inline-size: 1em; block-size: 1em; color: var(--rst-text-faint); } |
| +.prow .facts [data-tone="positive"] .icon { color: var(--rst-tone-positive-fg); } |
| +.prow .facts [data-tone="warning"] .icon { color: var(--rst-tone-warning-fg); } |
| +.prow .side { gap: .5rem; } |
| +.spread { display: inline-flex; align-items: center; gap: var(--rst-sp-2); } |
| +.spread .bar { display: inline-flex; inline-size: 6rem; block-size: .4rem; border-radius: var(--rst-radius-pill); overflow: hidden; background: var(--rst-surface-2); } |
| +.spread .bar i { display: block; block-size: 100%; } |
| +.spread .bar i[data-k="needs"] { background: var(--rst-tone-warning-fg); } |
| +.spread .bar i[data-k="progress"] { background: var(--rst-accent); } |
| +.spread .bar i[data-k="ready"] { background: color-mix(in srgb, var(--rst-accent) 45%, var(--rst-surface)); } |
| +.spread .bar i[data-k="done"] { background: var(--rst-line-strong); opacity: .5; } |
| +.spread .n { font-variant-numeric: tabular-nums; } |
| +.legend { display: flex; flex-wrap: wrap; gap: .2rem var(--rst-sp-3); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); } |
| +.legend span { display: inline-flex; align-items: center; gap: .35em; } |
| +.legend i { inline-size: .5rem; block-size: .5rem; border-radius: 2px; } |
| +.p-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--rst-sp-4); row-gap: .25rem; align-items: start; margin-block-end: var(--rst-sp-5); } |
| +.p-head p { margin: 0; color: var(--rst-text-muted); max-inline-size: 64ch; } |
| +.p-head .facts { display: flex; flex-wrap: wrap; gap: .3rem var(--rst-sp-4); font-size: var(--rst-fs-sm); color: var(--rst-text-muted); margin-block-start: .3rem; } |
| +.p-head .facts span { display: inline-flex; align-items: center; gap: .4em; } |
| +.p-head .facts .icon { inline-size: 1em; block-size: 1em; color: var(--rst-text-faint); } |
| +.p-head .facts [data-tone="positive"] .icon { color: var(--rst-tone-positive-fg); } |
| +.p-head .facts [data-tone="warning"] .icon { color: var(--rst-tone-warning-fg); } |
| +.p-head .people { display: grid; justify-items: end; gap: .25rem; font-size: var(--rst-fs-xs); color: var(--rst-text-muted); } |
| +.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem); gap: var(--rst-sp-6); align-items: start; } |
| +.p-section { margin-block-end: var(--rst-sp-5); } |
| +.attach { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rst-line); border-radius: calc(2 * var(--rst-radius)); background: var(--rst-surface); overflow: hidden; } |
| +.attach li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--rst-sp-3); align-items: center; padding: var(--rst-sp-3) var(--rst-sp-4); font-size: var(--rst-fs-sm); } |
| +.attach li + li { border-block-start: 1px solid var(--rst-line); } |
| +.attach .icon { inline-size: 1.1em; block-size: 1.1em; color: var(--rst-text-faint); } |
| +.attach .name { font-weight: 500; } |
| +.attach .sub { color: var(--rst-text-muted); font-size: var(--rst-fs-xs); display: flex; flex-wrap: wrap; gap: 0 var(--rst-sp-3); } |
| +.attach .quiet a { opacity: 0; transition: opacity .15s; } |
| +.attach li:hover .quiet a, .attach li:focus-within .quiet a { opacity: 1; } |
| +@media (hover: none) { .attach .quiet a { opacity: 1; } } |
| +.activity { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rst-sp-2); font-size: var(--rst-fs-sm); } |
| +.activity li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: var(--rst-sp-3); color: var(--rst-text); } |
| +.activity time { color: var(--rst-text-faint); font-size: var(--rst-fs-xs); font-variant-numeric: tabular-nums; padding-block-start: .15rem; } |
| +.activity a { color: inherit; text-decoration: none; } |
| +.activity a:hover { text-decoration: underline; text-underline-offset: 2px; } |
| +.activity .quiet { display: block; } |
| +.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rst-sp-3); } |
| +.note { padding: var(--rst-sp-3) var(--rst-sp-4); border: 1px solid var(--rst-line); border-radius: var(--rst-radius); background: color-mix(in oklab, var(--rst-surface), var(--rst-accent-soft) 16%); box-shadow: var(--rst-shadow-lift); font-size: var(--rst-fs-sm); } |
| +.note p { margin: 0; line-height: 1.5; } |
| +.note .cap { display: flex; justify-content: space-between; gap: var(--rst-sp-3); margin-block-start: var(--rst-sp-2); font-size: var(--rst-fs-xs); color: var(--rst-text-muted); } |
| + |
| +/* ── Phone-width stacking, by container, so both frames agree ────── */ |
| +@container app (max-width: 600px) { |
| + .main { padding: var(--rst-sp-4) var(--rst-sp-3) var(--rst-sp-6); } |
| + .row { grid-template-columns: auto minmax(0, 1fr); row-gap: .4rem; } |
| + .row .side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; justify-items: start; align-items: center; } |
| + .row .side .top { justify-self: end; grid-column: 2; grid-row: 1; } |
| + .row .side .badges { grid-column: 1; grid-row: 1; flex-wrap: wrap; } |
| + .row .title .row-link { white-space: normal; } |
| + .row .meta { row-gap: .4rem; } |
| + .track-full li > span { font-size: 0; } |
| + .track-full li[data-s="current"] > span { font-size: var(--rst-fs-xs); } |
| + .track-full li > small { display: none; } |
| + .t-cols, .p-cols { grid-template-columns: minmax(0, 1fr); gap: var(--rst-sp-5); } |
| + .thread { position: static; max-block-size: none; } |
| + .t-summary { font-size: var(--rst-fs-base); } |
| + .p-head { grid-template-columns: auto minmax(0, 1fr); } |
| + .p-head .people { grid-column: 1 / -1; justify-items: start; } |
| + .prow .side { grid-column: 1 / -1; justify-items: start; } |
| + .decision { grid-template-columns: minmax(0, 1fr); } |
| + .decision > .mono { display: none; } |
| + .decision > :not(.mono) { grid-column: 1; } |
| + .decision .d-actions .btn { flex: 1 1 auto; min-block-size: 2.75rem; } |
| + .composer-dock { position: sticky; bottom: 0; padding-block-start: var(--rst-sp-2); background: var(--rst-bg); } |
| +} |
| + |
| +/* ── Reduced motion: everything still, nothing missing ───────────── */ |
| +@media (prefers-reduced-motion: reduce) { :root:not([data-motion="full"]) { --still: 1; } } |
| +:root[data-motion="reduced"] { --still: 1; } |
| +:root[data-motion="reduced"] .mark svg, :root[data-motion="reduced"] .mark path, :root[data-motion="reduced"] .mark circle, :root[data-motion="reduced"] .mark i, :root[data-motion="reduced"] .spec-panel, :root[data-motion="reduced"] .tl > li, :root[data-motion="reduced"] .spec-panel ol li { animation: none !important; transition: none !important; } |
| +:root[data-motion="reduced"] .mark [data-sat="1"], :root[data-motion="reduced"] .mark [data-sat="2"] { opacity: .7; transform: scale(.8) rotate(45deg); } |
| +:root[data-motion="reduced"] .mark [data-mote] { display: none; } |
| +:root[data-motion="reduced"] .mark circle { transform: scale(.9); opacity: 1; } |
| +@media (prefers-reduced-motion: reduce) { |
| + :root:not([data-motion="full"]) .mark svg, :root:not([data-motion="full"]) .mark path, :root:not([data-motion="full"]) .mark circle, :root:not([data-motion="full"]) .mark i, :root:not([data-motion="full"]) .spec-panel, :root:not([data-motion="full"]) .tl > li { animation: none !important; transition: none !important; } |
| + :root:not([data-motion="full"]) .mark [data-sat="1"], :root:not([data-motion="full"]) .mark [data-sat="2"] { opacity: .7; transform: scale(.8) rotate(45deg); } |
| + :root:not([data-motion="full"]) .mark [data-mote] { display: none; } |
| +} |
| +</style> |
| +</head> |
| +<body> |
| +<main class="page"> |
| + <section class="intro"> |
| + <h1>The inner screens: tasks, a task, projects, a project, needs you</h1> |
| + <p>One mockup for the UX pass Paul asked for. The sidebar's specialists come alive with the Stardust mark and open to show what they are doing. Tasks are grouped by what matters, each with a stage track, badges and who filed it. The task page leads with a short summary and a timeline. Projects say what Equipo knows about them. Nothing asks the person to merge: the coordinator does, and asks once when checks could not run. Copy is placeholder.</p> |
| + </section> |
| + |
| + <div class="controls"> |
| + <div class="control">Screen <span class="seg" data-control="screen"><button data-value="tasks">Tasks</button><button data-value="task">A task</button><button data-value="projects">Projects</button><button data-value="project">A project</button><button data-value="needs">Needs you</button></span></div> |
| + <div class="control">Theme <span class="seg" data-control="theme"><button data-value="system">System</button><button data-value="light">Light</button><button data-value="dark">Dark</button></span></div> |
| + <div class="control">Motion <span class="seg" data-control="motion"><button data-value="full">Full</button><button data-value="reduced">Reduced</button></span></div> |
| + <div class="control">Live <span class="seg" data-control="live"><button data-value="off">Still</button><button data-value="on">Simulate</button></span> <button class="replay" type="button" data-replay>Play again</button></div> |
| + </div> |
| + |
| + <section class="band" style="margin-block-start: 0"> |
| + <h2>Desktop, 1280</h2> |
| + <p>Click any row to drill in, the chevron beside a working specialist to open it, and ⋯ on your own task for its quiet actions. Simulate runs a step through to Done so the mark, the dropdown and the timeline move.</p> |
| + <div class="stage-wrap"><div class="stage" id="desk"></div></div> |
| + </section> |
| + |
| + <section class="band"> |
| + <h2>Phone, 390</h2> |
| + <p>The same screen on a phone, and the team's index with the specialists, which is where the sidebar lives on a phone.</p> |
| + <div class="phones"> |
| + <div><div class="phone" id="phone"></div><p class="caption">The screen chosen above.</p></div> |
| + <div><div class="phone" id="phone-index"></div><p class="caption">The team index. Specialists open in place.</p></div> |
| + </div> |
| + </section> |
| +</main> |
| + |
| +<script> |
| +(function () { |
| +"use strict"; |
| + |
| +/* ── Icons, from internal/equipo/icons/icons.go (same strokes) ───── */ |
| +const I = { |
| + users: '<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><path d="M16 3.128a4 4 0 0 1 0 7.744"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><circle cx="9" cy="7" r="4"/>', |
| + "message-circle": '<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>', |
| + inbox: '<path d="M22 12h-6l-2 3h-4l-2-3H2"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/>', |
| + folder: '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>', |
| + code: '<path d="m16 18 6-6-6-6"/><path d="m8 6-6 6 6 6"/>', |
| + "check-circle": '<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>', |
| + check: '<path d="M20 6 9 17l-5-5"/>', |
| + x: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>', |
| + "chevron-down": '<path d="m6 9 6 6 6-6"/>', |
| + "alert-triangle": '<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/><path d="M12 9v4"/><path d="M12 17h.01"/>', |
| + "help-circle": '<circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><path d="M12 17h.01"/>', |
| + kebab: '<circle cx="12" cy="5" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="12" cy="19" r="1"/>', |
| + notebook: '<path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><rect width="16" height="20" x="4" y="2" rx="2"/><path d="M16 2v20"/>', |
| + shield: '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>', |
| + plug: '<path d="M12 22v-5"/><path d="M9 8V2"/><path d="M15 8V2"/><path d="M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z"/>', |
| + route: '<circle cx="6" cy="19" r="3"/><path d="M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"/><circle cx="18" cy="5" r="3"/>', |
| + git: '<circle cx="12" cy="18" r="3"/><circle cx="6" cy="6" r="3"/><circle cx="18" cy="6" r="3"/><path d="M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9"/><path d="M12 12v3"/>', |
| + phone: '<rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/>', |
| + clock: '<circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/>' |
| +}; |
| +function icon(name) { return `<svg class="icon" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" viewBox="0 0 24 24">${I[name]}</svg>`; } |
| +const STAR = '<svg viewBox="0 0 16 16" focusable="false"><path d="M8 0C8.6 4.6 11.4 7.4 16 8 11.4 8.6 8.6 11.4 8 16 7.4 11.4 4.6 8.6 0 8 4.6 7.4 7.4 4.6 8 0Z"/><circle cx="8" cy="8" r="1.7"/></svg><i data-sat="1"></i><i data-sat="2"></i><i data-sat="3"></i>'; |
| +function mark(size) { |
| + let motes = ""; |
| + if (size !== "s") for (let i = 0; i < 5; i++) { |
| + const dx = 1.7 + (i * 1.37) % 3, dy = (i * 0.53) % 1.4 - 0.7; |
| + motes += `<i data-mote="${i % 2 ? "light" : ""}" style="--dx:${dx.toFixed(2)}em;--dy:${dy.toFixed(2)}em;--d:${Math.round(i * 84)}ms"></i>`; |
| + } |
| + return `<span class="mark" aria-hidden="true"${size ? ` data-size="${size}"` : ""}>${STAR}${motes}</span>`; |
| +} |
| + |
| +/* ── Data: the team's people, projects and tasks ─────────────────── */ |
| +const MIN = 60000, H = 60 * MIN, D = 24 * H; |
| +const now = Date.now(); |
| +const PEOPLE = { |
| + paul: { name: "Paul", address: "paul@keymail.dev", h: 250, me: true }, |
| + nora: { name: "Nora", address: "nora@keymail.dev", h: 30 }, |
| + coord: { name: "Coordinator" } |
| +}; |
| +const PROJECTS = { |
| + woodstar: { id: "p-woodstar", title: "Woodstar", h: 190, letter: "W", |
| + desc: "An iOS app for reading and posting in a Twitter-style timeline without an account.", |
| + stack: ["iOS", "Swift", "SwiftUI"], platform: "iOS", |
| + checks: { here: false, reason: "needs macOS", note: "Checks need a Mac. No Mac runner is enrolled yet, so Review judges each commit and the coordinator asks before merging." }, |
| + repos: [ |
| + { name: "woodstar/woodstar", branch: "main", last: "Trim the compose sheet's bottom inset", at: now - 3 * H, sha: "9c1f3e2" }, |
| + { name: "woodstar/releases", branch: "main", last: "1.4 (112) to TestFlight", at: now - 2 * D, sha: "41ab77e" } |
| + ], |
| + people: ["paul", "nora"], activity: [], |
| + notes: [ |
| + { text: "Panes are the app's own container: each tab is a pane with its own navigation stack, so system gestures have to be forwarded by hand.", from: "From the README, 2 Nov" }, |
| + { text: "Paul tests on his phone, not the simulator. Anything about gestures needs a device.", from: "From your conversation, 3 Nov" } |
| + ] }, |
| + suite: { id: "p-suite", title: "Suite", h: 320, letter: "S", |
| + desc: "The Oficina shared suite contract: what every Oficina app agrees to about accounts, teams and sign-in.", |
| + stack: ["Markdown", "Go"], platform: "docs", |
| + checks: { here: true, gate: "make ci", note: "Checks run here with make ci, about 40 seconds." }, |
| + repos: [ |
| + { name: "oficina/suite", branch: "main", last: "Replace em dash in README", at: now - 55 * MIN, sha: "3d9e0f1" } |
| + ], |
| + people: ["paul", "nora"], activity: [], |
| + notes: [ |
| + { text: "The README is the contract. Wording changes go through it first, then the apps follow.", from: "From the README, 1 Nov" } |
| + ] }, |
| + equipo: { id: "p-equipo", title: "Equipo", h: 250, letter: "E", |
| + desc: "The team of agents you are talking to: a coordinator, Engineering and Review, in Go.", |
| + stack: ["Go", "HTML"], platform: "web", |
| + checks: { here: true, gate: ".amadan/ci", note: "Checks run here with .amadan/ci, about three minutes." }, |
| + repos: [ |
| + { name: "oficina/equipo", branch: "main", last: "SLICE4B-PROGRESS: the slice 4 merge and the index-pack fix", at: now - 6 * H, sha: "a0d418f" } |
| + ], |
| + people: ["paul"], activity: [], |
| + notes: [ |
| + { text: "Paul reads this in Paseo on his phone as often as on the desk. Phone first for anything in the sidebar.", from: "From your conversation, 6 Nov" } |
| + ] } |
| +}; |
| +const STAGES = ["noted", "investigated", "in_progress", "in_review", "ready_to_merge", "done"]; |
| +const STAGE_NAME = { noted: "Noted", investigated: "Looking into it", in_progress: "In progress", in_review: "In review", ready_to_merge: "Ready to merge", merging: "Merging…", done: "Done", cancelled: "Cancelled" }; |
| + |
| +// Tasks. Each carries its steps; the timeline is built from them. |
| +const TASKS = [ |
| + { id: "tk-7f3a", project: "woodstar", title: "Swipe back from the edge doesn't work", creator: "paul", stage: "ready_to_merge", changed: now - 2 * H, created: now - 3 * H + 21 * MIN, |
| + source: { time: "18:39", msg: "m-418", who: "paul" }, |
| + branch: "equipo/tk-7f3a-swipe-back-from-the-edge", base: "4e1f0a9", sha: "bc025ca", |
| + brief: "On the Account pane, swiping in from the left edge should go back to the previous screen, as it does everywhere else in the app. It does nothing.\n\n- Happens on a device, every time\n- Other panes go back fine\n- Started after the panes refactor", |
| + findings: [{ text: "The pane's gesture recogniser takes the edge swipe before the navigation stack sees it.", path: "ios/Woodstar/Navigation/AccountNavigationHost.swift", line: 15, at: now - 3 * H + 26 * MIN }], |
| + steps: [ |
| + { specialist: "engineering", attempt: 1, state: "done", started: now - 3 * H + 28 * MIN, finished: now - 2 * H - 20 * MIN, pushed: true, sha: "bc025ca", family: "Claude", |
| + summary: "Let the navigation stack's interactive pop gesture run alongside the pane's recogniser.\n\n- `AccountNavigationHost` now returns `true` from `gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)` for the edge swipe\n- Added a note on why the pane needs it\n\nNot run here: the Xcode tests need macOS." }, |
| + { specialist: "checks", state: "done", started: now - 2 * H - 20 * MIN, finished: now - 2 * H - 19 * MIN, checks: "cannot", reason: "needs macOS" }, |
| + { specialist: "review", state: "done", started: now - 2 * H - 19 * MIN, finished: now - 2 * H, verdict: "approve", label: "same family, same account", family: "Claude", findings: [] } |
| + ], |
| + needs: "merge_without_checks", |
| + thread: [ |
| + { who: "paul", own: true, text: "Did you try it on the Home pane too?", at: "19:48" }, |
| + { who: "engineering", text: "Not as a test, since I can't run the app here. Home uses the same host class, so the change applies to it as well. The fix is in the shared `PaneNavigationHost`, not Account alone.", at: "19:49" } |
| + ] }, |
| + { id: "tk-80b1", project: "woodstar", title: "Swipe from the edge to go back doesn't work", creator: "paul", stage: "in_progress", changed: now - 95 * MIN, created: now - 2 * H - 40 * MIN, |
| + source: { time: "19:20", msg: "m-431", who: "paul" }, |
| + branch: "equipo/tk-80b1-swipe-from-the-edge", base: "4e1f0a9", |
| + brief: "Swiping from the left edge to go back does nothing on the account screen.", |
| + findings: [], |
| + steps: [ { specialist: "engineering", attempt: 1, state: "failed", reason: "other", started: now - 2 * H - 30 * MIN, finished: now - 95 * MIN, family: "Claude" } ], |
| + duplicateOf: "tk-7f3a", needs: "stopped", |
| + thread: [] }, |
| + { id: "tk-91c4", project: "woodstar", title: "iOS edge swipe to go back doesn't work on panes", creator: "nora", stage: "ready_to_merge", changed: now - 50 * MIN, created: now - 2 * H - 10 * MIN, |
| + source: { time: "19:52", msg: "m-77", who: "nora" }, |
| + branch: "equipo/tk-91c4-ios-edge-swipe-panes", base: "4e1f0a9", sha: "e71d20b", |
| + brief: "Edge swipe to go back does nothing inside panes. Each pane has its own navigation stack.", |
| + findings: [{ text: "Same cause as tk-7f3a: the pane host swallows the gesture.", path: "ios/Woodstar/Navigation/PaneNavigationHost.swift", line: 41, at: now - 2 * H }], |
| + steps: [ |
| + { specialist: "engineering", attempt: 1, state: "done", started: now - 2 * H, finished: now - 70 * MIN, pushed: true, sha: "e71d20b", family: "GPT", summary: "Forward the edge swipe from `PaneNavigationHost` to the stack." }, |
| + { specialist: "checks", state: "done", started: now - 70 * MIN, finished: now - 69 * MIN, checks: "cannot", reason: "needs macOS" }, |
| + { specialist: "review", state: "done", started: now - 69 * MIN, finished: now - 50 * MIN, verdict: "approve", label: "another model family", family: "Claude", findings: [] } |
| + ], |
| + duplicateOf: "tk-7f3a", needs: "merge_without_checks", |
| + thread: [] }, |
| + { id: "tk-a2d9", project: "suite", title: "Replace em dash in README", creator: "paul", stage: "ready_to_merge", changed: now - 12 * MIN, created: now - 58 * MIN, |
| + source: { time: "20:41", msg: "m-452", who: "paul" }, |
| + branch: "equipo/tk-a2d9-replace-em-dash-readme", base: "7a0c1d3", sha: "3d9e0f1", |
| + brief: "The README has one em dash left, in the sign-in section. Replace it with a full stop and a new sentence.", |
| + findings: [], |
| + steps: [ |
| + { specialist: "engineering", attempt: 1, state: "done", started: now - 55 * MIN, finished: now - 40 * MIN, pushed: true, sha: "3d9e0f1", family: "Claude", summary: "Split the sentence at the em dash in `README.md`." }, |
| + { specialist: "checks", state: "done", started: now - 40 * MIN, finished: now - 39 * MIN, checks: "passed", gate: "make ci" }, |
| + { specialist: "review", state: "done", started: now - 39 * MIN, finished: now - 12 * MIN, verdict: "approve", label: "another model family", family: "GPT", findings: [] } |
| + ], |
| + thread: [] }, |
| + { id: "tk-b3e0", project: "suite", title: "Fix line break in README", creator: "nora", stage: "ready_to_merge", changed: now - 25 * MIN, created: now - 70 * MIN, |
| + source: { time: "20:29", msg: "m-81", who: "nora" }, |
| + branch: "equipo/tk-b3e0-fix-line-break-readme", base: "7a0c1d3", sha: "f04c8a7", |
| + brief: "A hard line break in the teams section splits a sentence in two on the rendered page.", |
| + findings: [], |
| + steps: [ |
| + { specialist: "engineering", attempt: 1, state: "done", started: now - 68 * MIN, finished: now - 50 * MIN, pushed: true, sha: "f04c8a7", family: "Claude", summary: "Joined the two lines in `README.md`." }, |
| + { specialist: "checks", state: "done", started: now - 50 * MIN, finished: now - 49 * MIN, checks: "passed", gate: "make ci" }, |
| + { specialist: "review", state: "done", started: now - 49 * MIN, finished: now - 25 * MIN, verdict: "approve", label: "another model family", family: "GPT", findings: [] } |
| + ], |
| + thread: [] }, |
| + { id: "tk-c4f1", project: "equipo", title: "Task list loses its scroll position after a refresh", creator: "paul", stage: "in_progress", changed: now - 4 * MIN - 12000, created: now - 9 * MIN, |
| + source: { time: "21:14", msg: "m-466", who: "paul" }, |
| + branch: "equipo/tk-c4f1-task-list-scroll-position", base: "a0d418f", |
| + brief: "When the task list refreshes itself, the page jumps back to the top. I lose my place every minute or so.", |
| + findings: [{ text: "The live swap replaces the whole list; the browser has nothing to anchor to.", path: "internal/equipo/static/live.js", line: 88, at: now - 6 * MIN }], |
| + steps: [ { specialist: "engineering", attempt: 1, state: "running", started: now - 4 * MIN - 12000, family: "Claude", |
| + activity: ["Reading internal/equipo/static/live.js", "Searching for the swap", "Reading nav-stream.js", "Editing live.js", "Running go test ./internal/equipo", "Committing", "Pushing to Amadan"], activityAt: 4 } ], |
| + thread: [] }, |
| + { id: "tk-d5a2", project: "woodstar", title: "Timeline jumps when images load", creator: "paul", stage: "investigated", changed: now - 7 * MIN, created: now - 16 * MIN, |
| + source: { time: "21:07", msg: "m-461", who: "paul" }, |
| + brief: "Scrolling the timeline, the list shifts under my thumb as images arrive.", |
| + findings: [{ text: "Image cells size themselves after the image arrives; the list needs the size up front.", path: "ios/Woodstar/Timeline/ImageCell.swift", line: 22, at: now - 8 * MIN }], |
| + steps: [], |
| + question: { text: "Does it jump on the first load only, or every time you scroll back up?", options: ["First load only", "Every time"] }, needs: "question", |
| + queued: true, |
| + thread: [] }, |
| + { id: "tk-e6b3", project: "suite", title: "Rename the headings in CONTRIBUTING", creator: "paul", stage: "done", changed: now - 2 * D, created: now - 2 * D - 2 * H, |
| + source: { time: "16:02", msg: "m-390", who: "paul" }, |
| + branch: "equipo/tk-e6b3-rename-contributing-headings", base: "5b2e9c0", sha: "9e1c2d4", merged: "c7d0a52", |
| + brief: "The CONTRIBUTING headings still say 'Pull requests'. On Amadan they are branches.", |
| + findings: [], |
| + steps: [ |
| + { specialist: "engineering", attempt: 1, state: "done", started: now - 2 * D - 2 * H, finished: now - 2 * D - 80 * MIN, pushed: true, sha: "9e1c2d4", family: "Claude", summary: "Renamed four headings and the one sentence under each." }, |
| + { specialist: "checks", state: "done", started: now - 2 * D - 80 * MIN, finished: now - 2 * D - 79 * MIN, checks: "passed", gate: "make ci" }, |
| + { specialist: "review", state: "done", started: now - 2 * D - 79 * MIN, finished: now - 2 * D - 30 * MIN, verdict: "approve", label: "another model family", family: "GPT", findings: [] } |
| + ], |
| + mergedAt: now - 2 * D, |
| + thread: [] } |
| +]; |
| +const byId = id => TASKS.find(t => t.id === id); |
| +const SPECIALIST_NAME = { engineering: "Engineering", review: "Review", checks: "Checks", coordinator: "Coordinator" }; |
| + |
| +/* ── Small helpers ───────────────────────────────────────────────── */ |
| +function esc(s) { return String(s).replace(/[&<>"]/g, c => ({ "&": "&", "<": "<", ">": ">", '"': """ }[c])); } |
| +function md(s) { |
| + const blocks = String(s).split(/\n\s*\n/); |
| + return blocks.map(b => { |
| + const lines = b.split("\n"); |
| + if (lines.every(l => /^- /.test(l))) return "<ul>" + lines.map(l => "<li>" + inline(l.slice(2)) + "</li>").join("") + "</ul>"; |
| + return "<p>" + inline(lines.join(" ")) + "</p>"; |
| + }).join(""); |
| + function inline(t) { return esc(t).replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>").replace(/`([^`]+)`/g, "<code>$1</code>"); } |
| +} |
| +function ago(t) { |
| + const d = now - t; |
| + if (d < MIN) return "just now"; |
| + if (d < H) return Math.round(d / MIN) + " min ago"; |
| + if (d < D) return Math.round(d / H) + " h ago"; |
| + const n = Math.round(d / D); return n === 1 ? "yesterday" : n + " days ago"; |
| +} |
| +function clock(t) { const x = new Date(t); return String(x.getHours()).padStart(2, "0") + ":" + String(x.getMinutes()).padStart(2, "0"); } |
| +function dur(ms) { const s = Math.max(0, Math.round(ms / 1000)); const m = Math.floor(s / 60); return m >= 60 ? Math.floor(m / 60) + " h " + (m % 60) + " min" : m + ":" + String(s % 60).padStart(2, "0"); } |
| +function span(ms) { const s = Math.max(0, Math.round(ms / 1000)); if (s < 60) return s + " s"; const m = Math.round(s / 60); return m < 60 ? m + " min" : Math.floor(m / 60) + " h " + (m % 60) + " min"; } |
| +function elapsed(started) { return `<span class="elapsed" data-since="${started}">${dur(Date.now() - started)}</span>`; } |
| +function av(key, size) { const p = PEOPLE[key]; if (!p || !p.h) return ""; return `<span class="av" style="--h:${p.h}" title="${esc(p.address)}"${size ? ` data-size="${size}"` : ""} aria-hidden="true">${p.name[0]}</span>`; } |
| +function who(key) { const p = PEOPLE[key]; return `<span class="who">${av(key)}<a href="#people" title="${esc(p.address)}">${p.me ? "You" : p.name}</a></span>`; } |
| +function mono(pk, size) { const p = PROJECTS[pk]; return `<span class="mono" style="--h:${p.h}"${size ? ` data-size="${size}"` : ""} title="${esc(p.title)}" aria-hidden="true">${p.letter}</span>`; } |
| +function pluralTasks(n) { return n === 1 ? "1 task" : n + " tasks"; } |
| + |
| +/* ── Derived state: what is running, what needs whom ─────────────── */ |
| +function lastStep(t) { return t.steps[t.steps.length - 1]; } |
| +function running(t) { const s = lastStep(t); return s && (s.state === "running" || s.state === "queued") ? s : null; } |
| +function stopped(t) { const s = lastStep(t); return s && s.state === "failed" && t.stage !== "done" && t.stage !== "cancelled" ? s : null; } |
| +function checksOf(t) { |
| + const r = running(t); if (r && r.specialist === "checks") return { state: "running" }; |
| + for (let i = t.steps.length - 1; i >= 0; i--) { const s = t.steps[i]; if (s.specialist === "checks" && s.state === "done") return { state: s.checks, reason: s.reason, gate: s.gate }; } |
| + return null; |
| +} |
| +function reviewOf(t) { |
| + const r = running(t); if (r && r.specialist === "review") return { state: "running" }; |
| + for (let i = t.steps.length - 1; i >= 0; i--) { const s = t.steps[i]; if (s.specialist === "review" && s.state === "done") return { state: s.verdict, label: s.label, family: s.family }; } |
| + return null; |
| +} |
| +function bucket(t) { |
| + if (t.stage === "done" || t.stage === "cancelled") return "done"; |
| + if (t.needs && PEOPLE[t.creator].me) return "needs"; |
| + if (t.stage === "ready_to_merge" || t.stage === "merging") return "ready"; |
| + return "progress"; |
| +} |
| +const BUCKETS = [["needs", "Needs you", "Your decisions, in one tap."], ["progress", "In progress"], ["ready", "Ready to merge", "The coordinator merges these. It asks only when checks could not run."], ["done", "Done"]]; |
| +function stageTone(t) { if (stopped(t)) return "negative"; if (t.stage === "done") return "positive"; if (t.needs && PEOPLE[t.creator].me) return "attention"; return ""; } |
| +function stageLabel(t) { |
| + const s = stopped(t); if (s) return "Stopped: " + ({ other: "something went wrong", runner_restarted: "the runner restarted", step_timeout: "it ran out of time" }[s.reason] || "something went wrong"); |
| + return STAGE_NAME[t.stage]; |
| +} |
| +function trackIndex(t) { return t.stage === "merging" ? 4 : t.stage === "cancelled" ? 0 : STAGES.indexOf(t.stage); } |
| +function liveMark(t) { return !!running(t) || t.stage === "merging" || (t.stage === "investigated" && t.coordLooking); } |
| + |
| +/* ── Pieces: track, badges, chips ────────────────────────────────── */ |
| +function track(t) { |
| + const cur = trackIndex(t), live = liveMark(t), tone = stageTone(t); |
| + return `<ol class="track" aria-label="${esc(stageLabel(t))}">` + STAGES.map((s, i) => { |
| + const st = i < cur ? "done" : i === cur ? "current" : "todo"; |
| + return `<li data-s="${st}"${i === cur && tone ? ` data-tone="${tone}"` : ""}${i === cur && live ? " data-live" : ""} title="${STAGE_NAME[s]}">${i === cur && live ? mark("s") : ""}</li>`; |
| + }).join("") + "</ol>"; |
| +} |
| +function trackFull(t) { |
| + const cur = trackIndex(t), live = liveMark(t), tone = stageTone(t); |
| + const when = { noted: t.created, investigated: t.findings[0] && t.findings[0].at, in_progress: t.steps[0] && t.steps[0].started, in_review: t.steps.find(s => s.specialist === "review") && t.steps.find(s => s.specialist === "review").started, ready_to_merge: t.stage === "ready_to_merge" || t.stage === "merging" || t.stage === "done" ? (t.steps.find(s => s.specialist === "review") || {}).finished : null, done: t.mergedAt }; |
| + return `<ol class="track-full">` + STAGES.map((s, i) => { |
| + const st = i < cur ? "done" : i === cur ? "current" : "todo"; |
| + const label = i === cur && t.stage === "merging" ? "Merging…" : i === cur && stopped(t) ? "Stopped" : STAGE_NAME[s]; |
| + return `<li data-s="${st}"${i === cur && tone ? ` data-tone="${tone}"` : ""}${i === cur && live ? " data-live" : ""}><span class="dot">${i === cur && live ? mark("s") : ""}</span><span>${label}</span>${st !== "todo" && when[s] ? `<small>${clock(when[s])}</small>` : ""}</li>`; |
| + }).join("") + "</ol>"; |
| +} |
| +function checksBadge(c, pk) { |
| + if (!c) return ""; |
| + if (c.state === "running") return `<span class="badge" data-tone="live" title="Running checks">${mark("s")} Checks</span>`; |
| + if (c.state === "passed") return `<span class="badge" data-tone="positive" title="Checks passed (${esc(c.gate || "")})">${icon("check")} Checks passed</span>`; |
| + if (c.state === "failed") return `<span class="badge" data-tone="negative" title="Checks failed (${esc(c.gate || "")})">${icon("x")} Checks failed</span>`; |
| + return `<span class="badge" title="Checks can't run here (${esc(c.reason)}). ${esc(PROJECTS[pk].checks.note)}">${icon("help-circle")} Checks: ${esc(c.reason)}</span>`; |
| +} |
| +function reviewBadge(r) { |
| + if (!r) return ""; |
| + if (r.state === "running") return `<span class="badge" data-tone="live" title="Reviewing">${mark("s")} Review</span>`; |
| + const fam = r.label === "same family, same account" ? "Reviewed by the same model family and the same account as Engineering" : r.label === "same family" ? "Reviewed by the same model family as Engineering" : "Reviewed by another model family (" + esc(r.family) + ")"; |
| + if (r.state === "approve") return `<span class="badge" data-tone="positive" title="${fam}">${icon("check-circle")} Approved</span>`; |
| + return `<span class="badge" data-tone="warning" title="${fam}">${icon("alert-triangle")} Changes requested</span>`; |
| +} |
| +function workingChip(t) { |
| + const r = running(t); |
| + if (r) { |
| + const name = SPECIALIST_NAME[r.specialist]; |
| + return `<span class="chip">${mark("s")} ${name} working ${elapsed(r.started)}</span>`; |
| + } |
| + if (t.stage === "merging") return `<span class="chip">${mark("s")} Coordinator merging ${elapsed(t.mergingSince)}</span>`; |
| + if (t.coordLooking) return `<span class="chip">${mark("s")} Coordinator looking ${elapsed(t.coordLooking)}</span>`; |
| + if (t.queued) return `<span class="chip">${icon("clock")} Waiting for Engineering</span>`; |
| + if (t.needs && !PEOPLE[t.creator].me) return `<span class="chip">Waiting for ${PEOPLE[t.creator].name}</span>`; |
| + if (t.needs && PEOPLE[t.creator].me) return `<span class="chip">Waiting for you</span>`; |
| + return ""; |
| +} |
| +function sourceLine(t) { |
| + const mine = PEOPLE[t.source.who].me; |
| + return `<a href="#conversation/${t.source.msg}" title="Opens the conversation at that message">${mine ? "From your conversation" : "From " + PEOPLE[t.source.who].name + "'s conversation"}, ${clock(t.created)}</a>`; |
| +} |
| + |
| +/* ── A task row ──────────────────────────────────────────────────── */ |
| +function taskRow(t, opts) { |
| + opts = opts || {}; |
| + const mine = PEOPLE[t.creator].me, dup = t.duplicateOf && byId(t.duplicateOf); |
| + let menu = ""; |
| + if (mine && t.stage !== "done" && t.stage !== "cancelled") { |
| + const items = []; |
| + if (dup) items.push(`<button type="button">Merge into "${esc(dup.title)}"<small>Keeps that task; this one is closed as a duplicate</small></button>`); |
| + if (stopped(t)) items.push(`<button type="button">Retry</button>`); |
| + items.push(`<button type="button" class="danger">Cancel</button>`); |
| + menu = `<details class="menu"><summary aria-label="More">${icon("kebab")}</summary><div>${items.join("")}</div></details>`; |
| + } |
| + return `<li class="row" data-task="${t.id}" data-stage="${t.stage}"> |
| + ${mono(t.project)} |
| + <div class="body"> |
| + <div class="title"><a class="row-link" href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a></div> |
| + <div class="meta"> |
| + <span class="track-line">${track(t)}<span class="stage-name"${stageTone(t) ? ` data-tone="${stageTone(t)}"` : ""}>${esc(stageLabel(t))}</span></span> |
| + ${workingChip(t)} |
| + <span class="who">${av(t.creator)}<a href="#people">${mine ? "You" : PEOPLE[t.creator].name}</a></span> |
| + <span>${sourceLine(t)}</span> |
| + </div> |
| + ${dup ? `<div class="dup">${icon("alert-triangle")}<span>Possible duplicate of <a href="#task/${dup.id}" data-go="task" data-id="${dup.id}">${esc(dup.title)}</a>${mine ? "" : ` (${PEOPLE[t.creator].name} decides)`}</span></div>` : ""} |
| + </div> |
| + <div class="side"> |
| + <span class="top">${menu}<span class="ago" title="${new Date(t.changed).toLocaleString()}">${ago(t.changed)}</span></span> |
| + <span class="badges">${t.stage === "done" ? `<span class="badge" data-tone="quiet" title="Merged into main at ${t.merged}">Merged</span>` : checksBadge(checksOf(t), t.project) + reviewBadge(reviewOf(t))}</span> |
| + </div> |
| + </li>`; |
| +} |
| + |
| +/* ── Screens ─────────────────────────────────────────────────────── */ |
| +const state = { screen: "tasks", taskId: "tk-7f3a", projectId: "woodstar", project: "", person: "", openSpec: {} }; |
| + |
| +function filtered() { return TASKS.filter(t => (!state.project || t.project === state.project) && (!state.person || t.creator === state.person)); } |
| +function screenTasks(opts) { |
| + opts = opts || {}; |
| + const list = opts.tasks || filtered(); |
| + const groups = BUCKETS.map(([k, name, hint]) => { |
| + const ts = list.filter(t => bucket(t) === k).sort((a, b) => b.changed - a.changed); |
| + if (!ts.length) return ""; |
| + return `<section class="group"><h2>${name} <span class="n">${ts.length}</span>${hint && !opts.compact ? `<span class="hint">${hint}</span>` : ""}</h2><ol class="rows">${ts.map(taskRow).join("")}</ol></section>`; |
| + }).join(""); |
| + const projOpts = [["", "All projects"]].concat(Object.keys(PROJECTS).map(k => [k, PROJECTS[k].title])); |
| + const peopleOpts = [["", "Anyone"], ["paul", "You"], ["nora", "Nora"]]; |
| + const filters = opts.compact ? "" : `<div class="filters"> |
| + <details class="filter"${state.project ? " data-active" : ""}><summary>${state.project ? PROJECTS[state.project].title : "All projects"} ${icon("chevron-down")}</summary><div>${projOpts.map(([v, l]) => `<button type="button" data-filter="project" data-value="${v}" aria-pressed="${state.project === v}">${v ? mono(v, "s") : ""}${l}</button>`).join("")}</div></details> |
| + <details class="filter"${state.person ? " data-active" : ""}><summary>${state.person ? (PEOPLE[state.person].me ? "Filed by you" : "Filed by " + PEOPLE[state.person].name) : "Anyone"} ${icon("chevron-down")}</summary><div>${peopleOpts.map(([v, l]) => `<button type="button" data-filter="person" data-value="${v}" aria-pressed="${state.person === v}">${v ? av(v) : ""}${l}</button>`).join("")}</div></details> |
| + </div>`; |
| + return `<div class="inner"><div class="page-head"><h1>Tasks</h1><p>${pluralTasks(list.length)} across ${Object.keys(PROJECTS).length} projects</p></div>${filters}${groups || `<p class="empty">No tasks here. Tell the coordinator what needs doing.</p>`}</div>`; |
| +} |
| + |
| +function decisionCard(t, where) { |
| + const mine = PEOPLE[t.creator].me; if (!t.needs || !mine) return ""; |
| + const title = where === "needs" ? `<div class="d-title"><a href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a><span class="quiet">${PROJECTS[t.project].title} · ${sourceLine(t)}</span></div>` : ""; |
| + if (t.needs === "merge_without_checks") { |
| + const r = reviewOf(t); |
| + return `<div class="decision">${where === "needs" ? mono(t.project) : ""}${title} |
| + <p class="d-why">Review <strong>approved</strong> the fix at <code>${t.sha}</code>. Checks could not run here: <strong>${esc(checksOf(t).reason)}</strong>, and no Mac runner is enrolled yet.</p> |
| + <p class="d-ask">Merge without checks?</p> |
| + <div class="d-actions"><button class="btn" data-primary type="button">Merge</button><button class="btn" type="button">Wait for checks</button><span class="quiet">Waiting leaves it ready until a Mac runner joins.</span></div></div>`; |
| + } |
| + if (t.needs === "stopped") { |
| + const dup = t.duplicateOf && byId(t.duplicateOf); |
| + return `<div class="decision" data-tone="attention">${where === "needs" ? mono(t.project) : ""}${title} |
| + <p class="d-why">Engineering <strong>stopped</strong>: something went wrong on attempt 1.${dup ? ` This looks like a duplicate of <a href="#task/${dup.id}" data-go="task" data-id="${dup.id}">${esc(dup.title)}</a>, which is ${dup.stage === "ready_to_merge" ? "ready to merge" : STAGE_NAME[dup.stage].toLowerCase()}.` : ""}</p> |
| + <p class="d-ask">${dup ? "Fold it into that task?" : "Try again?"}</p> |
| + <div class="d-actions">${dup ? `<button class="btn" data-primary type="button">Merge into that task</button><button class="link" type="button">Retry</button>` : `<button class="btn" data-primary type="button">Retry</button>`}<button class="link" type="button">Cancel this task</button></div></div>`; |
| + } |
| + if (t.needs === "question") { |
| + return `<div class="decision">${where === "needs" ? mono(t.project) : ""}${title} |
| + <p class="d-why">The coordinator found that <strong>image cells size themselves after the image arrives</strong> and wants to know how far the fix should reach.</p> |
| + <p class="d-ask">${esc(t.question.text)}</p> |
| + <div class="d-actions">${t.question.options.map(o => `<button class="btn" type="button">${esc(o)}</button>`).join("")}<button class="link" type="button">Reply in the conversation</button></div></div>`; |
| + } |
| + return ""; |
| +} |
| + |
| +function timeline(t) { |
| + const items = []; |
| + const mine = PEOPLE[t.creator].me; |
| + items.push({ kind: "noted", at: t.created, what: `<b>Noted</b> by ${mine ? "you" : PEOPLE[t.creator].name}`, detail: `${sourceLine(t)}` }); |
| + if (t.findings.length) items.push({ kind: "finding", at: t.findings[0].at, what: `<b>Coordinator</b> looked into it`, detail: t.findings.map(f => `${esc(f.text)}<br><small class="quiet"><code>${esc(f.path)}:${f.line}</code></small>`).join("<br>") }); |
| + if (t.coordLooking) items.push({ kind: "live", live: true, at: t.coordLooking, what: `<span class="live-line">Coordinator looking into it ${elapsed(t.coordLooking)}</span>` }); |
| + if (t.question && t.needs === "question") items.push({ kind: "decision", at: t.changed, what: `<b>Coordinator</b> asked you`, detail: `${esc(t.question.text)}`, card: decisionCard(t, "task") }); |
| + if (t.queued) items.push({ kind: "queued", at: t.changed, what: `<b>Waiting for Engineering</b>`, detail: `Behind ${esc(byId("tk-c4f1").title)}.` }); |
| + t.steps.forEach(s => { |
| + const name = SPECIALIST_NAME[s.specialist]; |
| + if (s.state === "running") { |
| + const lines = s.activity ? s.activity.slice(0, s.activityAt + 1) : []; |
| + const cur = lines[lines.length - 1] || "Working"; |
| + items.push({ kind: "step", live: true, at: s.started, what: `<span class="live-line">${name}${s.attempt ? ", attempt " + s.attempt : ""} ${elapsed(s.started)}</span>`, detail: `${esc(cur)}` }); |
| + return; |
| + } |
| + if (s.state === "failed") { items.push({ kind: "stopped", at: s.finished, what: `<b>${name}, attempt ${s.attempt}</b> stopped`, detail: stageLabel(t).replace("Stopped: ", "") + "." }); return; } |
| + if (s.specialist === "engineering") { |
| + items.push({ kind: "step", at: s.finished, what: `<b>Engineering, attempt ${s.attempt}</b>${s.round ? ` (fix round ${s.round})` : ""} <time>${span(s.finished - s.started)}</time>`, detail: `<div class="md">${md(s.summary || "")}</div>`, |
| + receipt: s.pushed ? `<span>Pushed <code>${s.sha}</code></span><a href="#amadan" target="_blank" rel="noopener">Open on Amadan</a>` : "" }); |
| + } else if (s.specialist === "checks") { |
| + const c = { state: s.checks, reason: s.reason, gate: s.gate }; |
| + items.push({ kind: "step", at: s.finished, what: `<b>Checks</b> on <code>${t.sha}</code> ${checksBadge(c, t.project)}`, detail: s.checks === "cannot" ? esc(PROJECTS[t.project].checks.note) : s.checks === "passed" ? `${esc(s.gate)} passed in ${span(s.finished - s.started)}.` : "" }); |
| + } else if (s.specialist === "review") { |
| + items.push({ kind: "step", at: s.finished, what: `<b>Review</b> on <code>${t.sha}</code> ${reviewBadge({ state: s.verdict, label: s.label, family: s.family })} <time>${span(s.finished - s.started)}</time>`, detail: s.findings && s.findings.length ? `<ul class="findings">${s.findings.map(f => `<li>${esc(f.text)}<small><code>${esc(f.path)}:${f.line}</code></small></li>`).join("")}</ul>` : (s.verdict === "approve" ? "No findings." : "") }); |
| + } |
| + }); |
| + if (t.stage === "ready_to_merge" || t.stage === "merging" || t.stage === "done") { |
| + const rv = t.steps.filter(s => s.specialist === "review" && s.state === "done").pop(); |
| + if (rv) items.push({ kind: "ready", at: rv.finished, what: `<b>Ready to merge</b>`, detail: t.needs === "merge_without_checks" ? "" : "The coordinator merges it next." , card: t.stage === "ready_to_merge" ? decisionCard(t, "task") : "" }); |
| + } |
| + if (t.stage === "merging") items.push({ kind: "merging", live: true, at: t.mergingSince, what: `<span class="live-line">Coordinator merging into main ${elapsed(t.mergingSince)}</span>` }); |
| + if (t.stage === "done") items.push({ kind: "merged", at: t.mergedAt, what: `<b>Merged</b> into main`, detail: `<code>${t.merged}</code>. The coordinator told ${mine ? "you" : PEOPLE[t.creator].name} in the conversation.`, receipt: `<a href="#amadan" target="_blank" rel="noopener">Open on Amadan</a>` }); |
| + return `<ol class="tl">${items.map(it => `<li data-kind="${it.kind}"${it.live ? " data-live" : ""}${it.fresh ? " data-new" : ""}><span class="node">${it.live ? mark() : ""}</span><div><div class="what">${it.what}${it.at && !it.live ? ` <time title="${new Date(it.at).toLocaleString()}">${clock(it.at)}</time>` : ""}</div>${it.detail ? `<div class="detail">${it.detail}</div>` : ""}${it.receipt ? `<div class="receipt">${it.receipt}</div>` : ""}${it.card || ""}</div></li>`).join("")}</ol>`; |
| +} |
| + |
| +function summaryOf(t) { |
| + const r = running(t), mine = PEOPLE[t.creator].me; |
| + if (t.stage === "done") return `Merged into main yesterday. Engineering made the change in one attempt, checks passed and Review approved it.`; |
| + if (stopped(t)) return `Engineering stopped on attempt 1: something went wrong.${t.duplicateOf ? " This looks like the same bug as another task that is already fixed." : ""} ${mine ? "Your call below." : PEOPLE[t.creator].name + " decides what happens next."}`; |
| + if (t.stage === "merging") return `${mark()}Review approved it and checks passed. The coordinator is merging it into main now.`; |
| + if (t.needs === "merge_without_checks") return `Engineering fixed it in one attempt and Review approved the fix. Checks need a Mac, which the team does not have yet, so ${mine ? "it waits on you" : "it waits on " + PEOPLE[t.creator].name}.`; |
| + if (t.stage === "ready_to_merge") return `Fixed, checked and approved. The coordinator merges it next.`; |
| + if (r) { const cur = r.activity ? r.activity[r.activityAt] : "working"; return `${mark()}${SPECIALIST_NAME[r.specialist]} is on it now: ${esc(cur.toLowerCase())}. ${r.attempt ? "Attempt " + r.attempt + ", " : ""}${span(Date.now() - r.started)} so far.`; } |
| + if (t.needs === "question") return `The coordinator has a question before handing it to Engineering.`; |
| + if (t.queued) return `Looked into. Engineering picks it up when it finishes its current task.`; |
| + return STAGE_NAME[t.stage] + "."; |
| +} |
| + |
| +function screenTask(id) { |
| + const t = byId(id), p = PROJECTS[t.project], mine = PEOPLE[t.creator].me; |
| + const steps = t.steps.filter(s => s.specialist === "engineering" && s.summary); |
| + const thread = `<section class="thread"><h2>Questions and notes</h2> |
| + <ol class="feed">${t.thread.length ? t.thread.map(m => m.own ? `<li class="msg" data-own><div class="m-meta"><time>${m.at}</time></div><div class="bubble"><p>${esc(m.text)}</p></div></li>` : `<li class="msg"><div class="m-meta"><span>${icon("message-circle")}${SPECIALIST_NAME[m.who]}</span><time>${m.at}</time></div><div class="bubble"><p>${md(m.text).replace(/^<p>|<\/p>$/g, "")}</p></div></li>`).join("") : `<li class="sysnote">No questions or notes yet.</li>`}</ol> |
| + <div class="composer-dock"><div class="composer"><div class="ta">Ask Engineering about this work</div><div class="tools"><span>Asking Engineering</span><button class="link" type="button">change</button><button class="btn" type="button">Send</button></div></div></div> |
| + </section>`; |
| + return `<div class="inner"> |
| + <header class="t-head">${mono(t.project, "l")} |
| + <div> |
| + <div class="crumbs"><a href="#tasks" data-go="tasks">Tasks</a><span>›</span><a href="#project/${t.project}" data-go="project" data-id="${t.project}">${p.title}</a></div> |
| + <h1>${esc(t.title)}</h1> |
| + <div class="filed">${who(t.creator)}<span>${sourceLine(t)}</span><span class="ago">Changed ${ago(t.changed)}</span></div> |
| + </div> |
| + ${trackFull(t)} |
| + </header> |
| + <p class="t-summary">${summaryOf(t)}</p> |
| + ${t.stage !== "done" && !stopped(t) && !t.question && t.needs && mine ? "" : ""} |
| + <div class="t-cols"> |
| + <section><h2>What happened</h2>${timeline(t)} |
| + <details class="details"><summary>${icon("chevron-down")} Details</summary> |
| + <div class="d-grid"> |
| + <div><h3>The brief</h3><div class="md">${md(t.brief)}</div></div> |
| + ${t.findings.length ? `<div><h3>Findings</h3><ul class="findings md">${t.findings.map(f => `<li>${esc(f.text)}<br><small class="quiet"><code>${esc(f.path)}:${f.line}</code></small></li>`).join("")}</ul></div>` : ""} |
| + ${steps.map(s => `<div><h3>Engineering, attempt ${s.attempt}</h3><div class="md">${md(s.summary)}</div></div>`).join("")} |
| + <div><h3>Where it lives</h3><dl class="kv">${t.branch ? `<dt>Branch</dt><dd><code>${esc(t.branch)}</code></dd>` : ""}${t.sha ? `<dt>Commit</dt><dd><code>${t.sha}</code> on <code>${t.base}</code></dd>` : ""}${t.merged ? `<dt>Merged as</dt><dd><code>${t.merged}</code></dd>` : ""}<dt>Task</dt><dd><code>${t.id}</code></dd>${t.branch ? `<dt></dt><dd><a href="#amadan" target="_blank" rel="noopener">Open on Amadan</a></dd>` : ""}</dl></div> |
| + </div> |
| + </details> |
| + </section> |
| + ${thread} |
| + </div> |
| + </div>`; |
| +} |
| + |
| +function spread(pk) { |
| + const ts = TASKS.filter(t => t.project === pk), n = { needs: 0, progress: 0, ready: 0, done: 0 }; |
| + ts.forEach(t => { const b = t.needs && !(t.stage === "done") ? "needs" : bucket(t); n[b]++; }); |
| + const total = ts.length || 1; |
| + const bar = ["needs", "progress", "ready", "done"].map(k => n[k] ? `<i data-k="${k}" style="inline-size:${(n[k] / total * 100).toFixed(1)}%" title="${n[k]} ${k === "needs" ? "waiting on someone" : k === "progress" ? "in progress" : k === "ready" ? "ready to merge" : "done"}"></i>` : "").join(""); |
| + const words = []; |
| + if (n.needs) words.push(`${n.needs} waiting on someone`); if (n.progress) words.push(`${n.progress} in progress`); if (n.ready) words.push(`${n.ready} ready`); if (n.done) words.push(`${n.done} done`); |
| + return { html: `<span class="spread"><span class="bar">${bar}</span><span class="n">${pluralTasks(ts.length)}</span></span>`, words: words.join(", "), n }; |
| +} |
| +function projectFacts(p, long) { |
| + return `<span>${icon(p.platform === "iOS" ? "phone" : "code")} ${p.stack.join(", ")}</span> |
| + <span>${icon("git")} ${p.repos.length === 1 ? "1 repository" : p.repos.length + " repositories"}</span> |
| + <span data-tone="${p.checks.here ? "positive" : "warning"}">${icon(p.checks.here ? "check-circle" : "help-circle")} ${p.checks.here ? "Checks run here" + (long ? " (" + p.checks.gate + ")" : "") : "Checks need a Mac"}</span>`; |
| +} |
| +function screenProjects() { |
| + const rows = Object.keys(PROJECTS).map(pk => { |
| + const p = PROJECTS[pk], s = spread(pk), last = TASKS.filter(t => t.project === pk).sort((a, b) => b.changed - a.changed)[0]; |
| + return `<li class="row prow" data-project="${pk}"> |
| + ${mono(pk, "l")} |
| + <div class="body"> |
| + <div class="title"><a class="row-link" href="#project/${pk}" data-go="project" data-id="${pk}">${p.title}</a></div> |
| + <p class="desc">${esc(p.desc)}</p> |
| + <div class="facts">${projectFacts(p)}<span class="avs" title="${p.people.map(k => PEOPLE[k].address).join(", ")}">${p.people.map(k => av(k)).join("")}</span></div> |
| + </div> |
| + <div class="side"><span class="ago">${last ? ago(last.changed) : ""}</span>${s.html}<span class="quiet">${s.words}</span></div> |
| + </li>`; |
| + }).join(""); |
| + return `<div class="inner"><div class="page-head"><h1>Projects</h1><p>What the coordinator knows about each one. It adds projects as you mention them.</p></div> |
| + <section class="group"><ol class="rows">${rows}</ol></section> |
| + <div class="legend"><span><i style="background: var(--rst-tone-warning-fg)"></i>waiting on someone</span><span><i style="background: var(--rst-accent)"></i>in progress</span><span><i style="background: color-mix(in srgb, var(--rst-accent) 45%, var(--rst-surface))"></i>ready to merge</span><span><i style="background: var(--rst-line-strong); opacity: .5"></i>done</span></div> |
| + </div>`; |
| +} |
| +function projectActivity(pk) { |
| + const ev = []; |
| + TASKS.filter(t => t.project === pk).forEach(t => { |
| + ev.push({ at: t.created, text: `${PEOPLE[t.creator].me ? "You" : PEOPLE[t.creator].name} noted <a href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a>` }); |
| + t.steps.forEach(s => { |
| + if (s.finished && s.specialist === "engineering" && s.state === "done") ev.push({ at: s.finished, text: `Engineering pushed a fix for <a href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a>` }); |
| + if (s.finished && s.specialist === "review") ev.push({ at: s.finished, text: `Review ${s.verdict === "approve" ? "approved" : "asked for changes to"} <a href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a>` }); |
| + if (s.state === "failed") ev.push({ at: s.finished, text: `Engineering stopped on <a href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a>` }); |
| + }); |
| + if (t.stage === "done") ev.push({ at: t.mergedAt, text: `Merged <a href="#task/${t.id}" data-go="task" data-id="${t.id}">${esc(t.title)}</a> into main` }); |
| + }); |
| + return ev.sort((a, b) => b.at - a.at).slice(0, 7); |
| +} |
| +function screenProject(pk) { |
| + const p = PROJECTS[pk], s = spread(pk), ts = TASKS.filter(t => t.project === pk); |
| + return `<div class="inner"> |
| + <div class="crumbs quiet" style="margin-block-end: var(--rst-sp-2)"><a href="#projects" data-go="projects">Projects</a></div> |
| + <header class="p-head">${mono(pk, "l")} |
| + <div><h1>${p.title}</h1><p>${esc(p.desc)}</p><div class="facts">${projectFacts(p, true)}</div></div> |
| + <div class="people"><span class="avs">${p.people.map(k => av(k, "l")).join("")}</span><span>${p.people.map(k => PEOPLE[k].me ? "You" : PEOPLE[k].name).join(" and ")}</span></div> |
| + </header> |
| + <div class="p-cols"> |
| + <div> |
| + <section class="p-section"><h2>Tasks <span class="quiet">${s.words}</span></h2>${screenTasks({ tasks: ts, compact: true }).replace(/^<div class="inner">.*?<\/div>/, "").replace(/<\/div>$/, "")}</section> |
| + </div> |
| + <aside> |
| + <section class="p-section"><h2>Attachments</h2><ul class="attach">${p.repos.map(r => `<li>${icon("git")}<div><div class="name">${esc(r.name)}</div><div class="sub"><span>${r.branch}</span><span>${esc(r.last)}</span><span>${ago(r.at)}</span></div></div><span class="quiet"><a href="#amadan" target="_blank" rel="noopener">Open on Amadan</a></span></li>`).join("")}</ul> |
| + <p class="quiet" style="margin: var(--rst-sp-2) 0 0">${esc(p.checks.note)}</p></section> |
| + <section class="p-section"><h2>Recently</h2><ol class="activity">${projectActivity(pk).map(e => `<li><time>${ago(e.at).replace(" ago", "")}</time><span>${e.text}</span></li>`).join("")}</ol></section> |
| + <section class="p-section"><h2>Coordinator's notes</h2><ul class="notes">${p.notes.map(n => `<li class="note"><p>${esc(n.text)}</p><div class="cap"><span>${esc(n.from)}</span></div></li>`).join("")}</ul></section> |
| + </aside> |
| + </div> |
| + </div>`; |
| +} |
| +function screenNeeds() { |
| + const mine = TASKS.filter(t => t.needs && PEOPLE[t.creator].me && t.stage !== "done").sort((a, b) => b.changed - a.changed); |
| + const others = TASKS.filter(t => t.needs && !PEOPLE[t.creator].me && t.stage !== "done"); |
| + return `<div class="inner"><div class="page-head"><h1>Needs you</h1><p>${mine.length ? `${mine.length === 1 ? "One decision" : mine.length + " decisions"}, each in one tap.` : "Nothing needs you right now."}</p></div> |
| + ${mine.map(t => decisionCard(t, "needs")).join("")} |
| + ${others.length ? `<section class="group" style="margin-block-start: var(--rst-sp-6)"><h2>Waiting on others <span class="n">${others.length}</span><span class="hint">Only the person who filed a task decides for it.</span></h2><ol class="rows">${others.map(taskRow).join("")}</ol></section>` : ""} |
| + </div>`; |
| +} |
| + |
| +/* ── The rail and the phone index ────────────────────────────────── */ |
| +function specialists() { |
| + const out = []; |
| + ["engineering", "review", "checks"].forEach(k => { |
| + const t = TASKS.find(x => { const r = running(x); return r && r.specialist === k; }); |
| + const queue = k === "engineering" ? TASKS.filter(x => x.queued) : []; |
| + out.push({ key: k, icon: k === "engineering" ? "code" : k === "review" ? "check-circle" : "shield", name: SPECIALIST_NAME[k], task: t, step: t && running(t), queue }); |
| + }); |
| + return out; |
| +} |
| +function specRow(s, where) { |
| + const working = !!s.task; |
| + let panel = ""; |
| + if (working) { |
| + const st = s.step, lines = st.activity ? st.activity.slice(Math.max(0, st.activityAt - 2), st.activityAt + 1) : ["Working"]; |
| + panel = `<div class="spec-panel"> |
| + <a class="task" href="#task/${s.task.id}" data-go="task" data-id="${s.task.id}">${esc(s.task.title)}</a> |
| + <div class="where"><span>${PROJECTS[s.task.project].title}</span><span>${STAGE_NAME[s.task.stage]}</span>${st.attempt ? `<span>attempt ${st.attempt}</span>` : ""}<span>${elapsed(st.started)}</span></div> |
| + <ol>${lines.map((l, i) => `<li${i === lines.length - 1 && st.fresh ? " data-new" : ""}><span>${esc(l)}</span><span>${i === lines.length - 1 ? "now" : ""}</span></li>`).join("")}</ol> |
| + ${s.queue.length ? `<div class="queue">${s.queue.length === 1 ? "1 waiting" : s.queue.length + " waiting"}: <a href="#task/${s.queue[0].id}" data-go="task" data-id="${s.queue[0].id}">${esc(s.queue[0].title)}</a></div>` : ""} |
| + </div>`; |
| + } |
| + const open = working && state.openSpec[where + s.key]; |
| + const stateHtml = working ? `<span class="state">${mark("s")} ${elapsed(s.step.started)}</span>` : `<span class="state">idle</span>`; |
| + const chev = where === "index" ? (working ? icon("chevron-down").replace('class="icon"', 'class="icon chev"') : icon("chevron-down").replace('class="icon"', 'class="icon chev-r"')) : icon("chevron-down").replace('class="icon"', 'class="icon chev"'); |
| + return `<details class="spec" data-spec="${where + s.key}" data-state="${working ? "working" : "idle"}"${open ? " open" : ""}><summary${working ? "" : ' tabindex="-1"'}>${icon(s.icon)}<span>${s.name}</span>${stateHtml}${chev}</summary>${panel}</details>`; |
| +} |
| +function navItems() { |
| + const open = TASKS.filter(t => t.stage !== "done" && t.stage !== "cancelled").length; |
| + const needs = TASKS.filter(t => t.needs && PEOPLE[t.creator].me && t.stage !== "done").length; |
| + return [ |
| + { key: "conversation", icon: "message-circle", name: "Conversation", count: "" }, |
| + { key: "projects", icon: "folder", name: "Projects", count: Object.keys(PROJECTS).length }, |
| + { key: "tasks", icon: "check-circle", name: "Tasks", count: open }, |
| + { key: "needs", icon: "inbox", name: "Needs you", count: needs, attention: needs > 0 } |
| + ]; |
| +} |
| +function rail() { |
| + const cur = state.screen === "task" ? "tasks" : state.screen === "project" ? "projects" : state.screen; |
| + return `<aside class="rail"><a class="brand" href="#">${icon("users")}Oficina</a><nav> |
| + ${navItems().map(n => `<a href="#${n.key}" data-go="${n.key}"${cur === n.key ? ' aria-current="page"' : ""}>${icon(n.icon)}<span>${n.name}</span>${n.count ? `<span class="count"${n.attention ? " data-attention" : ""}>${n.count}</span>` : ""}</a>`).join("")} |
| + <p class="nav-group">Specialists</p> |
| + ${specialists().map(s => specRow(s, "rail")).join("")} |
| + <p class="nav-group">Team</p> |
| + <a href="#people">${icon("users")}<span>People</span><span class="count">2</span></a> |
| + <a href="#notebook">${icon("notebook")}<span>Notebook</span></a> |
| + </nav></aside>`; |
| +} |
| +function phoneIndex() { |
| + return `<div class="main"><div class="page-head" style="margin-block-end: var(--rst-sp-3)"><h1>Oficina</h1></div> |
| + <ul class="index">${navItems().map(n => `<li><a href="#${n.key}" data-go="${n.key}">${icon(n.icon)}<span>${n.name}</span><span class="count"${n.attention ? " data-attention" : ""}>${n.count || ""}</span>${icon("chevron-down").replace('class="icon"', 'class="icon chev-r"')}</a></li>`).join("")}</ul> |
| + <p class="nav-group">Specialists</p> |
| + <ul class="index">${specialists().map(s => `<li>${specRow(s, "index")}</li>`).join("")}</ul> |
| + <p class="nav-group">Team</p> |
| + <ul class="index"><li><a href="#people">${icon("users")}<span>People</span><span class="count">2</span>${icon("chevron-down").replace('class="icon"', 'class="icon chev-r"')}</a></li><li><a href="#notebook">${icon("notebook")}<span>Notebook</span><span class="count"></span>${icon("chevron-down").replace('class="icon"', 'class="icon chev-r"')}</a></li></ul> |
| + </div>`; |
| +} |
| + |
| +/* ── Render ──────────────────────────────────────────────────────── */ |
| +function screen() { |
| + switch (state.screen) { |
| + case "task": return screenTask(state.taskId); |
| + case "projects": return screenProjects(); |
| + case "project": return screenProject(state.projectId); |
| + case "needs": return screenNeeds(); |
| + default: return screenTasks(); |
| + } |
| +} |
| +function phoneBack() { |
| + switch (state.screen) { |
| + case "task": return ["Tasks", "tasks"]; |
| + case "project": return ["Projects", "projects"]; |
| + default: return ["Oficina", "index"]; |
| + } |
| +} |
| +function phoneTitle() { |
| + switch (state.screen) { |
| + case "task": return byId(state.taskId).title; |
| + case "project": return PROJECTS[state.projectId].title; |
| + case "projects": return "Projects"; |
| + case "needs": return "Needs you"; |
| + default: return "Tasks"; |
| + } |
| +} |
| +function render() { |
| + const desk = document.getElementById("desk"), phone = document.getElementById("phone"), index = document.getElementById("phone-index"); |
| + const scrollMain = desk.querySelector(".main") ? desk.querySelector(".main").scrollTop : 0; |
| + const scrollPhone = phone.querySelector(".app") ? phone.querySelector(".app").scrollTop : 0; |
| + desk.innerHTML = `<div class="shell">${rail()}<div class="main">${screen()}</div></div>`; |
| + const [backLabel, backTo] = phoneBack(); |
| + phone.innerHTML = `<div class="status"><span>21:18</span><span>5G</span></div><header><a class="back" href="#${backTo}" data-go="${backTo}">${icon("chevron-down")}${backLabel}</a><span class="ptitle">${esc(phoneTitle())}</span></header><div class="app" style="container: app / inline-size"><div class="main">${screen()}</div></div>`; |
| + index.innerHTML = `<div class="status"><span>21:18</span><span>5G</span></div><header><span class="ptitle">Oficina</span></header><div class="app" style="container: app / inline-size">${phoneIndex()}</div>`; |
| + desk.querySelector(".main").scrollTop = scrollMain; |
| + phone.querySelector(".app").scrollTop = scrollPhone; |
| + document.querySelectorAll('[data-control="screen"] button').forEach(b => b.setAttribute("aria-pressed", String(b.dataset.value === state.screen))); |
| + tickElapsed(); |
| +} |
| +function go(where, id) { |
| + if (where === "index") { state.screen = "tasks"; } |
| + else if (["tasks", "projects", "needs", "task", "project", "conversation"].includes(where)) { |
| + if (where === "conversation") return; |
| + state.screen = where; |
| + if (where === "task" && id) state.taskId = id; |
| + if (where === "project" && id) state.projectId = id; |
| + } |
| + render(); |
| +} |
| +document.addEventListener("click", e => { |
| + const a = e.target.closest("[data-go]"); |
| + if (a) { e.preventDefault(); go(a.dataset.go, a.dataset.id); return; } |
| + const f = e.target.closest("[data-filter]"); |
| + if (f) { state[f.dataset.filter] = f.dataset.value; render(); return; } |
| + const c = e.target.closest("[data-control] button"); |
| + if (c) { setControl(c.closest("[data-control]").dataset.control, c.dataset.value); return; } |
| + if (e.target.closest("[data-replay]")) { resetSim(); if (document.documentElement.dataset.live === "on") startSim(); return; } |
| + if (e.target.closest(".btn, .link, .menu button")) { e.preventDefault(); const b = e.target.closest(".btn, .link, .menu button"); flash(b); return; } |
| + if (e.target.closest("a[href^='#']") && !e.target.closest("[data-go]")) e.preventDefault(); |
| +}); |
| +document.addEventListener("toggle", e => { |
| + const d = e.target; |
| + if (d.classList && d.classList.contains("spec")) state.openSpec[d.dataset.spec] = d.open; |
| +}, true); |
| +function flash(b) { b.style.transition = "opacity .15s"; b.style.opacity = ".5"; setTimeout(() => { b.style.opacity = ""; }, 200); } |
| + |
| +/* ── Controls ────────────────────────────────────────────────────── */ |
| +function setControl(name, value) { |
| + const root = document.documentElement; |
| + if (name === "screen") { go(value); } |
| + else if (name === "theme") root.dataset.theme = value; |
| + else if (name === "motion") root.dataset.motion = value; |
| + else if (name === "live") { root.dataset.live = value; if (value === "on") startSim(); else stopSim(); } |
| + document.querySelectorAll(`[data-control="${name}"] button`).forEach(b => b.setAttribute("aria-pressed", String(b.dataset.value === value))); |
| + const q = new URLSearchParams(location.search); q.set(name, value); history.replaceState(null, "", "?" + q); |
| +} |
| + |
| +/* ── Clocks and flourishes ───────────────────────────────────────── */ |
| +function tickElapsed() { |
| + document.querySelectorAll("[data-since]").forEach(el => { el.textContent = dur(Date.now() - Number(el.dataset.since)); }); |
| +} |
| +setInterval(tickElapsed, 1000); |
| +setInterval(() => { |
| + if (document.documentElement.dataset.motion === "reduced") return; |
| + document.querySelectorAll('.mark:not([data-size="s"])').forEach(m => { m.removeAttribute("data-flourish"); void m.offsetWidth; m.setAttribute("data-flourish", ""); }); |
| +}, 3600); |
| + |
| +/* ── The simulation: one task runs through to Done ───────────────── */ |
| +let simTimer = null, simStep = 0, simStart = 0; |
| +const SIM = [ |
| + [3, () => { const s = running(byId("tk-c4f1")); s.activityAt = 5; s.fresh = true; }], |
| + [7, () => { const s = running(byId("tk-c4f1")); s.activityAt = 6; }], |
| + [8, () => { const t = byId("tk-a2d9"); t.stage = "merging"; t.mergingSince = Date.now(); t.changed = Date.now(); }], |
| + [12, () => { const t = byId("tk-c4f1"); const s = running(t); s.state = "done"; s.finished = Date.now(); s.pushed = true; s.sha = "a7c41e2"; t.sha = "a7c41e2"; s.summary = "Keep the scroll position across a live swap.\n\n- `live.js` now records the first visible row before the swap and restores it after\n- The list is swapped in place rather than replaced"; t.steps.push({ specialist: "checks", state: "running", started: Date.now(), activity: ["Running .amadan/ci"], activityAt: 0 }); t.stage = "in_review"; t.changed = Date.now(); }], |
| + [16, () => { const t = byId("tk-a2d9"); t.stage = "done"; t.merged = "c0ffee1"; t.mergedAt = Date.now(); t.changed = Date.now(); }], |
| + [20, () => { const t = byId("tk-c4f1"); const s = running(t); s.state = "done"; s.finished = Date.now(); s.checks = "passed"; s.gate = ".amadan/ci"; t.steps.push({ specialist: "review", state: "running", started: Date.now(), family: "GPT", activity: ["Reading the diff", "Comparing with main", "Writing the verdict"], activityAt: 0 }); t.changed = Date.now(); }], |
| + [25, () => { const s = running(byId("tk-c4f1")); s.activityAt = 1; s.fresh = true; }], |
| + [30, () => { const s = running(byId("tk-c4f1")); s.activityAt = 2; }], |
| + [34, () => { const t = byId("tk-c4f1"); const s = running(t); s.state = "done"; s.finished = Date.now(); s.verdict = "approve"; s.label = "another model family"; s.findings = []; t.stage = "ready_to_merge"; t.changed = Date.now(); }], |
| + [37, () => { const t = byId("tk-c4f1"); t.stage = "merging"; t.mergingSince = Date.now(); t.changed = Date.now(); }], |
| + [38, () => { const q = byId("tk-d5a2"); q.queued = false; q.question = null; q.needs = null; q.stage = "in_progress"; q.branch = "equipo/tk-d5a2-timeline-jumps"; q.base = "9c1f3e2"; q.steps.push({ specialist: "engineering", attempt: 1, state: "running", started: Date.now(), family: "Claude", activity: ["Reading ImageCell.swift", "Reading the timeline layout", "Editing ImageCell.swift"], activityAt: 0 }); q.changed = Date.now(); }], |
| + [43, () => { const t = byId("tk-c4f1"); t.stage = "done"; t.merged = "3d9e0f1"; t.mergedAt = Date.now(); t.changed = Date.now(); }], |
| + [46, () => { const s = running(byId("tk-d5a2")); s.activityAt = 1; s.fresh = true; }], |
| + [52, () => { const s = running(byId("tk-d5a2")); s.activityAt = 2; }] |
| +]; |
| +const SNAPSHOT = JSON.stringify(TASKS); |
| +function resetSim() { |
| + stopSim(); |
| + const fresh = JSON.parse(SNAPSHOT); |
| + TASKS.length = 0; fresh.forEach(t => TASKS.push(t)); |
| + const s = running(byId("tk-c4f1")); s.started = Date.now() - 4 * MIN - 12000; |
| + simStep = 0; render(); |
| +} |
| +function startSim() { |
| + stopSim(); simStart = Date.now(); |
| + simTimer = setInterval(() => { |
| + const t = (Date.now() - simStart) / 1000; |
| + let changed = false; |
| + while (simStep < SIM.length && SIM[simStep][0] <= t) { SIM[simStep][1](); simStep++; changed = true; } |
| + if (changed) render(); |
| + if (simStep >= SIM.length) stopSim(); |
| + }, 250); |
| +} |
| +function stopSim() { if (simTimer) clearInterval(simTimer); simTimer = null; } |
| + |
| +/* ── Fit the desktop frame to the viewport ───────────────────────── */ |
| +function fit() { |
| + const wrap = document.querySelector(".stage-wrap"), stage = document.getElementById("desk"); |
| + const w = wrap.clientWidth, k = Math.min(1, w / 1280); |
| + stage.style.transform = `scale(${k})`; wrap.style.blockSize = (860 * k) + "px"; |
| +} |
| +addEventListener("resize", fit); |
| + |
| +/* ── Start ───────────────────────────────────────────────────────── */ |
| +const q = new URLSearchParams(location.search); |
| +["theme", "motion", "live"].forEach(k => { if (q.get(k)) document.documentElement.dataset[k] = q.get(k); }); |
| +if (q.get("screen")) state.screen = q.get("screen"); |
| +if (q.get("task")) state.taskId = q.get("task"); |
| +state.openSpec["railengineering"] = true; |
| +state.openSpec["indexengineering"] = true; |
| +["theme", "motion", "live", "screen"].forEach(k => { const v = k === "screen" ? state.screen : document.documentElement.dataset[k]; document.querySelectorAll(`[data-control="${k}"] button`).forEach(b => b.setAttribute("aria-pressed", String(b.dataset.value === v))); }); |
| +render(); fit(); |
| +if (document.documentElement.dataset.live === "on") startSim(); |
| +})(); |
| +</script> |
| +</body> |
| +</html> |