Repository navigation
feat(prompts): manage prompts in one place, on the Prompts page - #2473
Merged
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
This was referenced Nov 17, 2026
gkhngyk
previously approved these changes
Nov 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Minor: _topic-prompts.tsx addSelected sends the topic name though item.topicId is there; passing topicId would survive a rename between generating and adding.
cihan-gyk
dismissed
gkhngyk’s stale review
November 17, 2026 18:04
The merge-base changed after approval.
This was referenced Nov 17, 2026
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
People now manage prompts in one place: the Prompts page. The three features only the brand's Manage prompts page had are moved in, and the Manage prompts links are gone.
Changes
Prompt Suggestions
generatePromptsFromTopics), so the same limits, batching and day limit apply. Admins and managers only; a read-only plan opens the upgrade dialog.importPrompts, the call Add prompt's list uses. Each prompt goes under the topic it was written for, with every engine the plan allows and the brand's location. Past the plan's limit, the rest wait for a spot (the usual toast). Duplicates are skipped and counted.importPromptsstarts a first tracking run when it can, prompts added this way start tracking at once, as prompts added with Add prompt already do. The old page only saved them.acceptSuggestiontakes an optionaltext, andtrackSuggestionstakes optionaltextsby id. Both are checked on the server (1 to 500 characters) after the plan guard.Tracked Prompts
GET /api/tracking/unanalyzed/:brandIdto find the prompts, andPOST /api/tracking/analyze-newto start them. The read only runs for admins and managers, and only when the table has an active prompt with no answers in its window. No new server action, noprompt_resultsscan of our own.Manage prompts removed
Other links
/dashboard/brands/[id]/promptsis unchanged. The Prompts page has no way to open for a given brand (no brand search param or redirect pattern), so there is no redirect. The brand layout's own Prompts tab still links to it.Help
approved-articles.json.Moved, not changed
useAllowedEnginesandbrandLocationmoved frompage.tsxto_prompt-defaults.ts, so Generate by topic uses the same defaults.How to test
Checks
npx tsc --noEmit -p .inweb/: clean.src/lib/help,src/i18n,use-server-exports,subscription-guardand its coverage test,prompt-suggestions,track-now,components/promptsand Today._topic-prompts.test.tsx,track-now.test.tsandbrand-card.test.tsx. New cases in_suggestions-card,page,_bulk-action-bar,prompt-suggestionsandmobile-nav.git merge-treeagainst feat(prompts): show a tracked Improve action under the Work chip #2471, 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: no conflicts. Regenerateapproved-articles.jsonafter merging, since feat(prompts): show a tracked Improve action under the Work chip #2471 also changes Tracked Prompts' help.Generated by Claude Code