Skip to content

feat: find images from Prompt Library cards - #587

Merged
LuqP2 merged 5 commits into
mainfrom
feat/prompt-library-find-images
Oct 13, 2026
Merged

LuqP2 merged 5 commits into
mainfrom
feat/prompt-library-find-images

Conversation

@LuqP2

@LuqP2 LuqP2 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

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.
  • Regression coverage includes full long prompts, standalone blocks beyond the positive/negative indexed prefix, filename-only nonmatches, hydration, clearing the scope, and optional-only template completion.
  • git diff --check passed.
  • Initial card actions were manually tested and approved by the maintainer. Review fixes and the dedicated Prompt scope were validated with automated tests; updated UI acceptance remains manual.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T02:22:43.169583Z 7ba5c35 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread App.tsx Outdated
Comment thread components/PromptLibrary.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread App.tsx Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread utils/imageScope.ts Outdated
Comment thread components/promptLibrary/PromptLibraryBrowser.tsx Outdated
@LuqP2
LuqP2 merged commit 5c28e53 into main Oct 13, 2026
1 check passed
@LuqP2
LuqP2 deleted the feat/prompt-library-find-images branch October 13, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant