Skip to content

Guard live planning widgets until data is loaded (codex) - #2489

Merged
numnx merged 1 commit into
feature/CODUX-156-chat-status-widget-update-downloadlinkfrom
task/feature-codux-156-chat-status-widget-update-down-t04-codex-mra5xgih
Jul 7, 2026
Merged

Guard live planning widgets until data is loaded (codex)#2489
numnx merged 1 commit into
feature/CODUX-156-chat-status-widget-update-downloadlinkfrom
task/feature-codux-156-chat-status-widget-update-down-t04-codex-mra5xgih

Conversation

@numnx

@numnx numnx commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

🧩 Task: Guard live planning widgets until data is loaded

Automated task PR opened by Code UX for T04.

📋 Summary

Sprint: Sprint 156 · Chat Status widget + Update downloadlink · Task: T04

Connect the chat rich status widget to live sprint/task progress and make update notices open the correct official npm or Electron release download in the user’s browser.

📝 Full Task Prompt
## Objective
Prevent chat planning widgets from rendering fabricated live sprint progress before the underlying project task records and execution snapshot have finished loading.

## Scope
- `dashboard/src/v2/lib/chat-widget-view-models.ts`
- `dashboard/src/v2/hooks/use-chat-page-data.ts`
- `dashboard/src/v2/ChatPage.tsx`
- `tests/dashboard/lib/chat-widget-view-models.test.ts`
- `tests/dashboard/v2/chat-message-bubbles.test.tsx`
- `tests/dashboard/v2/use-chat-page-data.test.tsx` if the hook data flow needs coverage

## Implementation Requirements
1. Thread explicit loaded/loading state for `useExecutions` and `useProjectTasks` into the chat widget live-data path.
2. Make `buildLivePlanningWidgetState` return `null` until the chat page has real execution/task data for the current project, so planning messages keep rendering the existing generic planning widget during hydration.
3. Preserve the live widget once data is available, including sprint resolution, queued/completed counts, progress labels, and per-task status rows.
4. Add or update tests proving that a planning message with sprint metadata still falls back to the generic planning card while data is loading and switches to the live widget only after both data sources are present.

## Constraints
- Do not add a new backend API.
- Do not change the update-download work from T01/T02.
- Keep the current widget styling and semantics unchanged once live data is rendered.

## Verification
- Run `pnpm run test:dashboard -- tests/dashboard/lib/chat-widget-view-models.test.ts tests/dashboard/v2/chat-message-bubbles.test.tsx tests/dashboard/v2/use-chat-page-data.test.tsx`.
- Run `pnpm run typecheck:dashboard`.

✅ QA Review

⏳ QA review runs after this PR is opened. Check the task card in the dashboard for the outcome once it lands.

🤖 Model & Provider

Provider Codex CLI
Model gpt-5.5

⏱️ Timing

Started 2026-07-07 04:42:32 UTC
Finished 2026-07-07 04:49:52 UTC
Duration 7m 19s

📊 Token Usage

Metric Value
Input tokens 130,722
Cached input tokens 2,692,480
Output tokens 16,654
Total tokens 2,839,856
Invocations 1
Tool calls 60
Active time 6m 48s

Included usage estimate (subscription/local login): $2.50

🌿 Branch Info

Base: feature/CODUX-156-chat-status-widget-update-downloadlink
Head: task/feature-codux-156-chat-status-widget-update-down-t04-codex-mra5xgih


🤖 Generated by Code UX

@numnx
numnx merged commit 821e42e into feature/CODUX-156-chat-status-widget-update-downloadlink Jul 7, 2026
6 checks passed
@numnx
numnx deleted the task/feature-codux-156-chat-status-widget-update-down-t04-codex-mra5xgih branch July 7, 2026 04:52
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