GeezerVison is showing github.com — feat(web): the task view as a conversation, engine facts in the right panel by polymaniadeveloper-hub · Pull Request #182 · Tevin2119/t3code
Conversation
Board revamp phase 2, slice 3: the task view as a conversation (BOARD-REVAMP-UI-SPEC section 6).
Stacked on #181 (feat/board-p2-slice2-lanes, head a5926a9): the task view reads the 11 board lanes and boardLaneOf from it, and both touch TaskWorkspace.tsx. Retarget to master once #181 merges.
What changed
- Centre is the task's conversation.
TaskConversation mounts T3's own thread view (ChatView, composer included) on the task's thread. The engine's log and its composer stay one toggle away ("Engine log"), because a question or a proposal the engine asks is still answered there until slice 5 mirrors them into the thread.
- Which thread is the task's is read in one place,
lib/taskConversation.ts, labelled throwaway. Until the engine links tasks to threads, the stand-in is the thread the task was made from (task.source). A draft or queued task never gets one.
- No conversation yet (queued): the task text, and the engine's queue reason through
QueueLine from feat(web): the board's 11 lanes (phase 2, slice 2) #181 (place, slots, holders), with no composer. A draft still opens TaskEditor.
- T3 not running: the thread stays mounted and a line says the conversation resumes when T3 is back and nothing is cancelled. A thread the client never loaded shows the task text and the same line.
- Task in work with no known conversation: the engine's log stands in, with a line saying so. Nothing is lost for tasks not made from a thread.
- Right panel holds the engine facts.
TaskFacts sits at the head of the evidence tab: flow, seat rows (moved here from the left pane), stage and rework round, who it waits on, publication, merge permission, deployment. Every line is a field the engine sent. QA votes, workers, approvals and the rest stay in the sections below it. On a first visit at 1360px and wider the panel opens by itself; once a person closes it, it stays closed.
- Seat conversations. A seat row whose seat the lead handed work to (a delegated child of the thread with
teamChat.seat, the orchestrator team-chat model) opens that child thread in the centre, through ThreadInspectionContext. A bar above it carries the way back to the task. The right panel stays on the task. A lineage link in the thread view or the left pane opens in the centre the same way; on a sheet layout the sheets close so the centre shows.
Row and PublicationRows moved from TaskWorkspace.tsx to taskParts.tsx so TaskFacts can use them.
Not built: claims, the engine-held task-to-thread link, hiding board threads from the list, anything for real deployment, derived actions.
T3 pieces reused
ChatView and its composer (centre); ThreadInspectionContext and ThreadRelationshipsPanel (opening a related thread in place, lineage back); TaskTeamActivity seat rows with ThreadDetailsControl and the subagent hover card; RightPanelTabs and taskPanelRef (right panel); ThreadDetailsSection; ToggleGroup; Badge; RenderErrorBoundary; QueueLine, WaitKinds, ReworkCount, workStageOf from #181; MergePermissionSummary, TaskDeploymentBadge; useEnvironment for connection state; useQuietThreadProjection for the thread's delegated children. NativeTeamChat's bindThread/delegatedTaskThread child-per-seat model is what the seat lookup reads; nothing new was invented there.
Engine asks
I read no engine source for this slice: every shape came from t3code's own parsers and from a scratch engine's responses. What the UI infers today and the engine should announce:
- The task-to-thread link (the spec's slice 2).
lib/taskConversation.ts is the only reader.
- Each seat's own thread id on
council.seats[]. Today a seat's conversation is found by teamChat.seat on the stand-in thread's delegated children, which only works for the orchestrator team-chat shape.
- A fact that a steer was recorded, and a count of new conversation activity with the last line, for the card (
unread, last today).
- Observed on a scratch engine's
/api/tasks/:id and not used: top-level thread, threadState, kind and draft keys, unparsed by t3code. Say whether thread is the link before it is read.
Verification
vp run check:changed: format, lint, knip, typecheck, 12 test files (215 tests), react compiler: pass. vp run i18n:check: pass.
- Added:
taskConversation.test.ts (9), TaskConversation.browser.test.tsx (5), seat-row case in TaskTeamActivity.browser.test.tsx, first-visit case in TaskWorkspacePanels.browser.test.tsx. Existing Panels, TeamActivity and BoardLanes browser tests pass unchanged.
- Real browser (dev server in this worktree against a scratch engine in front of a fixture task set; the dev server's inherited engine URL was overridden so the live engine was never contacted): task in work at 1440 light and dark, 1024 light, 768 dark, 390 light; queued task at 390 light; offline and never-loaded thread at 1440 light. The connection dropped on its own during the run and the offline line appeared over the mounted thread.
Not verified
- A seat row opening a seat conversation in the live app: the fixture had no delegated children. Covered only with the mocked thread view in a browser test.
- Dark at 390 and 1024, light at 768, queued at 1440 and 768, the unlinked state, and mobile (native) app: not captured.
- On a hard load under heavy machine load the thread view's composer once threw while mounting and took the page down. It is now caught and mounted again once; the crash itself (Tiptap reading its view before it exists) is T3's and is not fixed here. The retry is not covered by a test, because React reports the thrown error as unhandled and vitest fails the run on it.
- Dev server file watching served stale modules several times, so each capture follows a full restart. The 1440 and 1024 captures predate the header-row fix (one row, title gives way) and, for 1440, the width rule for opening the right panel; 768, 390 and the offline capture are on the final code.
Translations
15 new strings in all nine languages, written by the builder (not reviewed by a native speaker): the conversation, offline, queued, unlinked and failure lines, the seat bar, and "Where it stands" and "Stage". Keys are the new hashes in each apps/web/src/i18n/translations/*.json.
🤖 Generated with Claude Code
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
… its engine facts in the right panel
The centre shows the task's thread in T3's own thread view and composer. A draft or queued task
shows its text and the engine's queue reason with no composer, and when T3 is not running the
view says the conversation resumes. A seat row opens the seat's child conversation in the centre,
with a way back to the task, while the right panel stays on the engine facts. Which thread is the
task's is read through lib/taskConversation.ts, a throwaway stand-in until the engine links tasks
to threads.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…d keeps its header on one row
The thread view in the centre is mounted again once when it throws while mounting, instead of
taking the page down. With a thread open the header stays on one row so the title gives way to
the controls the thread view draws over the top right corner.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|