Repository navigation
feat(prompts): fold Tracked Prompts' usage with Show/Hide on the right, as the Content plan does - #1345
Merged
gkhngyk merged 1 commit intoOct 22, 2026
Conversation
…t, as the Content plan does The usage header gets the Content plan's "What AI cites" fold: the whole bar opens and closes it, and a "Show"/"Hide" button with a chevron sits at its right end, after Plan & usage (which still goes to its page without folding). The arrow left of the title goes. It still opens closed, with the prompt-locations pill while folded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
This was referenced Oct 22, 2026
gkhngyk
approved these changes
Oct 22, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. One optional follow-up:
- Hovering Plan & usage looks like it folds the cards. The bar's
hover:bg-muted/50and the button'sgroup-hover:underlinealso fire while the pointer is on the link (web/src/app/[locale]/(dashboard)/dashboard/prompts/_usage-cards.tsx:276,:317), but the link only goes to its page. To fix it, addhas-[a:hover]:bg-transparentto the bar andgroup-has-[a:hover]:no-underlineto the Show button.
The rest checks out:
- The bar toggles the cards. The button and the link both stop propagation, so a click on either never toggles twice or folds the cards by accident.
aria-expandedandaria-controlsstay on the one real button.showandhideare inen.json.- The tests cover a title click, a button click and a link click.
This merges cleanly on main and with #1333.
Tested on top of main together with #1323: web and server tests, tsc, lint and Prettier pass.
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
From the user: they liked the Content plan's "What AI cites in your topics" fold (#1330), with Show/Hide on the right, and asked for the same on Tracked Prompts, to the right of Plan & usage.
aria-expanded,aria-controls) sits at the bar's right end, after Plan & usage. Its accessible name is "Tracked Prompts: Show" (a visually hidden prefix).prompts.usage.showandhide.Web only.
Related issue
None. Product feedback from the user.
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
/dashboard/prompts/tracked. The Tracked Prompts bar shows "Plan & usage", then "Show ˅" at its right end.Checked in light and dark, at 1280 px and at phone width. To see Plan & usage locally, I ran the preview with
NEXT_PUBLIC_IS_CLOUD=trueand the demo org on Growth, then put both back.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)yarn test: 283 files, 2,496 tests pass.yarn buildpasses with CI's placeholders.🤖 Generated with Claude Code