Skip to content

feat(prompts): simplify the Prompts page header - #2472

Merged
gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:feat/prompts-header-simplify
Nov 17, 2026
Merged

gkhngyk merged 2 commits into
ansvisor:mainfrom
cihan-gyk:feat/prompts-header-simplify

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The top of Prompts › Tracked Prompts is simpler. It follows the mockup the owner approved. The table, its columns, its row icons, the positions panel and the bulk actions do not change.

Changes

  • Title row: the title says "Prompts" and nothing else. The subtitle sentence is gone. The AI meter and Ask Chat stay at the right.
  • Tabs row: the tabs are the same. At the right there is + Add prompt and a ⋯ button named "More actions". The menu holds:
    • Export CSV, which downloads the same file as before. With no prompts it is disabled and says why.
    • Manage prompts, the same link to the brand's prompt page. It stays because two features exist only there: AI Generate by topic, and Analyze Prompts (track prompts with no results now). A follow-up can move those here and then drop the link.
    • Plan & usage, the same link to billing. It is hidden on self-hosted, as before.
    • Show usage / Hide usage, which opens and folds the usage cards. This is what the old Show ⌄ did. When prompt locations are nearly or fully used, the item says so in amber or red, as the folded card did.
  • Query Fan-out and Insights: before, the only header button on these tabs was Manage prompts. Add prompt and Export CSV were shown on the Prompts tab only. Manage prompts is now in the same ⋯ menu, so nothing is lost. Topics keeps its own buttons (Add Topic, Export CSV, Manage topics).
  • Switch row: Tracked | Suggestions is now one compact switch, at the left. Tracked shows its count (Active + New). Suggestions has no count, because none can be shown without a new read. The switch items are links with aria-current="page" inside a labelled nav. A plain click moves the page in place, as the old sub-tabs did. The date range sits at the right of the same row, with no "Date Range" label. The group keeps that name for screen readers.
  • Tracked Prompts card: removed. The usage cards open from ⋯ › Show usage, and their footer has a Hide button.
  • Location: the filter has no label now. It sits in the table's filter row after All work. It is the same select with the same URL param (region).
  • Prompt locations near the limit: the warning stays in sight. When the plan's prompt locations are nearly used (amber) or fully used (red), the table card's status line says "● 46 / 50 prompt locations used · Plan & usage". The link goes where Plan & usage goes. The line is hidden well under the limit, and when the plan has no limit. The ⋯ menu also keeps its copy.
  • Not-analyzed banner: replaced by one quiet line in the table card, under the filter row, at the right of the count: "● 1 prompt not analyzed yet · Analyze". When both lines apply, both show and they wrap. The text handles plurals. Analyze runs the same volume analysis as before. While a run is going, the line shows its progress. When the monthly limit is used up, it says "Monthly limit reached". Members see the count but no Analyze. The line is hidden when nothing needs analysis.
  • Strings: the new and moved strings are in web/messages/en.json, under prompts.header. Keys that nothing uses any more were removed (prompts.usage.title, subtitle, subtitleReadOnly, show).
  • Help: tracked-prompts.md gets a new section, "Where the page's actions are". It also says where the locations warning shows. prompt-suggestions.md, add-prompts.md and prompt-insights.md were updated to match. The approved articles were regenerated.
  • Unchanged: URL and search-param names, and the props that feed Chat's page context. fix(chat): read the page's view: tab, sort, search and the rows on screen #2463 and feat(chat): give Chat the page context on every page, the pages of one item included #2470 merge cleanly with this branch.

How to test

  1. Open Prompts › Tracked Prompts as an admin.
  2. Check the header: only "Prompts" with the AI meter and Ask Chat; then the tabs with + Add prompt and ⋯.
  3. Open ⋯. Check that Export CSV downloads the file, Manage prompts opens the brand's prompt page, and Plan & usage opens billing.
  4. Click Show usage. The usage cards open. Click a brand card and check that it filters the table. Close the cards with Hide, or with ⋯ › Hide usage.
  5. Click Suggestions and then Tracked. Check that the route changes in place (/dashboard/prompts/suggestions and back). Ctrl-click should open the view in a new tab.
  6. Change the date range, and try Custom. Then do the same on Topics and Query Fan-out.
  7. On a brand tracked in more than one location, change Location in the table's filter row. The table reloads for that place, and the URL gets ?region=.
  8. Add a prompt that has no volume yet. The quiet line appears; Analyze starts the volume analysis.
  9. On an account at 90% or more of its prompt locations, check the amber line in the table card. At or past the limit, check the red line. Plan & usage in that line opens billing.
  10. Sign in as a member. ⋯ shows Export CSV, Manage prompts and Show usage. The line has no Analyze.
  11. At phone width, the rows wrap and the page does not scroll sideways.

Checks


Generated by Claude Code

The owner's simpler header for Prompts › Tracked Prompts:

- Title only: the subtitle sentence is gone; the AI meter and Ask Chat
  stay at the right.
- Beside the tabs: Add prompt and a "…" (More actions) menu with Export
  CSV, Manage prompts, Plan & usage and Show usage. Query Fan-out and
  Insights keep Manage prompts in "…"; Topics keeps its own buttons.
- Tracked | Suggestions is one compact switch (links with
  aria-current, same routes and in-place move as the old sub-tabs),
  Tracked with its count, and the date range at the right of the same
  row without its label.
- The Tracked Prompts card is gone. Its Show opened the usage cards;
  "…" › Show usage opens them now, with Hide to fold them, and says
  when the prompt locations are nearly or fully used.
- Location moves into the table's filter row, with no label.
- The not-analyzed banner is one quiet line under the filter row:
  "● 1 prompt not analyzed yet · Analyze", which runs the same volume
  analysis.

Help: tracked-prompts, prompt-suggestions, add-prompts and
prompt-insights updated; approved articles regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
The folded usage cards used to say "46 / 50 prompt locations" in amber
or red in the Tracked Prompts bar; with the bar gone that warning was
only inside the "…" menu. The table's status line now also says
"● 46 / 50 prompt locations used · Plan & usage" when the plan's prompt
locations are nearly (amber) or fully (red) used, beside the
not-analyzed line, wrapping when both show. Plan & usage goes where the
menu's does. The menu keeps its copy.

Help: tracked-prompts says where the warning shows. Its last "Export
CSV downloads the list" line is back as it was (the new section says
where Export CSV is), which keeps it clear of ansvisor#2471's paragraph next to
it. Approved articles regenerated.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9

@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.

Looks good: Export, Manage and Plan & usage moved to the menu and Location to the filter row with nothing lost.

@gkhngyk
gkhngyk merged commit 733a3bc into ansvisor:main Nov 17, 2026
13 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.

3 participants