Repository navigation
feat(prompts): fold the Tracked Prompts usage cards under their title - #1130
Merged
gkhngyk merged 2 commits intoOct 17, 2026
Merged
Conversation
The Tracked Prompts usage cards now fold under their title with a chevron, as the sidebar's Prompts item does. They open closed every time, so the table sits right under the controls, and open only on the reader's click. Folded, the title shows a short amber or red note when the plan's prompt locations are nearly or fully used. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk a small Prompts change: the Tracked Prompts usage cards fold under their title with a chevron (like the sidebar), closed every time the page opens, so the table sits right under the controls; folded, the title still warns in amber/red when prompt locations are nearly or fully used. Web only, from main. |
gkhngyk
approved these changes
Oct 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Rebuilt on main: the usage-cards tests, typecheck, lint and format pass, and CI is green. The cards stay mounted while folded, so opening them shows the counts at once.
This was referenced Oct 21, 2026
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.
Summary
The Tracked Prompts usage cards fold under their title, so the table sits right under the controls. The section's title row ("Tracked Prompts" · "Every tracked prompt for this brand · edit or pause any row in place" · Plan & usage) stays. A chevron before the title, the same as the sidebar's Prompts item, opens and closes the brand and account cards and their footer.
Changes
prompts/_usage-cards.tsx:buttoninside theh2, witharia-expandedandaria-controls.-90°when closed, as incomponents/layout/sidebar.tsx.hiddenwhile closed, and the header drops its bottom border.messages/en.json:prompts.usage.collapsedLocations.prompts/_usage-cards.test.tsx:Related issue
None.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 7 warnings are in files this PR does not touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
web:yarn test(1252) andyarn buildpass.Known, unchanged here:
🤖 Generated with Claude Code