[PR #4302] [MERGED] fix: align sidebar character and persona search results #6326

Closed
opened 2026-10-23 04:09:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4302
Author: @SpicyMarinara
Created: 7/30/2026
Status: ✅ Merged
Merged: 7/30/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/4299-sidebar-library-search-parity


📝 Commits (2)

  • 5b8a95b fix: align sidebar library search results
  • f3930ee Merge remote-tracking branch 'origin/staging' into fix/4299-sidebar-library-search-parity

📊 Changes

9 files changed (+269 additions, -105 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+54 -0)
📝 package.json (+2 -1)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+19 -59)
📝 packages/client/src/components/panels/CharactersPanel.tsx (+31 -32)
📝 packages/client/src/components/panels/PersonasPanel.tsx (+30 -13)
➕ packages/client/src/lib/card-library-search.ts (+70 -0)
📝 packages/server/src/services/storage/characters.storage.ts (+2 -0)
➕ scripts/regressions/card-library-search.regression.ts (+60 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository’s staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #4299

Why this change

  • The right-side Character and Persona panels performed a narrower second client-side search after the server had already returned valid matches. Creator/author matches—and several other fields searchable in the full libraries—were therefore discarded.

What changed

  • Added one shared card-library query parser and matcher for names, titles, creator/version metadata, creator notes, profile sections, and tags.
  • Reused those semantics in the full libraries and both responsive side panels, including Unicode-safe matching and excluded-tag queries.
  • Expanded paginated Persona storage search to include creator notes and persona version, matching the metadata shown by the library.
  • Added focused regression coverage plus desktop and mobile Playwright coverage for creator-only matches.
  • Documented the fix in the Unreleased changelog.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated evidence:

  • pnpm check
  • pnpm regression:card-library-search
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep "Character and Persona sidebars find cards by creator"
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=mobile-chromium --grep "Character and Persona sidebars find cards by creator"

pnpm regression:issues reaches an unrelated pre-existing stale assertion first: the folder migration now returns favorites: [], while open-issues.regression.ts still expects only folders and assignments. The dedicated #4299 regression passes independently.

Manual verification notes

  • Manually verify that searching a creator/author unique to a card finds that Character in the right panel and full Character Library.
  • Manually verify the same creator-only search in the Persona right panel and full Persona Library.
  • Manually verify ordinary name, profile-field, tag, and excluded-tag searches still filter correctly.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Behavior-only search-predicate correction; no visual design changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4302 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/30/2026 **Status:** ✅ Merged **Merged:** 7/30/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/4299-sidebar-library-search-parity` --- ### 📝 Commits (2) - [`5b8a95b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5b8a95b97a08e34279b4b2009c6022cfdb7dfabb) fix: align sidebar library search results - [`f3930ee`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3930ee6d8f429fcfa417cd504dacd8afba5afaa) Merge remote-tracking branch 'origin/staging' into fix/4299-sidebar-library-search-parity ### 📊 Changes **9 files changed** (+269 additions, -105 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+54 -0) 📝 `package.json` (+2 -1) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+19 -59) 📝 `packages/client/src/components/panels/CharactersPanel.tsx` (+31 -32) 📝 `packages/client/src/components/panels/PersonasPanel.tsx` (+30 -13) ➕ `packages/client/src/lib/card-library-search.ts` (+70 -0) 📝 `packages/server/src/services/storage/characters.storage.ts` (+2 -0) ➕ `scripts/regressions/card-library-search.regression.ts` (+60 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository’s `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #4299 ## Why this change - The right-side Character and Persona panels performed a narrower second client-side search after the server had already returned valid matches. Creator/author matches—and several other fields searchable in the full libraries—were therefore discarded. ## What changed - Added one shared card-library query parser and matcher for names, titles, creator/version metadata, creator notes, profile sections, and tags. - Reused those semantics in the full libraries and both responsive side panels, including Unicode-safe matching and excluded-tag queries. - Expanded paginated Persona storage search to include creator notes and persona version, matching the metadata shown by the library. - Added focused regression coverage plus desktop and mobile Playwright coverage for creator-only matches. - Documented the fix in the Unreleased changelog. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated evidence: - `pnpm check` - `pnpm regression:card-library-search` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep "Character and Persona sidebars find cards by creator"` - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=mobile-chromium --grep "Character and Persona sidebars find cards by creator"` `pnpm regression:issues` reaches an unrelated pre-existing stale assertion first: the folder migration now returns `favorites: []`, while `open-issues.regression.ts` still expects only `folders` and `assignments`. The dedicated #4299 regression passes independently. ### Manual verification notes - Manually verify that searching a creator/author unique to a card finds that Character in the right panel and full Character Library. - Manually verify the same creator-only search in the Persona right panel and full Persona Library. - Manually verify ordinary name, profile-field, tag, and excluded-tag searches still filter correctly. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Behavior-only search-predicate correction; no visual design changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:22 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6326
No description provided.