Skip to content

fix(threads): summarise attachments and citations in queued rows - #633

Merged
nixuuu merged 1 commit into
devfrom
fix/queue-compact-summary
Nov 13, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/queue-compact-summary

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Queued messages repeated inline attachment filenames in their preview and rendered large attachment chips below the row. Web and mobile now share a plain preview that removes attachment tokens, preserves normal mention labels, and replaces citation tokens with citationTokenLabel.

Muted, pluralised counts (2 images · 1 file · 1 citation) sit beside the preview. Content-only messages use those counts as the preview. Pressing the summary opens a scrollable list of filenames and citation labels. Rows retain their existing height and fixed actions; model/effort/access metadata truncates before the actions.

Validation

  • With nice -n 19: install, generated-code check, repository typecheck (including web/mobile), lint, formatting check and web build pass.
  • Three shared-helper regression tests pass: mixed and adjacent tokens, citation plain labels, preserved typed filenames/normal mentions, invalid ranges, content-only drafts, pluralised counts and unchanged source data.
  • All CI checks for this head pass, including all four test shards and the aggregate Typecheck, tests, builds check. The PR is ready for review.
  • Full local nice -n 19 bun run check:tmp: 2717 pass, 166 skip, 4 fail across 509 files (1846.06 s); its checked temporary directory is clean. The failures are in unchanged harness/link code: the Grok session-recovery test in bots-harness.test.ts exceeded its 5 s timeout, and runs 10/20, 11/20 and 12/20 of the thread-move scenario in computer-moves.test.ts failed on a disconnected peer or missing mirror update. The isolated Grok check:tmp retry passes (1 pass / 0 fail, 3.08 s, no temporary files left). The full local run is not green, despite successful CI. No gateway/worker behavior is changed by this PR.
  • No UI tests were added. Native UI has not been exercised on a device.
  • Remote install and web builds pass. Reviewed real production queue components in an isolated temporary fixture: 1/3/12 queued rows at 1440/700/390 px, both themes, text-only/content-only/mixed messages and long names. All 18 configurations have no horizontal overflow or attachment filename leak; row heights remain 32 px desktop / 48 px phone, and action coordinates match across rows. Summaries use muted 11.5 px desktop / 13 px phone text. Checked filename/citation lists, wrapping, Escape/focus return and the zero-gap composer seam. Chromium screenshots also ran on the second machine. The disposable checkout, server, browser profile and remote artifacts are removed; no database containers were needed. This is a component fixture review, not a live gateway delivery test.

Copy audit — docs/copy.md §8

  • Filename previews plus repeated blue chips → message text and muted 1 image / 2 images, 1 file / 2 files, 1 citation / 2 citations: each part has one purpose; counts use the citation glossary and correct plurals.
  • (only files) / (only quotes) → actual content counts: useful content replaces an implementation-oriented placeholder. 1 quote → 1 citation names the token consistently.
  • New disclosure labels: Show message content: {summary}, Message content, Close message content. Action labels start with a verb; all use sentence case, short phrases and no terminal punctuation.
  • Criteria 1–8 and 10: English copy, sentence case and glossary checked; no new errors, empty states, missing-data warnings, internal jargon or “soul” lines. Named controls and readable counts provide meaning without relying on color or icons. Full filenames remain in details.
  • Criterion 9: checked short (Short.png), typical and long filenames/citation labels at desktop, narrow and phone widths in both themes. Row text truncates to one line; long names wrap in details without overflow. Counts stay compact and actions remain aligned.

Fixes: #201
Fixes: #398

@nixuuu
nixuuu force-pushed the fix/queue-compact-summary branch from 28fd00a to c199263 Compare November 13, 2026 10:41
@nixuuu
nixuuu marked this pull request as ready for review November 13, 2026 10:57
@nixuuu
nixuuu merged commit ba46321 into dev Nov 13, 2026
13 checks passed
@nixuuu
nixuuu deleted the fix/queue-compact-summary branch November 13, 2026 11:09
nixuuu added a commit that referenced this pull request Nov 13, 2026
## Projekt workspace'u — zaakceptowany układ v2

Podgląd plików przechodzi z modala do zakładek jednego wątku. Sygnet
projektu, skracany tytuł i karty dzielą rząd nagłówka, z aktywną kartą
zawsze widoczną i przełącznikiem overflow. Prawy rail obsługuje jeden
minimalny moduł. Bez modułu podsumowanie jest dokowane i widoczne; z
modułem jest zamkniętą domyślnie kartą pływającą. Na wąskich ekranach
obie powierzchnie używają arkuszy.

Użytkownik zaakceptował układ v2 i udzielił jawnej zgody na
implementację. Przyjęte decyzje: jeden zastępowalny czysty preview,
utrwalany przez Edit/Keep tab/dwuklik, zakres cwd/worktree wątku i
mobilna edycja natywna bez kolorów podczas pisania (kolory w viewerze i
Preview changes). Usunięto sekcję otwartych decyzji.

Dokument uwzględnia jeden przycisk menu wiersza (#608), zachowanie
treści PR przy odświeżaniu (#611), bounded warming/cache transkryptu
(#622/#623/#629), niezależne sortowanie sidebara (#617/#619/#626),
kompaktowy tekst stanów preview (#634), poprawne stany ChoiceControl
(#637), kolejkę kontynuacji (#630) i podsumowania jej wierszy (#633).
Nie dodaje pełnych snapshotów ani prefetch plików podczas warming.

Siedem kompletnych warstw będzie osobnym stosem z podstawą dev.
Wszystkie PR implementacyjne pozostaną draftami do ukończenia i
weryfikacji całości oraz wspólnego scalenia przez maintenera. Migracje
muszą zachować monotoniczność względem aktualnego dev. Dokumentacyjny PR
po zielonym CI jest gotowy do scalenia przez maintenera.

## Weryfikacja i ograniczenia

- Rebase na dev `1626a3e6b05494e7aec77942bd818950468a3b58` bez
konfliktów.
- `nice -n 10 bun run format` i `nice -n 10 bun run format:check`
przeszły. Konfiguracja pomija Markdown; dokument sprawdzono ręcznie.
`git diff --check` bez błędów po usunięciu pustej linii końcowej.
- Brak zmian kodu aplikacji i kontraktów; testy wykonania oraz pomiary
budżetów należą do stosu implementacyjnego.
- Samodzielna makieta v2 poza repozytorium, 32 435 bajtów, przezroczyste
html/body, trzy stany × trzy szerokości × dwa motywy. Poprzednio
wyrenderowana i obejrzana bez błędów konsoli.

## Copy audit (§8)

Brak zmian produkcyjnych etykiet. Projekt zachowuje `Thread`, `Keep
tab`, `Thread details`, `Open in tab`, `Collapse panel` / `Show panel`
oraz dostępne nazwy obu kontekstów `+`. Zachowuje jeden przycisk menu
wiersza i kompaktowy tekst statusów pliku. Krótkie i długie etykiety są
pokazane w makiecie; rzeczywiste powierzchnie i stany będą audytowane w
każdej warstwie UI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant