Skip to content

refactor(web): reuse worklog rows for setup and created threads - #12347

Merged
juliusmarminge merged 3 commits into
t3code/codex-turn-mappingfrom
t3code/ui-composition-audit/worklog
Sep 18, 2026
Merged

juliusmarminge merged 3 commits into
t3code/codex-turn-mappingfrom
t3code/ui-composition-audit/worklog

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Retained in the V2 UI stack. It uses the shared V2 WorkLog API and migrates V2LifecycleRow, which is absent from main.

Worktree setup stages, their collapsed summaries, and created-thread events duplicated the worklog's spacing and icon alignment. That let them miss the shared nonselectable, single-line header defaults.

Render them through WorkLogRow and reuse the existing button components for opening created threads. The setup shimmer now overlays only its label instead of repeating the row geometry and spinner. The fixed four-line output tail, detail disclosure, elapsed timing, and visibility-aware animation remain intact.

Based on #2829, pinned initially to ebfd663e99ed4211cbdc6e155a4ed0cc61ab592a. This is an independent UI-composition stack; it excludes concurrent queue recovery and OOM work.

Validation: 180 focused timeline/setup tests passed, including a new live-to-settled setup disclosure test. Web typecheck and changed-file lint passed. React Doctor found only existing warnings in the changed web files.

Applies to web and desktop's shared renderer. No server, contracts, persisted data, or migration changes; compatible with existing V2 preview state. Browser verification and before/after captures were explicitly excluded from this code-only pass. Kept as a draft pending visual review.

Model: GPT-6. Harness: Codex.

@juliusmarminge
juliusmarminge added this pull request to stack #12350 September 18, 2026 02:22
@juliusmarminge juliusmarminge changed the title t3code/ui composition audit/worklog refactor(web): reuse worklog rows for setup and created threads Sep 18, 2026
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 7ab70bc.

This comment will update automatically after the next completed run.

@juliusmarminge
juliusmarminge removed this pull request from stack #12350 September 18, 2026 02:57
@juliusmarminge
juliusmarminge added this pull request to stack #12373 September 18, 2026 03:03
@juliusmarminge
juliusmarminge marked this pull request as ready for review September 18, 2026 03:07
<InlineButton
aria-label={`Open ${item.title ?? "created thread"}`}
onClick={() => props.onOpenThread(item.targetThreadId)}
className="rounded-sm text-primary hover:underline"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shared primitives over custom controls: this call site overrides InlineButton's radius and base color. Add an InlineButton variant for this link treatment and select it here instead.

Suggested fix: define the treatment in components/ui/button.tsx; this requires a cross-file change, so no inline diff is provided.

Posted via Macroscope — UI Consistency

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #12375, now merged into the V2 branch after current-head Macroscope approval and green CI. InlineButton owns the radius/color/underline treatment through variant="link"; V2LifecycleRow selects that variant without custom styling. This preserves the existing appearance and behavior. The original PR merged concurrently before the fix was ready, so the correction landed as this focused follow-up.

@macroscopeapp

This comment has been minimized.

@macroscopeapp

macroscopeapp Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

A prior Macroscope approval was dismissed. Re-evaluating 2b01904…

No code changes detected at ceb289f. Prior analysis still applies.

macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Sep 18, 2026
@macroscopeapp
macroscopeapp Bot dismissed their stale review September 18, 2026 03:15

Dismissing prior approval to re-evaluate 2b01904

@juliusmarminge
juliusmarminge force-pushed the t3code/ui-composition-audit/worklog branch from 2b01904 to ceb289f Compare September 18, 2026 03:15
@juliusmarminge
juliusmarminge merged commit aff86c9 into t3code/codex-turn-mapping Sep 18, 2026
15 of 21 checks passed
@juliusmarminge
juliusmarminge deleted the t3code/ui-composition-audit/worklog branch September 18, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant