/improve_plan @thoughts/shared/plans/2026-04-10-bind-page-rework-conditional-layout.md
- User
/improve_plan @thoughts/shared/plans/2026-04-10-bind-page-rework-conditional-layout.md
- User
improve_plan /improve_plan @thoughts/shared/plans/2026-04-10-bind-page-rework-conditional-layout.md
Assistant· claude-opus-4-6
I've read the plan. Let me now spawn parallel research agents to understand the codebase areas it touches before reviewing.
Assistant· claude-opus-4-6
All three research agents have returned. Let me synthesize findings into an adversarial review.
Assistant· claude-opus-4-6
Assistant· claude-opus-4-6
Good — skipping the spike. Let me apply all improvements to the plan in-place.
Assistant· claude-opus-4-6
Now I'll apply all improvements. Let me make the edits in sequence.
Edit 1: Replace raw
<button>with<Button>from@repo/uiand add the import.Assistant· claude-opus-4-6
Edit 2: Remove unnecessary
HydrateClientfrom the bind step branch in the layout code.Assistant· claude-opus-4-6
Edit 3: Add Phase 2 step to update
GitHubBindStep'squeryKeysToInvalidatewithlistUserOrganizations, and fix the success criteria.Assistant· claude-opus-4-6
Edit 4: Add a note about
isConnectingUX behavior to the Phase 1 component section.Assistant· claude-opus-4-6
Edit 5: Add the Improvement Log at the bottom of the plan.
Assistant· claude-opus-4-6
Plan updated. Here's a summary of what changed:
Changes applied (5 total)
# Severity What changed 1 High Raw <button>→<Button size="lg">from@repo/ui. Every other primary action uses the shared component.2 High Phase 2 now adds listUserOrganizationstoGitHubBindStep'squeryKeysToInvalidate. Without this, the amber dot would persist for up to 5 minutes after binding.3 Improvement Removed unnecessary <HydrateClient>wrapper from the bind step branch — no server prefetches exist, so it was a no-op.4 Improvement Added inline comment documenting that conditional JSX in the layout is a new codebase pattern (all others use early exits). 5 Improvement Documented the isConnectingUX gap so it isn't mistaken for a bug during testing.Not changed
- Three-phase structure, stepper UI, and overall approach are all sound. No scope creep, no demoted phases.