feat(chat): deep-link the blocked card's upgrade CTA to the Plan Picker - #291
Merged
Conversation
…al messages" The same allowance was named two ways: the chat cards said "Free messages" while the Plan view said "Free assistant messages". Unify every user-visible surface — chat cards, the 402 response, and the Plan view's allowance card — on "Free trial messages", which ties the allowance to the Active Free Trial and explains why upgrading lifts the limit. CONTEXT.md's Free Chat Turns entry now fixes this label and retires both older variants. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019AvJNCVneDGm5wbnK7uScT
The chat billing cards were the only upgrade entry that pushed a bare /billing: the user landed on the Plan view and had to find the picker themselves, and with no recorded return route the Billing Area close button fell back to the sidebar's last entry point or home. The blocked card's "Upgrade plan" now navigates to /billing?mode=upgrade so the Plan Picker opens on arrival — the same tested deep link the App Sidebar upgrade button uses. The counter's "View plans" keeps landing on the Plan view without opening the picker: with turns remaining the intent is browsing, not buying. Both CTAs record the return route first, so closing the Billing Area lands back on the project, remounts the pane, and clears `blocked` per ADR-0065. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019AvJNCVneDGm5wbnK7uScT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
When Free trial messages run out, the chat's blocked card shows an "Upgrade plan" CTA. It used to push a bare
/billing, leaving the user to find the plan picker themselves. It now navigates to/billing?mode=upgrade, so the Plan Picker dialog opens on arrival — the same tested deep link the App Sidebar upgrade button already uses.blockedper ADR-0065 (previously it fell back to the sidebar's last entry point or home).Commits
feat(ui)— label rename across chat + billing surfaces, tests, and CONTEXT.md.feat(chat)— CTA deep link + return-route recording, with destination-level test assertions.Testing
bun checkclean.preview-canvas-perftypecheck error, 4 cross-file isolation failures when the three billing/chat interaction suites run together, and 2app-sidebar.test.tsfailures.🤖 Generated with Claude Code
https://claude.ai/code/session_019AvJNCVneDGm5wbnK7uScT