mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2362] [MERGED] Add custom emoji and sticker tagging to galleries #5562
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#5562
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/2362
Author: @kolacheee
Created: 6/5/2026
Status: ✅ Merged
Merged: 6/7/2026
Merged by: @SpicyMarinara
Base:
refactor← Head:feat/convo-custom-emoji-model📝 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
35 files changed (+1892 additions, -66 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(+24 -5)📝
src/features/catalog/characters/hooks/use-characters.ts(+18 -20)➕
src/features/catalog/gallery/components/GlobalGalleryPanel.tsx(+613 -0)📝
src/features/catalog/gallery/hooks/use-gallery.ts(+4 -31)➕
src/features/catalog/gallery/hooks/use-global-gallery.ts(+164 -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 15 more files
📄 Description
Linked issue
Closes #2360 (partially).
Second PR in the series for that feature request. It adds the custom-emoji/sticker tagging model to the galleries; the Conversation-mode selectors, sending, and AI reactions follow in later PRs, so this does not close the request.
Why this change
What changed
CustomEmojiTagButton) on every image in the character, persona, and global galleries. It opens a small menu to make the image an emoji or a sticker, and once tagged offers rename / switch-kind / remove.:name:(emoji) andsticker:name:(sticker) once PR C/D wire them up.custom-emoji.ts(kind type, limits, slugify, dimension validation/reader). The two new record fields (customKind,customName) persist via the existing update mutation — the gallery collections store arbitrary JSON, so no Rust/schema change.Refactor impact
Primary owner: catalog (galleries) and shared UI.
Impact areas reviewed:
src/shared/lib/custom-emoji.tsandsrc/shared/components/ui/CustomEmojiTagButton.tsx(reuses the existingContextMenuand prompt dialog)Boundary notes:
storageApi.updateon the existing gallery collections.Pressure points touched:
lib.rs/ import-module changes. This PR is confined to the catalog galleries and does not touch the Conversation, Roleplay, or Game runtime at all.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
Frontend-only change; ran the relevant checks individually (the local
check:line-endingsstep trips on pre-existing CRLF in unrelated files and bails the chainedpnpm check; committed versions are LF, so CI is unaffected):pnpm check:frontend(tsc -b) — passespnpm check:architecture— passes (no dependency violations)pnpm check:unused(knip) — cleancargowas not re-run.Manual Tauri verification across all three galleries (global panel, a persona's Gallery tab, a character's Gallery tab): tagged images as emoji and sticker; confirmed the size gate flashes red + warns on oversized choices; renamed, switched kind (re-validates against the new kind), and removed tags; confirmed names slugify and tags persist across reload; confirmed existing gallery behavior (upload, delete, lightbox, download, global drag-to-folder, folder create/rename/delete, sort) still works.
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:
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.