Repository navigation
feat: find images from Prompt Library cards - #587
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 89485e7894
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8744184c1a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af4c7be931
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Adds a Find images action to each Prompt Library card's context menu and opened details. The action opens the image library with a dedicated Prompt scope, clears previous filters and folder/visual-search scope, and resets pagination and scroll. The Prompt filter chip can be cleared, and Back returns to Prompt Library.
Uses the positive prompt, falling back to negative text when positive text is empty. Blocks use their text. Templates use compiled values; missing required values or an empty compiled query open details for completion.
The Prompt scope matches every whitespace-delimited query term, case-insensitively, against the full positive and negative image prompts. This finds blocks anywhere in long prompts, including beyond the general search's 8,192-character compact metadata budget. It excludes filename-only matches, preserves zero-result scopes during hydration, and resolves results from the current image set. General metadata search retains its existing behavior.
Validation:
npx vitest run __tests__/PromptLibrary.test.tsx __tests__/useImageStore.filters.test.ts __tests__/imageScope.test.ts— 66 tests passed.git diff --checkpassed.