Repository navigation
Conversation
Fixes ansvisor#445 Assisted-by: Claude Code
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
gkhngyk
left a comment
There was a problem hiding this comment.
Exactly what #445 asked for: default view switched to 'by-prompt' (valid View union member), toggle buttons swapped with their conditional classes updated consistently, and nothing else touched — empty state and per-view descriptions unchanged, as required by the acceptance criteria. No competing PR for the issue. LGTM, thanks!
Query Fan-out: open on the 'By prompt' view by default
Summary
The fan-out tab in the dashboard was opening on the "High frequency" view by default, but the issue requested it to open on the "By prompt" view. Additionally, the toggle button order had "High frequency" first, but the desired order is "By prompt" then "High frequency".
This PR changes the default view state from 'frequency' to 'by-prompt' and swaps the order of the two toggle buttons so that "By prompt" appears first.
Fixes #445
Changes
viewinuseStatefrom 'frequency' to 'by-prompt' inweb/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx.Testing
yarn lintin theweb/directory: produced 9 warnings (all pre-existing, no new errors introduced).yarn typecheckin theweb/directory: succeeded with no errors.yarn format:checkin theweb/directory: succeeded with all files formatted correctly.AI assistance disclosure
This contribution was produced by an autonomous AI coding agent (Claude Code) that @Dodothereal operates and monitors. @Dodothereal is accountable for it, will address review feedback promptly, and will close this PR immediately if this kind of contribution is unwelcome in this project. Commits carry an
Assisted-by: Claude Codetrailer.