mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2361] [MERGED] Add persona and global image galleries #5564
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#5564
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/2361
Author: @kolacheee
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/7/2026
Merged by: @SpicyMarinara
Base:
refactor← Head:feat/persona-global-galleries📝 Commits (10+)
d33a2c7Add persona and global image galleries8d1ca46Validate global gallery folder refs and roll back failed lightbox moves38efb0fGuard lightbox move rollback against superseding moves7ea7825Document intentional partial-success-as-failure in gallery uploadsc409dccAddress gallery review feedbackba86773Clear gallery rows before deleting their files on purge9dd00baName the files and reasons when gallery uploads partially fail696f0d9Stop exporting RIGHT_PANEL_BUTTONS0467ed5Add Gallery to the mobile tools navad511deResolve gallery upload folder before persisting bytes📊 Changes
33 files changed (+1560 additions, -61 deletions)
View changed files
📝
scripts/check-discovery-metadata.mjs(+1 -0)📝
src-tauri/src/commands/storage/admin.rs(+39 -1)📝
src-tauri/src/commands/storage/commands/entities.rs(+176 -3)📝
src-tauri/src/commands/storage/commands/media.rs(+18 -0)📝
src-tauri/src/commands/storage/contracts.rs(+32 -1)📝
src-tauri/src/commands/storage/shared.rs(+51 -0)📝
src-tauri/src/http_dispatch.rs(+20 -0)📝
src-tauri/src/lib.rs(+2 -0)📝
src/app/shell/PanelNavButtons.tsx(+10 -2)📝
src/app/shell/RightPanel.tsx(+6 -1)📝
src/engine/capabilities/storage.ts(+3 -0)📝
src/features/catalog/characters/components/CharacterGalleryTab.tsx(+6 -0)📝
src/features/catalog/characters/hooks/use-characters.ts(+3 -20)➕
src/features/catalog/gallery/components/GlobalGalleryPanel.tsx(+604 -0)📝
src/features/catalog/gallery/hooks/use-gallery.ts(+4 -31)➕
src/features/catalog/gallery/hooks/use-global-gallery.ts(+149 -0)📝
src/features/catalog/gallery/index.ts(+1 -0)📝
src/features/catalog/gallery/query-keys.ts(+6 -0)➕
src/features/catalog/gallery/shell.ts(+1 -0)📝
src/features/catalog/personas/components/editor/PersonaEditor.tsx(+5 -0)...and 13 more files
📄 Description
Linked issue
Closes #2360 (partially).
This is the first PR in a planned series implementing that feature request. It delivers the gallery foundations only (persona galleries + a global gallery panel) — the management surface the rest of the feature builds on. Emoji/sticker tagging, the Conversation-mode selectors, and AI reactions follow in later PRs, so this PR intentionally does not close the request.
Why this change
What changed
persona-gallerystorage collection +persona_gallery_uploadcommand, with cascade-delete when a persona is removed, plus expunge, profile-export, and remote-runtime wiring.global-gallerycollection plus a flatgallery-folderscollection. Supports sorting (newest/oldest/name asc/desc), create/rename/delete folders (deleting a folder re-files its images to the root rather than deleting them), uploading into a folder, and moving images by dragging onto a folder chip or via a lightbox picker.src-tauri/src/lib.rs, the HTTP dispatcher, and the remote-runtime allowlist.Refactor impact
Primary owner: catalog (galleries) and Rust storage.
Impact areas reviewed:
contracts.rscollections + cleanup enum,entities.rscleanup wiring,shared.rsupload helper,media.rscommands,admin.rsexpunge scopes)storage-api.tsinvalidation,image-generation-api.tsupload surface)RightPanel.tsx,PanelNavButtons.tsx) — added the Gallery panel entrystorage.tsentity-name union)Boundary notes:
src/engine/capabilities/storage.ts) gained the new collection names.uploadPersona/uploadGlobalsurfaces.catalog/galleryandcatalog/personas.DeletePersonaGallery/ClearGalleryFoldercleanups, and a global-gallery upload helper.persona_gallery_uploadandglobal_gallery_uploadto the allowlist + HTTP dispatch.Pressure points touched:
src-tauri/src/lib.rscommand registration — added the two upload commands. ModeSurface, GameSurface, shared mode UI, and import modules are untouched; nothing touches the RP/Game/Conversation runtime.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
Ran individually (the local
check:line-endingsstep trips on pre-existing CRLF in unrelated files, so the chainedpnpm checkbails early; the committed versions of those files are LF, so CI is unaffected):pnpm check:frontend(tsc -b) — passespnpm check:rust(cargo check --workspace) — passespnpm check:architecture— passes (no dependency violations)pnpm check:unused(knip) — cleanpnpm check:discovery— passesManual Tauri verification: uploaded images to the global gallery, created/selected/renamed/deleted folders, sorted, and moved images both by dragging onto a folder chip and via the lightbox picker; verified the persona Gallery tab uploads and displays. Confirmed in both dark and light themes.
Feature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
src/features/shell/discovery/discovery-entries.jsongained aglobal-galleryentry and the panel-target allowlists were extended.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.