Skip to content

feat(web): aha-highlight the first agent-created item (TASK-1853)#745

Merged
xarmian merged 2 commits into
mainfrom
feat/web-onboard-aha-highlight
Jun 21, 2026
Merged

feat(web): aha-highlight the first agent-created item (TASK-1853)#745
xarmian merged 2 commits into
mainfrom
feat/web-onboard-aha-highlight

Conversation

@xarmian

@xarmian xarmian commented Jun 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes the sprint-to-aha loop for the onboarding bridge: when an agent creates the first real item during onboarding, its dashboard card gets a "✨ your agent just created this" badge + accent — so value lands visibly for the human in the live launchpad→board handoff.

Detection is a slug-keyed effect on needs_onboarding: when it flips true→false within the same workspace (driven by the existing SSE→sync→load path), the current active_items slugs are captured and their cards highlighted for the session.

Scoped tightly to the live transition: a later page load (needs_onboarding already false) fires no transition, so routine item creation is never highlighted; the slug key prevents a workspace switch from false-positiving.

Satisfies CONVE-1688 (the effect writes justCreatedSlugs but never reads it) and CONVE-606 (untrack-wrapped, route-change-aware).

Context

Implements TASK-1853 under PLAN-1847 (Phase 2, task C) — the final Phase 2 task. Completes the full Phase 2 launchpad vision.

Test plan

  • cd web && npm run build — clean (svelte-check passes)
  • Effect is slug-keyed + untrack-wrapped; verified it can't fire on workspace switch or routine creates

https://claude.ai/code/session_01KmxkPxLksjf1pmrZDpsnTJ

xarmian added 2 commits June 21, 2026 15:47
Closes the sprint-to-aha loop for the onboarding bridge: when an agent
creates the first real item during onboarding, its dashboard card gets a
"✨ your agent just created this" badge + accent, so value lands visibly
for the human in the live launchpad→board handoff.

Detection is a slug-keyed effect on needs_onboarding: when it flips
true→false within the same workspace (driven by the existing SSE→sync→load
path), the current active_items slugs are captured and their cards
highlighted for the session. Scoped tightly to the live transition — a
later page load (needs_onboarding already false) fires no transition, so
routine creates are never highlighted; the slug key prevents a workspace
switch from false-positiving.

Satisfies CONVE-1688 (the effect writes justCreatedSlugs but never reads
it) and CONVE-606 (untrack-wrapped, route-change-aware).

Parent: PLAN-1847 (Phase 2, task C).

Claude-Session: https://claude.ai/code/session_01KmxkPxLksjf1pmrZDpsnTJ
…, per Codex review (round 1)

Round-1 review caught a workspace-switch race: a silent reload leaves the
old dashboard (needs_onboarding=true) in state while wsSlug already flipped,
so the route-keyed edge recorded onboarding=true under the new slug and then
false-positived when the new workspace's data (false) arrived — highlighting
all of the new workspace's items.

Stamp the dashboard with the slug it was fetched for (dashboardSlug) and key
the transition on that. The true→false edge is now only ever computed across
two loads of the SAME workspace's data.

Claude-Session: https://claude.ai/code/session_01KmxkPxLksjf1pmrZDpsnTJ
@xarmian
xarmian merged commit 80a939f into main Jun 21, 2026
4 checks passed
@xarmian
xarmian deleted the feat/web-onboard-aha-highlight branch June 21, 2026 15:51
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