| 1 | # Brief: conversation UI that feels like a proper chat, closer to the mockups |
| 2 | |
| 3 | Branch `chat-ui` from main 0cb576b (deployed). Paul (2026-11-05): "work on |
| 4 | the UI so that it looks and feels like a proper chat and is closer to the |
| 5 | mockups". Another agent is concurrently changing release/install code on |
| 6 | branch enable-execution: stay out of internal/release, packaging, |
| 7 | scripts/*release*, cmd/equipo-runner and internal/runner. |
| 8 | |
| 9 | Spec: docs/mockups/conversation.html (desktop + phone), nav.html (Fiesta |
| 10 | rail, drill-down on phone, icons + names, no initials), journey.html |
| 11 | (steps beside each task), native.html (rev 3 conversation shapes), and |
| 12 | docs/mockups/README.md rules: no coloured left-border accents (hairline |
| 13 | border + tint), values/badges never wrap, theme tokens only, real UI uses |
| 14 | an icon plus the specialist name. Rastrillo conventions per AGENTS.md; |
| 15 | `live` for updates. |
| 16 | |
| 17 | Steps: |
| 18 | 1. Capture the CURRENT UI: run the app locally (EQUIPO_ALLOW_LOGGED_MAIL=1, |
| 19 | loopback only, scratch DB under $TMPDIR, seed a team, a project, a |
| 20 | conversation with several messages, a task thread with steps, a |
| 21 | pending question) and screenshot the conversation, a task thread and |
| 22 | the nav at desktop and phone widths with the repo's existing browser |
| 23 | harness. Screenshot the mockups the same way. Write a short gap list |
| 24 | (what makes it not feel like chat today). |
| 25 | 2. Implement: a chat layout for the coordinator conversation and task |
| 26 | threads: messages as a scrolling column anchored to the bottom, your |
| 27 | messages vs coordinator/specialist messages visually distinct (no |
| 28 | left borders), specialist identity as icon + name, timestamps, |
| 29 | composer docked at the bottom (Enter to send, Shift+Enter newline, |
| 30 | disabled while sending, keeps focus), new messages and progress |
| 31 | arriving live without reload and keeping scroll position unless at |
| 32 | the bottom, threads per task reachable from the conversation as in |
| 33 | the mockup, inline cards for questions/approvals/candidates in the |
| 34 | flow, phone layout per mockup. Keep server-rendered HTML + Rastrillo |
| 35 | live; no SPA framework. Accessibility: semantic list, aria-live for |
| 36 | new messages, keyboard reachable. |
| 37 | 3. Copy: reuse existing strings; any NEW user-facing string goes in |
| 38 | internal/equipo/copy.go marked `// COPY REVIEW PENDING` (Paul will |
| 39 | review in context; do not start a copy-review server). |
| 40 | 4. Screenshots AFTER at the same sizes, saved under $TMPDIR and copied |
| 41 | (PNG, small) into docs/mockups/built/2026-11-05/ for Paul to compare. |
| 42 | 5. Perf/budget/browser checks the repo runs (make -k ci, rerun at most |
| 43 | twice). Commit subject < 80, body `Co-Authored-By: Astra |
| 44 | <noreply@openai.com>`, push. CONTROLLER-REPORT-chat-ui.md with the gap |
| 45 | list, what changed, before/after screenshot paths, and the new |
| 46 | strings. Bind only to 127.0.0.1. Stop every server you start; scratch |
| 47 | removed. Print a five-line summary. |
| 48 | |