Repository navigation
feat(prompts): add every listed suggestion at once with Add All - #1299
Conversation
Prompt Suggestions gets an Add All button between New and Clear All. It tracks every suggestion on screen through trackSuggestions, 25 a call, so each prompt passes the same plan check as a single add. What was added leaves the list. When the plan's prompt limit stops the run, a note says how many couldn't be added and how to make room: upgrade (or contact us), or pause that many tracked prompts and try again, with a link to Tracked Prompts and the page's own limit actions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk A small product request from today: Add All on Prompt Suggestions, between New and Clear All. It's from main and independent of the open stacks. It reuses One thing worth a look: each add re-reads the plan and usage. Against the hosted dev DB, 11 adds took ~7.5 s. If you'd like Add All faster on big lists, a follow-up could read the usage once per call and insert the room that's left in one go. |
gkhngyk
left a comment
There was a problem hiding this comment.
Looks good. Add All goes through trackSuggestions in batches of 25, so each prompt passes the same plan check as a single add, and the limit note keeps what's left on the list.
Summary
Prompt Suggestions gets an Add All button, between New and Clear All. It adds every suggestion on the list to Tracked Prompts, and the added ones leave the list. Like Clear All, it acts on what's listed, so a source filter or search narrows it.
How it adds (
_suggestions-card.tsx)trackSuggestions(Insights › Opportunities' "Track N"), in calls of up to 25.addPromptToSet, so it passes the same plan check as the single +.onAccepted).When the prompt limit stops it, an amber note sits above the list. Example: 25 listed, 10 slots left.
PromptLimitActions(Starter: Upgrade plan + Contact us; others: Contact us). These are passed down throughSuggestionsTabaslimitActions.Other errors show as a toast; whatever was added stays added. All copy is in
en.json(prompts.suggestions.*).Related issue
Product request (2026-10-21). No issue.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
NEXT_PUBLIC_IS_CLOUD=true, put an organization on Starter (50 prompt locations) with 40 in use, and have 25 suggestions listed.Checked locally with the demo organization on Starter, 15 temporary filler prompts and 25 temporary suggestions, all removed afterwards and the plan set back. Checked in light and dark, and at 1024 px, where the note's buttons sit under the text.
Speed: the first call (11 adds, the 11th hitting the limit) took about 7.5 s against the hosted dev database. Each add reads the plan and usage again on its own. It's the same path as Opportunities' Track N.
Tests:
_suggestions-card.test.tsx(new, 7 tests) checks:Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/) (0 errors; the 6 warnings are in untouched files, as on main)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Web:
yarn test(1,915 tests) andyarn buildpass. Web only, no migration, no new dependency.🤖 Generated with Claude Code