Skip to content

Query Fan-out: open on the 'By prompt' view by default - #453

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
Dodothereal:fix/445-query-fan-out-open-on-the-by-prompt-view
Jul 17, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
Dodothereal:fix/445-query-fan-out-open-on-the-by-prompt-view

Conversation

@Dodothereal

Copy link
Copy Markdown
Contributor

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

  • Changed initial state of view in useState from 'frequency' to 'by-prompt' in web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx.
  • Swapped the order of the toggle buttons in the card header so that the "By prompt" button is first, updating the conditional class names accordingly.

Testing

  • Ran yarn lint in the web/ directory: produced 9 warnings (all pre-existing, no new errors introduced).
  • Ran yarn typecheck in the web/ directory: succeeded with no errors.
  • Ran yarn format:check in the web/ 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 Code trailer.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@gkhngyk
gkhngyk merged commit 4a12040 into ansvisor:main Jul 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query Fan-out: open on the "By prompt" view by default

2 participants