oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# UX1 progress: the inner screens
2
3Branch `thin-v1-ux1` from `thin-v1-slice4c` (2d1edaf), with Fable's
4mockup `design-tasks-rich` (ca7e006) and the slice 4c fixes (aaf04aa)
5merged. Mockup: `docs/mockups/tasks.html`, notes `tasks-notes.md`.
6Paul, 2026-11-08: "This needs to be filled out", "much, much more
7rich", "much more visual", "All these inner screens now need a good UX
8pass". Conventions as in `SLICE1-PROGRESS.md` to `SLICE4C-PROGRESS.md`.
9
10## Done
11
121. Data (API v1, fixtures shared with the native apps), built on
13 `thin-v1-ux1-data` (8b204e3, e96c4c5, 29d56ca, d9080b3), merged at
14 fd6f382:
15 - `Step.activity`: the specialist's last five lines `{kind, subject,
16 at}` (read, search, edit, run, other); the runner reads them from
17 the CLI's tool uses in Engineering and Review steps and sends a
18 non-durable `step_activity` frame; the instance takes it only from
19 the step person's primary runner for the current attempt, keeps the
20 newest five on the step (no revision bump) and sends every member an
21 `activity` event with resource `step`. A Retry starts empty.
22 - `Task.creator_name`, `source_message_id` and `source_at` (the
23 person's message the task was noted from), `duplicate_of` (`{id,
24 title, stage}`: set when the coordinator records a task with
25 `separate: true` beside a similar open one), `coordinator` (`{kind:
26 looking | merging, since}`).
27 - `POST /api/v1/tasks/{id}/duplicate {of}` (`MarkDuplicate`): the
28 creator folds a task into another open task of the project; it is
29 cancelled like Cancel and its brief goes on the other's thread.
30 - `Project.description` (README summary), `stack` (display names),
31 `checks` (`{here, gate, reason}`), `people`; repository attachments
32 gained `default_branch`, `head_sha`, `head_subject`, `head_at`. The
33 runner's index reports the head, the gate (Amadan's order) and
34 `needs_macos`.
35 - Notebook entries may name the project they are about (`repo`); the
36 project page shows the viewer's coordinator's notes for it.
37 - Migration `0048_thin_ux1.sql` (`chat_steps.activity`,
38 `chat_tasks.duplicate_of`); 4c's `0047` merged beside it.
39 - `Store.OpenMergeCards` for the pages' one-tap merge decisions.
40
412. Screens (3d5a5ca), from the mockup, light and dark, 1280 and 390,
42 reduced motion:
43 - Sidebar: Conversation, Projects, Tasks, Needs you (count in the
44 attention tone). Engineering, Review and Checks: idle, or the
45 Stardust mark (small, no motes) with a clock and a chevron dropdown:
46 task, project, stage, attempt, the last three activity lines with
47 "now", "+N more" and the queue. Open dropdowns stay open across live
48 swaps and pages (sessionStorage). On the phone index the specialists
49 are a bordered list that opens in place.
50 - Tasks: grouped Needs you (the viewer's own decisions), In progress,
51 Ready to merge, Done; quiet project and person filters (links, no
52 form). Rows are links as a whole (title link `::after`), with a
53 monogram, the six-stop track (current stop toned, live mark while
54 someone works), stage, who is at work with a clock ("Waiting for
55 Nora" on a teammate's task), who filed it, "From your conversation,
56 11:35" linked to the message, age, checks and review badges with
57 tooltips, "Possible duplicate of ...", and ⋯ (fold, Retry, Cancel)
58 for the creator only, on hover or focus, always on touch.
59 - Task page: monogram, crumbs, who and where from, the full track with
60 times, a one-line summary, "What happened" (noted, findings, each
61 step with its markdown summary and duration, live step with its
62 activity lines, checks and review on the SHA with badges, ready,
63 merging, merged "Merged into main" with the SHA) beside Questions
64 and notes; the merge decision sits on the Ready line; Details folded
65 (brief and summaries as markdown, findings, logs, branch, commit,
66 "Open on Amadan", the only place it appears).
67 - Projects: monogram, description, stack, repositories, checks fact,
68 people, last change, task spread with a legend. A project: facts and
69 people, its tasks grouped, Attachments with each repository's last
70 commit, Recently, Coordinator's notes.
71 - Needs you: one card per decision with one-tap answers (Merge / Wait
72 for checks; Merge / Not now for 4c's adoption card; Retry; Fold into
73 that task; Tell the coordinator; Cancel), then Waiting on others.
74 Answers return to the page they came from.
75 - Merging: Equipo merges; "Merging into the default branch" live,
76 then Done with "Merged into main at <sha>". No "Open on Amadan to
77 merge" anywhere.
78 - Live: `nav-stream.js` (one EventSource) refreshes the sidebar on
79 task, step, step activity, project and card events and tells
80 `work-stream.js`, which re-renders the page and swaps its regions,
81 keeping folds open and never swapping an open menu. Clocks tick from
82 `started_at` client-side ("4:12", "1:04:12"), also under reduced
83 motion; large marks flourish now and then, never under it.
84
853. Tests:
86 - `TestPagesInnerScreens` (CI): the gallery (`gallery_test.go`: two
87 owners, three projects, seven tasks in every state, activity lines,
88 notes, all through the real instance and fake runners) on every
89 screen: group order, row pieces, creator-only actions, filters,
90 decisions, timeline, Details-only Open on Amadan, project facts.
91 - Browser (`-tags browser`, not in CI): `TestBrowserInnerScreens` at
92 1280 (mouse) and 390 (touch): a click anywhere on a row opens it;
93 Tab reaches the row, the ring shows, Enter opens it; ⋯ hidden until
94 hover or focus on a desktop, shown on touch; the sidebar dropdown
95 takes a new activity line live and stays open; Needs you's Merge in
96 reach (44 px on touch); no sideways scrolling. Then at 1280, dark,
97 reduced motion: the mark is still, the clock counts, the timeline
98 takes an activity line, the track moves to In review on the push,
99 and on Tasks the row's checks badge goes live then passed, no
100 reload. `TestBrowserInnerGallery` saves every screen.
101 - Updated: `TestPagesTasksAndProjects` (timeline, rows, project
102 facts), `TestChatNavigationStatus` (dropdown, order),
103 `TestRailRoutes` (order).
104 - Mutations (each observed failing a test): the creator gate on the
105 row menu (after adding the fold assertion: it survived first, since
106 Retry and Cancel are already creator-only upstream), the dropdown
107 restore after a swap, the page region swap.
108
1094. Screenshots: `docs/mockups/built/2026-11-08/ux1-before-*.png` (the
110 same gallery on the screens before this round, light) and
111 `ux1-after-*.png` (light and dark, 1280 and 390, plus
112 `ux1-after-index-open-390.png`).
113
1145. Housekeeping: the merged mockup trips the runner dead-reference scan
115 (its word for DOM elements matches the old JavaScript runtime's
116 name): exact allowances added for `docs/mockups/tasks.html`. Size records raised with reasons:
117 `internal/equipo` 13500, `internal/equipo/chat` 6800,
118 `internal/runner/thin` 8800.
119
1206. Merged `thin-v1-slice4c` final fixes at cfae4f8 (c5cadfb): the
121 quiet Merge on a task left at Ready to merge (after Not now or Wait)
122 joins the creator's ⋯ on rows and the task page; asking follows
123 `ask_open` (14 days after a merge). Conflicts: `Task` keeps 4c's
124 `ask_open` and `merge_offered`, then the UX1 fields; fixtures merged
125 key by key; both API routes (`duplicate`, `merge`).
126
1277. Round 2 (coordinator, after staging c14b833):
128 - Summaries: a stopped step reads "Checks stopped: the runner
129 restarted. It waits on you." (not "Stopped:" twice); a merge without
130 checks says so and never claims checks passed
131 (`TestTaskSummaryWords`).
132 - "From your conversation, 18:39" opens
133 `/conversation?message=<id>#m-<id>`: the page loads older history
134 back to that message when it is past the newest 50 (up to 1,000),
135 and `chat-anchor.js` scrolls it to the middle and highlights it for
136 four seconds (static under reduced motion).
137 - Relative times tick on their own once a minute in the server's words
138 (`data-at`, `data-format`, the words on the sidebar as
139 `data-ago-formats`, no "%" in any page), and after each live swap.
140 - Browser: the source link lands on the highlighted message in view;
141 a relative time re-renders on the tick.
142
1438. iOS keyboard and the phone's chat bar (Paul, staging f2eac36, Safari
144 on an iPhone): tapping the composer threw it to the top of the screen
145 behind the status bar, with blank space down to the keyboard; the bar's
146 back link sat above the title and the notebook button.
147 - Cause: Safari keeps the layout viewport and pans the visual viewport
148 down by the keyboard's height; the chat was sized to the visual
149 viewport's height but left at the page's top, so only its bottom
150 (the composer) showed, at the top. With `overflow: hidden` on both
151 html and body the body is its own scroll container, so a box moved
152 down inside it is scrolled back by focus.
153 - Fix: the chat's shell is a fixed box at the visual viewport's top and
154 height (`chat-stream.js` sets `--equipo-vvtop` and `--equipo-vvh` on
155 its resize and scroll; the window and body are kept unscrolled; the
156 feed, never the window, keeps the newest message above the
157 composer). The viewport meta asks for
158 `interactive-widget=resizes-content`, so browsers that honour it
159 shrink the layout instead. With the keyboard open the composer drops
160 the safe-area padding; closed, it keeps it.
161 - Bar: one 3.5rem bar below `env(safe-area-inset-top)`; the back link
162 overlay, the title (left-aligned, as on the other pages) and the
163 button centre in it. The task and project pages' back bar respects
164 the safe area too.
165 - Tests: `TestWebKitKeyboard` (`-tags webkit`, Playwright's WebKit at
166 390x844 through its script under `internal/thintest/testdata`, the visual viewport driven
167 as Safari moves it: 450 high, panned 394): the composer's bottom on
168 the visual viewport's bottom (within 2 px), its top well below the
169 status bar, the newest message just above it, back at the bottom on
170 close; light, dark, the empty conversation, and the task thread's
171 composer staying in view. It failed on f2eac36 (composer bottom 450
172 against 844). `TestBrowserInnerScreens` at 390: the conversation
173 bar's three centres within 1 px, and the task and project back links
174 on their bar's centre (fails without the bar rules). Screenshots:
175 `docs/mockups/built/2026-11-08/ios-keyboard-{before,after}-*.png`.
176 - Needs `EQUIPO_PLAYWRIGHT_CORE` pointing at a playwright-core
177 directory with its WebKit (1.63 here); not in CI, like the other
178 browser tests. The dead-reference scan has exact allowances for the
179 script's three lines.
180 - Seen, not caused here: `TestConversationLayout` and
181 `TestTeamsHierarchyBrowser` (plan3test, browser tag) fail on f2eac36
182 too.
183
1849. Merged `thin-v1-conn1` at 7946111 (a fast-forward: it held 96bce97).
185
18610. Duplicates (Paul: "A bit weird that we ended up with the same task
187 three times"; then "Can Equipo itself tidy up the duplicates?"):
188 - Equipo combines on its own when one person filed both tasks, in one
189 project, reading very much alike (title overlap 0.75 with three
190 shared words, or title and brief 0.7 with five), neither merging,
191 and the weaker one has no open card and no step at work. The one
192 furthest along keeps the work (stage, then not stopped, then the
193 older); the other's report, findings and thread are copied onto it
194 (`chat_task_entries.folded_from`) and it is cancelled without
195 merging (`folded_into`, `folded_stage`, `folded_at`; a direct
196 update, not an ending, so the runner keeps its sessions and nothing
197 is withdrawn). Rows are never deleted.
198 - The person gets a quiet receipt in the conversation ("Combined
199 “…” into “…”.", Undo) and on both task pages. Undo (the receipt, the
200 task pages, `POST /api/v1/tasks/{id}/uncombine`; the creator only)
201 restores the task exactly (stage, findings, thread), deletes the
202 copies and records the pair in `chat_task_distinct`, so it is never
203 combined again. A pair the coordinator recorded with `separate:
204 true` is recorded there too: Equipo trusts its judgement.
205 - Any other pair is only named: the weaker task's `duplicate_of`
206 ("Possible duplicate of …"). No Needs you card for duplicates.
207 - When: at every start (`TidyDuplicates` in `RouterWithStore`, after
208 migration 0051) and after every recorded task.
209 - Safety (Astra, housekeeping review): the fold re-reads both tasks
210 inside its own transaction (`foldable`) and refuses unless they
211 share a creator who is still an active member, share a project,
212 neither is ended, merging or already folded, neither has an open
213 card, and nothing is at work on the folded one; a refusal leaves
214 only the "Possible duplicate of" link and never touches the other
215 task. `MarkDuplicate` (the creator's own fold) now refuses a target
216 owned by someone else (403), and the quiet menu offers it only for
217 one's own task. Tests: a fold into a teammate's task refused by the
218 API and never automatic, the other task unchanged; an open merge
219 card on the survivor keeps the pair apart; a departed creator's
220 pair is left alone (mutation of the member check killed).
221 - Staging consequence: Paul's two Woodstar tasks will NOT combine on
222 the next deploy, because the one that would survive ("Swipe back
223 from the edge", Ready to merge) has an open merge card. They show
224 "Possible duplicate of". Once he answers the card, the next start
225 or recorded task combines them.
226 - Wire: `TaskRef.creator`, `Task.folded`, `Task.combined`, card
227 `combined`. Test: `TestContractCombineDuplicates` (the round trip
228 through Undo, the coordinator's separate pairs, a task at work, a
229 teammate's look-alike, a test person). Mutations killed: the
230 at-work guard (after making the busy task the weaker one; it
231 survived first because the busy task was the stronger), Undo's
232 deletion of the copies.
233
23411. The suite person on staging. Decision: hidden, not moved. The thin
235 core has no teams within an instance (every task is the instance's,
236 every active member sees it), so "its own team" would mean its own
237 staging instance. `EQUIPO_TEST_PEOPLE` (address suffixes; staging sets
238 `.invalid`) lists a test person's tasks only to itself (API v1 and the
239 pages) and never pairs them with anyone else's, at record time or when
240 tidying. `scripts/staging-thin.py deploy` sets it and takes a database
241 backup (`carlos db pull`, 0600, newest five under the staging root)
242 before every deploy. A test person's task pages still open by URL.
243
24412. Timeline headlines (Paul: "The wordy descriptions need to have
245 one-line summaries and the wordy stuff should be hidden"): every
246 entry is a short label (who, badge, duration, time), one plain
247 sentence, and a quiet Details disclosure (closed; markdown, findings
248 with file and line, commits). The sentence is the agent's own
249 headline (`headline` on findings, Engineering and Review steps,
250 written by the agents: see the headline merge below) or the first
251 sentence of the text that names no file, skipping headings and code,
252 cut at a word; checks and verdicts have fixed plain lines ("Checks
253 need macOS, so Review judged it alone.", "Approved."). Paths and
254 commits appear only inside Details (asserted on the page), and the
255 merge decision no longer names the commit. `TestTimelineHeadlines`;
256 browser: closed by default, Details by keyboard and by click, shots
257 `ux1-task-details-open-{1280,390}`.
258
25913. Thinking words (Paul: "fun 'Thinking' variants that can be tweaked
260 in the settings... start with a more professional one... 'Random'...
261 'Delcambring' should be one"). Started from `thin-v1-conn1` at fa3860a
262 (a fast-forward of this branch).
263 - Registry: set ids and situations in `wire/thinking.go` (think, read,
264 search, note, handoff, tool); names, lines and phrases in one block
265 of `copy.go` ("thinking.*"), one line per set and situation, phrases
266 separated by " | ", so Paul edits them in one place.
267 - API v1: `GET /api/v1/thinking` (the person's set, its revision, every
268 set with its phrases) and `PUT /api/v1/thinking {set, revision}` (409
269 on a moved revision), a `thinking` event to the person; stored per
270 person in `chat_settings`. Fixtures `api/thinking.json`,
271 `api/thinking-request.json`, `api/event-thinking.json`.
272 - The line: `chat-stream.js` draws a phrase from the person's set for
273 the situation (the activity's tool), one at a time, the next after
274 six seconds; Random takes one set per turn (from the turn id). The
275 plain activity stays the line's accessible label and its tooltip;
276 moving in and exploring keep their plain lines. A set changed
277 elsewhere applies from the next phrase, with no reload.
278 - Settings: `/settings/thinking` (linked from the profile menu): the
279 sets with a line and three samples, a live preview on the Stardust
280 line cycling the chosen set through every situation, and Use these
281 words. Professional is the default, so there is nothing to set up.
282 - Tests: `TestContractThinkingWords` (default, every situation filled,
283 12 to 20 phrases a set, Delcambring in Playful and Terminal, no em
284 dashes, 409, the event), `TestBrowserThinkingWords` (the preview at
285 1280 and 390; a choice reaching an open conversation with no
286 reload, label and tooltip plain; Random). Mutation killed: the
287 page ignoring the thinking event. Shots
288 `ux1-after-thinking-words-{1280,390}.png`.
289 - Seen, not caused here: `TestBrowserTaskThread` (headless, browser
290 tag) fails at fa3860a too, waiting for the answered question to
291 settle in the thread.
292 - CI: `4c_rebase` (headless) failed three times on this branch under
293 load. Cause: its wait ended on any Needs you, and Ready to merge says
294 Needs you "merge" for a moment before Equipo's merge step starts, so
295 the test sometimes read the task mid-merge. It now waits for Done or
296 a real decision, as the scenario's other wait already did.
297 `tryequipo`'s Review expired-account tests also flake on CI with
298 `provider_account_busy` (their home lock is released for the check
299 and taken again without waiting); not touched here.
300 - The sets, for Paul (all copy for review, original wording; no
301 quoted lines, names or catchphrases):
302 - **Professional** (Calm and plain: says what Equipo is doing.):
303 - Thinking: Thinking… | Considering it… | Working it out…
304 - Reading: Reading the code… | Looking through the files…
305 - Searching: Searching the code… | Looking for it…
306 - A note: Taking notes… | Writing it down…
307 - Handing to Engineering: Handing it to Engineering… | Briefing Engineering…
308 - Any other tool: Working… | Checking the task… | Getting things ready…
309 - **Playful** (Whimsical made-up words while it works.):
310 - Thinking: Delcambring… | Percolating… | Noodling… | Cogitating… | Mulling it over…
311 - Reading: Perusing… | Rummaging through the files… | Skimming with intent…
312 - Searching: Sleuthing… | Ferreting about…
313 - A note: Scribbling… | Jotting…
314 - Handing to Engineering: Passing the baton… | Rallying Engineering…
315 - Any other tool: Tinkering… | Fiddling with knobs… | Wrangling…
316 - **Galaxy far away** (Space opera: deflectors, hyperdrives and ancient archives.):
317 - Thinking: Meditating on it… | Trusting my instincts… | Plotting a course past the asteroids…
318 - Reading: Consulting the archives… | Decoding the transmission…
319 - Searching: Searching the star charts… | Scanning the far systems…
320 - A note: Encoding the plans… | Recording a message for the council…
321 - Handing to Engineering: Sending it to the hangar crew… | Briefing the squadron…
322 - Any other tool: Recalibrating the deflectors… | Patching the hyperdrive… | Bypassing the compressor…
323 - **Starship bridge** (On the bridge: scans, logs and the engine room.):
324 - Thinking: Running a level-one diagnostic… | Consulting the ship's computer… | Considering all options…
325 - Reading: Reviewing the ship's logs… | Accessing the library computer…
326 - Searching: Running a long-range scan… | Sweeping the sector…
327 - A note: Making a log entry… | Noting it in the duty log…
328 - Handing to Engineering: Paging the engine room… | Sending it down to engineering…
329 - Any other tool: Rerouting auxiliary power… | Realigning the sensor array… | Reversing the polarity…
330 - **Pirate adventure** (Treasure maps, swordplay and a talkative parrot.):
331 - Thinking: Practising insult swordfighting… | Consulting the parrot… | Pondering the map…
332 - Reading: Studying an old treasure map… | Reading the captain's log…
333 - Searching: Digging where the X is… | Searching the hold…
334 - A note: Scrawling in the logbook… | Adding to the ship's manifest…
335 - Handing to Engineering: Rousing the crew… | Sending it below decks…
336 - Any other tool: Hoisting the mainsail… | Swabbing the deck… | Bribing the grog machine…
337 - **Terminal** (A coding agent at the prompt.):
338 - Thinking: Delcambring… | Thinking… | Pondering… | Ruminating…
339 - Reading: Reading files… | Loading context…
340 - Searching: Grepping… | Globbing…
341 - A note: Appending notes… | Writing to scratch…
342 - Handing to Engineering: Dispatching to Engineering…
343 - Any other tool: Running tools… | Compiling… | Spinning up…
344 - **Random**: A different set for each turn.
345
34614. Round after staging f2602d3 (Paul, an iPhone, dark mode):
347 - "Still says 'Thinking' for me": the line cycled only after 6 s, and
348 Paul's pick was never saved (staging held no thinking setting: on
349 the Thinking words page a pick needed the button below). Now the
350 first phrase holds about 3 s, then the situation's phrases come in
351 a shuffled order every 3 to 4 s, never twice in a row; a situation
352 with one or two phrases adds the set's thinking ones; a new
353 activity switches at once; under reduced motion the words still
354 change. Picking a set saves it at once. `TestBrowserThinkingCycles`
355 (a fake clock; both motion settings).
356 - Home screen alignment: the "‹ Teams" back strip above the phone's
357 home screen is gone (Teams moved to Settings); the team's name and
358 the avatar share one bar and centre line below the safe area; every
359 nav group has the same hairline, radius and label gap (the first
360 group and Team lacked their top edge); counts and the specialists'
361 words sit in one column before the chevrons.
362 `TestBrowserPhoneIndex` measures each in pixels; shots
363 `ux1-before-index-profile-390.png`, `ux1-after-index-profile-390.png`.
364 - Settings is its own section (`/conversation/settings`, in the nav's
365 Team group): Thinking words with the preview, Connections (the page
366 and the Prefer control), Housekeeping (a slot for its slice, marked
367 `data-settings-slot`), Notebook and Teams, as full-row links. The
368 profile menu holds the person and Sign out only. Shot
369 `ux1-after-settings-390.png`.
370
371## Staging
372
373Release c14b833 (built by `scripts/staging-thin.py build`, deployed with
374`--swap hold` at 12:05:14, serving 12:06:26, both runner units on
375c14b833 the same second). Rendered as the owner and the suite person on
376the live data: Tasks, Projects and Needs you 200 with six tasks (the
377older Woodstar and suite tasks: Ready with a merge decision, a stopped
378retry, a teammate's task "Waiting for Suite", three Done), each task page 200
379with its track, timeline and summary; both runners online. Found the two
380summary lines fixed in item 7.
381
382## Decisions
383
384- Needs you for the viewer: retry, review_blocked, fix_rounds,
385 branch_moved, merge_conflict, or an open merge card. A Ready task with
386 no card (Wait, Not now) sits in Ready to merge, not Needs you; the
387 sidebar's count follows the same rule.
388- A teammate's task waiting on them shows "Waiting for Nora" and goes
389 under Waiting on others; only the creator sees cards and ⋯.
390- Clocks use a neutral "1:04:12" past an hour: no copy in a data
391 attribute (an older page test forbids "%" in any page).
392- The task page swaps its header and timeline regions only; the thread
393 stays with `chat-stream.js`.
394- Monogram and avatar hues are stable hashes of the project id and the
395 address; initials from the address until people have profiles.
396- The coordinator's "question" card in the mockup (a task-level question
397 with options) is not built: there is no task-level question resource.
398
399## Open issues
400
401- Times are server-formatted (UTC on staging), like the rest of the app.
402- Version skew as before: an old instance refuses the runner's
403 `step_activity` frame and the catalog's new fields; install runners
404 right after the instance.
405
406## Copy for review
407
408Accepted for now with the existing marker in `copy.go` and listed in the
409plan 3 inventory (160 strings, `work.*` and `nav.*`; round 2 changed `work.summary.stopped` and added `work.summary.merged_unchecked`): stage track,
410badges, chips, sources, groups and hints, filters, menu, decisions,
411summaries, timeline, Details, projects, notes, spread and legend,
412relative times and durations. See the inventory rows tagged "Thin v1 UX1
413inner screens".
414
415## Blockers
416
417None.
418