mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4230] [MERGED] Rework the background picker into a Background Library modal #6292
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#6292
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/4230
Author: @Gunterlie
Created: 7/28/2026
Status: ✅ Merged
Merged: 7/28/2026
Merged by: @SpicyMarinara
Base:
staging← Head:background-library-modal📝 Commits (3)
fafd5f9Rework the background picker into a Background Library modald650533Address CodeRabbit review on the Background Library modal133e1d0Merge branch 'staging' into background-library-modal📊 Changes
18 files changed (+1257 additions, -758 deletions)
View changed files
📝
e2e/core-flows.e2e.ts(+150 -65)📝
packages/client/src/components/panels/CharactersPanel.tsx(+1 -2)📝
packages/client/src/components/panels/PersonasPanel.tsx(+1 -2)📝
packages/client/src/components/panels/SettingsPanel.tsx(+3 -12)📝
packages/client/src/components/panels/settings/BackgroundPicker.tsx(+873 -573)📝
packages/client/src/lib/background-library.ts(+1 -3)📝
packages/client/src/localization/locales/en.json(+35 -1)📝
packages/client/src/localization/locales/ko.json(+1 -1)📝
packages/server/src/db/seed-backgrounds.ts(+1 -1)📝
packages/server/src/routes/backgrounds.routes.ts(+49 -67)📝
packages/server/src/routes/game-assets.routes.ts(+11 -2)📝
packages/server/src/routes/generate.routes.ts(+2 -3)📝
packages/server/src/routes/generate/retry-agents-route.ts(+3 -11)📝
packages/server/src/services/agents/agent-executor.ts(+2 -3)📝
packages/server/src/services/background-library-organization.ts(+39 -2)📝
packages/server/src/services/game/game-asset-generation.ts(+6 -6)➕
packages/server/src/services/image/image-thumbnail.ts(+75 -0)📝
packages/server/src/services/mari-db/mari-images.service.ts(+4 -4)📄 Description
Linked issue
Closes #
Why this change
What changed
PATCH /api/backgrounds/favorite, persisted inorganization.json. A rename carries the star to the new id; deletes drop it.pruneBackgroundLibraryOrganizationdrops assignments and favorites for backgrounds that no longer exist, called on the write paths so listing stays read-only.services/image/image-thumbnail.tsout ofbackgrounds.routes.tsand reused it ingame-assets.routes.ts, so game-asset grids can request?w=320instead of the full-size original.e2e/core-flows.e2e.tsto cover the modal, favorites, the non-drag move, folder rename/delete, and that cards request the cached thumbnail (?w=320) withloading="lazy".en.json;ko.jsontouched for one key.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Needs manual verification in a real browser — nothing below has been confirmed by a human yet:
?w=320thumbnails (Network tab) and still render correctly.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.