mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8905] [MERGED] perf(characters): filters and folders that work in large libraries #8874
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8874
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8905
Author: @Gunterlie
Created: 11/6/2026
Status: ✅ Merged
Merged: 11/6/2026
Merged by: @Gunterlie
Base:
staging← Head:perf/feel-2-large-libraries📝 Commits (6)
3d5ab9aperf(characters): filter tags and folders on the server for large libraries715d86cfix(characters): complete filtered folders and stop auto-load loops92f4f9afix(client): show folder members loading and error statea785716fix(client): show folder load status above the folder list075d4c9fix(client): show folder load status inside the opened folder0c6bd14fix(client): render folder load status only in the open folder📊 Changes
11 files changed (+301 additions, -57 deletions)
View changed files
📝
packages/client/src/components/characters/CharacterLibraryView.tsx(+15 -1)📝
packages/client/src/components/panels/CharactersPanel.tsx(+55 -18)📝
packages/client/src/components/panels/LorebooksPanel.tsx(+1 -0)📝
packages/client/src/components/panels/PanelLoadMoreBar.tsx(+44 -12)📝
packages/client/src/components/panels/PersonasPanel.tsx(+1 -0)📝
packages/client/src/hooks/use-characters.ts(+87 -24)📝
packages/client/src/localization/locales/en.json(+3 -0)📝
packages/server/src/routes/characters.routes.ts(+11 -0)📝
packages/server/src/services/storage/character-catalog.ts(+54 -1)📝
packages/shared/src/types/character-catalog.ts(+4 -0)📝
scripts/regressions/card-tag-search-pages.regression.ts(+26 -1)📄 Description
Part of #8904.
Why
A user on Discord reported that the character library loads 100 cards per page, needs many "Load more" clicks, and that filters seem to miss cards. Text search already ran on the server, but tag chips, excluded tags, folder contents and counts only looked at the pages already loaded. In a large library this looks broken: a tag filter shows a handful of cards, a folder that says 40 shows 12, and folder members use up root page slots.
What changed
tag/excludeTag(repeatable, case-insensitive; cards with more matching tags rank first, the same order the panel already used) andfolder=<id>|none|any, and returnstotalandfavoriteFolderIds(folders holding a matching favourite, for the favourite sort).GET /api/characters/catalog/tagslists every tag, so the filter chips do not depend on loaded pages.Personas have the same folder problem; that is a follow-up.
Proof
card-tag-search-pagesregression extended: tag OR filter with totals, ranking by match count, excluded tags,folder=none,folder=<id>,folder=any, favourite folders and the tag list.Manual verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.