Repository navigation
feat(brands): the brand's Prompts tab opens the Prompts page - #2474
Merged
gkhngyk merged 4 commits intoNov 17, 2026
Merged
Conversation
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
Bring the last features of the brand's Manage prompts page into the Prompts page, and take the Manage prompts links away: - Prompt Suggestions: By topic picks some of the brand's topics and the brand page's generation call writes 5 prompts for each. They are listed at the top of the suggestions, grouped by topic, ticked and editable, with Add selected (saved under their topic, with the plan's engines and the brand's location, as Add prompt's list saves them), Regenerate and Dismiss. Admins and managers; the plan guard as before. - Every suggestion's text can be edited before it is added (pencil, Enter keeps it, Esc drops it); + and Add All save the edited text. acceptSuggestion and trackSuggestions take the edited text. - Tracked Prompts: Track now, in the status line and the bulk bar, for the active prompts with no answers yet, read and started with the brand page's own API calls; the run is saved as the brand's tracking job and the line links to Visibility. No navigation away. - Manage prompts leaves the "..." menu (which now shows on the Prompts tab only) and the empty state; a member's empty state says whom to ask. - The brand card's prompts row opens Tracked Prompts for that brand; the mobile menu's second Prompts link goes, the menu's own Prompts item opening the page. - Help: Add prompts, Prompt Suggestions and Tracked Prompts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
The Prompts tab in a brand's settings area opened the brand's old Manage prompts page, the last link to it. It now picks that brand and opens Tracked Prompts, as the brand card's prompts row does. - lib/brand-prompts-link.ts holds what both use: Tracked Prompts' address and the pick as the link opens. A click picks the brand (a Ctrl/Cmd click too: the new tab reads the pick the browser keeps), and so does a middle click, which fires auxclick, not click. - The tab keeps its label and place, with a small arrow and an "Opens the Prompts page" description, as Topics and Settings stay in the area. - The tab is marked only on the old page's own address, for someone who lands there. The old page stays until it is deleted. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
previously approved these changes
Nov 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good: the tab sets the brand and opens Tracked Prompts, no redirect loop, old route still renders.
cihan-gyk
dismissed
gkhngyk’s stale review
November 17, 2026 18:05
The merge-base changed after approval.
gkhngyk
pushed a commit
that referenced
this pull request
Nov 18, 2026
The "Add at least 3 topics" and "Add 3 prompts per topic" steps open the Prompts page (Topics, Prompt Suggestions), whose address names no brand. They now pick the card's brand as they open, as #2474's links to the Prompts page do: on a click (a Ctrl/Cmd click too, so a new tab reads the pick this browser keeps) and on a middle click. Steps on other pages are unchanged. - lib/getting-started/steps.ts takes the two steps' addresses from lib/prompts-routes.ts (sectionFor), so they follow the Prompts page's routes. The addresses are the same as before. - How a step is marked done is unchanged: topics and prompts are counted from the brand's data (getting_started_facts), wherever they were added, and no page visit counts. Tests say so. - No set-up step, Help article, onboarding landing or in-repo email opened the brand's old Manage prompts page; nothing else changes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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
The Prompts tab in a brand's settings area (beside Topics and Settings) still opened the brand's old Manage prompts page. It was the last link to that page. It now picks that brand and opens Tracked Prompts on the Prompts page, the same way the brand card's prompts row does since #2473.
The old page stays (it is deleted later). Nothing in the app links to
/dashboard/brands/[id]/promptsany more.Changes
web/src/lib/brand-prompts-link.ts, shared by the tab and the brand card: Tracked Prompts' address, plus picking the brand as the link opens. The brand card used to do this inline.brands/[id]/layout.tsx) picks brand[id]and opens/dashboard/prompts/tracked. It keeps its label and position. A small ↗ arrow shows that it leaves the brand settings area, with an "Opens the Prompts page" description (aria-describedby, and a tooltip). Topics and Settings don't change.auxclick, notclick). The right-click menu's "Open in new tab" doesn't pick the brand: that tab opens Tracked Prompts for whichever brand was already picked.en.json:brands.opensPromptsPage.How to test
/dashboard/brands/<id>/promptsdirectly: the old page still loads, and its Prompts tab is marked.Checks
npx tsc --noEmit -p .: clean.brands/[id]tests (old prompts page included), brand card,brand-prompts-link, the prompts folder,src/lib/help,src/i18n,use-server-exports,brand-path,prompts-routes, mobile nav, brand switcher: 36 files, 402 tests, all pass.git merge-treewithfeat/prompts-work-improving-link(feat(prompts): show a tracked Improve action under the Work chip #2471): no conflicts.Generated by Claude Code