Repository navigation
feat(platform): read a task's discussion in the dialog as its conversation - #4575
Conversation
|
REQUEST CHANGES — reviewed head
Source assessment: the root change reuses Authorization remains server-enforced: comments, activity and agent runs load the task under the authenticated organization and check the containing project's read access. Author edits/deletes and admin moderation retain their distinct read/work gates. No new authorization defect found by source inspection; I ran no boundary tests. The new cached-page test would fail on the base because it renders Comment 30 immediately; the new-arrival test guards against losing Comment 29 to a rolling slice. The dialog composition test would fail on the base's separate surfaces. The extracted-column browser tests assert layout invariants, but do not independently demonstrate the actual dialog/phone host.
CI snapshot: exact-head runs Before merge: resolve finding 1 and supply settled CI plus source-bound actual dialog keyboard/focus/screen-reader and desktop/mobile/light/dark evidence. The PR's performance table and visual claims were not independently verified. No clone, install, tests, rerun, cancellation, push or merge performed. This comment is a PR review report, not a native task verdict or merge authorization. |
8268a47 to
9fc5928
Compare
20c35a2 to
3109ccb
Compare
9fc5928 to
15933b3
Compare
09988e3 to
641214b
Compare
15933b3 to
ecc983a
Compare
641214b to
ac243c8
Compare
ecc983a to
98b99ae
Compare
ac243c8 to
c388e9d
Compare
98b99ae to
fbf6c31
Compare
c388e9d to
59e9f06
Compare
fbf6c31 to
b8ba3c2
Compare
59e9f06 to
789d865
Compare
b8ba3c2 to
9b5fda8
Compare
TaskThreadColumn holds the brief card, the conversation and the composer pinned at the foot, in a scrollport anchored at the newest end. The task page renders it unchanged; the board's dialog can render the same column.
…ation The board's task dialog renders the task page's reading column: the brief card, the one conversation of comments and activity, oldest first under day pills, and the chat composer pinned at its foot, opening at the newest end. On a phone the drawer scrolls it as one column. The loading placeholder puts the brief and the composer where they land.
With the dialog reading the conversation, the newest-first comment list, the separate Activity list, their window and their first-frame slice have no surface left. The composer keeps only its chat form. The total the Activity heading carried moves to the details panel as Agent cost, so it stays in view on the page too and after the task moves on to a person. Tests that covered the lists now cover the conversation, the composer and the history lines.
Comments kept from an earlier visit no longer all render when the task opens again: the conversation shows the discussion's newest page, and Show earlier comments reveals the kept ones at once before it asks for another page. A comment that arrives later always shows, so none drops out of view. Re-opening a task read back to 210 comments took about 0.9 s in the dialog and on the page.
The task docs say the board's dialog reads a task as its page does — brief, one conversation, the comment box at the foot — and name Agent cost in the details. Manual boxes that sent the reader to the Activity list now read the task's history in its conversation; TASK-P6 covers re-opening a read-back task; new boxes cover the shared reading, the agent cost and the keyboard path.
The dialog's body remounts per task, as the page's does: a switch through a subtask, parent, dependency or next-task link opens the next task on its newest message, with nothing sliding in and no scroll offset carried over. The details panel is a named region with its own heading, a composer hint wraps in full instead of being cut off, and the Agent cost row is covered by the dialog's tests.
789d865 to
a66773b
Compare
Assigning a task an automation holds asks first: the assignee picker reads whether the task has a live run, then opens "Reassign this task?", whose Reassign cancels a live run, then reassigns the task. The reads answer asynchronously, and the confirm acts on the task the picker shows when it is confirmed. Before #4575 the task dialog kept one picker across a switch of task, so a handoff asked for a subtask whose reads answered after its parent link had opened the parent put the confirm over the parent, and Reassign cancelled the parent's run and reassigned the parent (#3915). #4575 (a6bff19) gave the dialog one task body per task (key={bodyTaskId}), so a switch drops the late answer, but no test held that: with the key removed, the dialog's jsdom tests still passed. The new test renders the real task dialog, task body, parent link and assignee picker over mocked backend hooks. An automation holds both tasks, and a task's live-run reads answer when the test releases them. A handoff asked for the subtask whose reads answer after the parent link opened the parent must open no confirm over the parent and write nothing. With key={bodyTaskId} removed it fails on that confirm, and confirming it cancels and reassigns the parent. The control confirms within one task: it cancels that task's run, then reassigns it to the person picked. Its row in reference/automation/tasks.md lists it as the component half of TASK-B3. Closes #3915 Task: TALE-41
Assigning a task an automation holds asks first: the assignee picker reads whether the task has a live run, then opens "Reassign this task?", whose Reassign cancels a live run, then reassigns the task. The reads answer asynchronously, and the confirm acts on the task the picker shows when it is confirmed. Before #4575 the task dialog kept one picker across a switch of task, so a handoff asked for a subtask whose reads answered after its parent link had opened the parent put the confirm over the parent, and Reassign cancelled the parent's run and reassigned the parent (#3915). #4575 (a6bff19) gave the dialog one task body per task (key={bodyTaskId}), so a switch drops the late answer, but no test held that: with the key removed, the dialog's jsdom tests still passed. The new test renders the real task dialog, task body, parent link and assignee picker over mocked backend hooks. An automation holds both tasks, and a task's live-run reads answer when the test releases them. A handoff asked for the subtask whose reads answer after the parent link opened the parent must open no confirm over the parent and write nothing. With key={bodyTaskId} removed it fails on that confirm, and confirming it cancels and reassigns the parent. The control confirms within one task: it cancels that task's run, then reassigns it to the person picked. Its row in reference/automation/tasks.md lists it as the component half of TASK-B3. Closes #3915 Task: TALE-41
SearchableSelect emptied its virtual list as soon as it began to close and reset its search at once, so a closing popover collapsed, and one placed above its trigger jumped. The list now keeps its rows while Radix keeps the content mounted through its exit animation, and the search resets once the content has left the page. useVirtualList set state on every focus move, so each Tab re-rendered a DataTable that renders every row: small tables, page scroll, expanding rows and short viewports. It now sets the focused row only while the list is windowed, keyed by the row so that a reorder cannot pin the wrong one, and still pins a row focused before the list grew into a window. DataTable counted only the loaded rows in aria-rowcount while more could load; it now says -1, the unknown total ARIA asks for. The windowing tests counted [data-index] rows, which an unwindowed table never rendered, so they passed without windowing. They now count rendered rows by their content and assert that far rows are absent, type into the row editor, and cover rows of mixed heights and the scroll adjustment override. The automation register names what they prove. The discussion windowing this issue also named was removed by #4575, so PERF-P13 needs no note about rows leaving the DOM. Closes #5236 Task: TALE-320
SearchableSelect emptied its virtual list as soon as it began to close and reset its search at once, so a closing popover collapsed, and one placed above its trigger jumped. The list now keeps its rows while Radix keeps the content mounted through its exit animation, and the search resets once the content has left the page. useVirtualList set state on every focus move, so each Tab re-rendered a DataTable that renders every row: small tables, page scroll, expanding rows and short viewports. It now sets the focused row only while the list is windowed, keyed by the row so that a reorder cannot pin the wrong one, and still pins a row focused before the list grew into a window. DataTable counted only the loaded rows in aria-rowcount while more could load; it now says -1, the unknown total ARIA asks for. The windowing tests counted [data-index] rows, which an unwindowed table never rendered, so they passed without windowing. They now count rendered rows by their content and assert that far rows are absent, type into the row editor, and cover rows of mixed heights and the scroll adjustment override. The automation register names what they prove. The discussion windowing this issue also named was removed by #4575, so PERF-P13 needs no note about rows leaving the DOM. Closes #5236 Task: TALE-320
What
The board's task dialog now reads a task exactly as its page does. Comments and history were two lists there; now they are one thread.
One reading column.
TaskThreadColumnholds:The page and the dialog both render it. A long task opens on its latest exchange with the brief one scroll up; a short one shows everything from the top. On a phone the drawer scrolls it as one column, with the details after it.
Retired: the dialog's newest-first
TaskCommentslist, the separate Activity list, their virtual window (useTaskLogWindow,TaskLogViewportand the row-activity pins), the first-frame slice, the composer's inline variant, and thedetail.comments/detail.activitystrings.Agent cost: the total the Activity heading showed now sits in Details as Agent cost, on the dialog and the page. It stays after the task moves on to a person.
Opening a long task: a conversation opens on the discussion's newest page, even when older pages are cached from an earlier visit. Show earlier comments reveals the cached pages at once before it asks for another page. A comment that arrives later never pushes an older one out of view.
Stacked on #4570, which is stacked on #4559.
Measured
Production build, 2,000-task org, a task with 491 comments, 704 history rows and an 18,000-character description. Five samples, medians; scripts and raw JSON are in the lane notes.
Before the opening-page fix, a re-open rendered every cached comment: 940 ms in the dialog, 839 ms on the page.
Verification
task-thread-column.browser.test.tsxcovers where the column opens and the pinned composer.lint:manualandcheck-guideare clean.Docs and manual tests
design/docs/app.md.Stale screenshot:
project-task-detail(docsprojects/tasks) still shows the old comment list and needs a retake.