Repository navigation
feat(prompts): put the Tracked/Suggestions switch above the date range - #1008
Merged
Merged
Conversation
The list switch came after the date range and location filters, so users picked a period before choosing which list they were looking at. The Prompts page now reads from general to specific: section tabs, list switch, date range + location, then the table. The switch only renders on the Prompts tab, so Query Fan-out keeps the date range right under the section tabs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
8 of 12 tasks
Collaborator
Author
|
@gkhngyk this is ready for review too. Could you approve the CI workflows here as well so the checks can run? |
This was referenced Oct 13, 2026
The switch now sits directly in the Tabs root, a flex column, which stretched it across the page. w-fit keeps it to its buttons, as TabsList does.
gkhngyk
approved these changes
Oct 13, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, thanks. I pushed one fix: the switch now sits in the Tabs root, a flex column, so it stretched across the page; w-fit keeps it to its buttons.
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
On the Prompts page the controls read, top to bottom: section tabs → date range + location → Tracked Prompts / Prompt Suggestions → table. Users picked a period before choosing which list they were looking at. This PR moves the list switch up so the page goes from general to specific:
Only the order changes. The switch keeps its existing segmented-control style, which already reads as secondary to the section tabs. State and URL params (
?tab=,?view=,?range=) are unchanged, so existing links keep working, and the selected range and location stay put when switching lists.Related issue
None. Product task PROMPT-010 ("Top-down order: section tabs → list switch → date range").
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
range=7d.Notes for reviewers
prompts/page.tsxbut in different places, so they merge cleanly in either order.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)yarn test(466 passed) andyarn build(with the CI placeholder env) also pass.🤖 Generated with Claude Code