feat(ui): add prompt workbench wildcard support#9137
feat(ui): add prompt workbench wildcard support#9137AsuraAce wants to merge 7 commits intoinvoke-ai:mainfrom
Conversation
FindingsHigh
The listing endpoint already swallows the same exception via
Medium
The new With multiuser mode enabled ( The pattern is consistent with the pre-existing
i18n is missing entirely from the new prompt workbench
Plurals like
The This will not crash at runtime today (the module imports only Low
The backend
Open Questions
|
Move wildcard helpers out of the API router layer, harden malformed and duplicate wildcard handling, add multiuser auth to wildcard and dynamic prompt utilities, refresh generated API types, and add i18n coverage for the Prompt Workbench and Dynamic Prompts UI.
|
Follow-up update after review feedback:
Validation run locally:
|
Summary
Adds a Prompt Workbench foundation under the positive prompt field for local wildcard workflows and prompt intent diagnostics.
INVOKEAI_ROOT/wildcards, including nested text/JSON/YAML wildcard packs.This is opened as a draft because final UI polish and broader manual QA are still in progress. One known follow-up is a false-positive prompt-weight/wildcard detection case around hyphen-connected words such as
dance-more.View screenshots
Related Issues / Discussions
None.
QA Instructions
Automated checks run locally:
pnpm exec prettier --check src/features/promptWorkbench/PromptInspector.tsx src/features/promptWorkbench/PromptWorkbench.tsx src/features/promptWorkbench/PromptWorkbenchBadge.tsxpnpm exec eslint src/features/promptWorkbench/PromptInspector.tsx src/features/promptWorkbench/PromptWorkbench.tsx src/features/promptWorkbench/PromptWorkbenchBadge.tsxpnpm test:run src/features/promptWorkbench/occurrences.test.ts src/features/promptWorkbench/diagnostics.test.tspnpm test:run src/features/promptWorkbench/occurrences.test.ts src/features/promptWorkbench/diagnostics.test.ts src/features/ui/layouts/navigation-api.test.tspnpm lint:tscBrowser smoke at
http://127.0.0.1:5174/app:__camand confirm wildcard autocomplete appears with local wildcard matches.__camera/shot__and confirm the Prompt intent panel appears with a wildcard row.Additional reviewer QA recommended before marking ready:
dance-morefalse-positive edge case.Merge Plan
Draft PR. Do not merge until the remaining UI polish, manual QA, and known hyphenated-word false positive are resolved.
Checklist
What's Newcopy (if doing a release after this PR)