[PR #2622] [MERGED] feat(conversation): custom emojis in the emoji picker (upload, manage, :name:) #5687

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2622
Author: @kolacheee
Created: 6/18/2026
Status: ✅ Merged
Merged: 6/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/staging-custom-emojis


📝 Commits (10+)

  • 113f4c9 feat(custom-emojis): data model + storage for global custom emojis
  • 1cea476 feat(custom-emojis): routes — upload, serve, list, rename, delete, import/export
  • ffdf5c1 feat(custom-emojis): emoji-picker Custom tab + client hooks
  • e834059 feat(custom-emojis): render :name: tokens as inline images in conversation messages
  • 6216af2 feat(custom-emojis): jumbo rendering for emoji-only lines
  • 1e8338a feat(custom-emojis): :emoji: autocomplete in the conversation composer
  • 2ba59cb feat(emoji): resolve per-source custom emojis in conversations
  • 4627cef feat(emoji): show persona & character emojis in the picker's Custom tab
  • 2636930 feat(emoji): advertise available custom emojis to the model
  • 35ec1ff feat(emoji): add selection preferences (max count + random/semantic)

📊 Changes

26 files changed (+1799 additions, -58 deletions)

View changed files

📝 packages/client/src/components/chat/ConversationInput.tsx (+179 -2)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+5 -0)
📝 packages/client/src/components/chat/ConversationMessageBubble.tsx (+5 -4)
📝 packages/client/src/components/chat/ConversationMessageGrouped.tsx (+4 -3)
📝 packages/client/src/components/chat/ConversationMessageLine.tsx (+3 -2)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+9 -1)
📝 packages/client/src/components/chat/ConversationView.tsx (+5 -0)
➕ packages/client/src/components/chat/CustomEmojiTab.tsx (+396 -0)
📝 packages/client/src/components/ui/AppDialogRenderer.tsx (+9 -0)
📝 packages/client/src/components/ui/EmojiPicker.tsx (+66 -33)
📝 packages/client/src/components/ui/GifPicker.tsx (+24 -12)
➕ packages/client/src/hooks/use-conversation-custom-emojis.ts (+88 -0)
➕ packages/client/src/hooks/use-custom-emojis.ts (+70 -0)
➕ packages/client/src/lib/custom-emoji-render.tsx (+76 -0)
📝 packages/client/src/stores/dialog.store.ts (+2 -0)
📝 packages/server/src/db/file-backed-store.ts (+1 -0)
➕ packages/server/src/db/schema/custom-emojis.ts (+17 -0)
📝 packages/server/src/db/schema/index.ts (+1 -0)
➕ packages/server/src/routes/custom-emojis.routes.ts (+300 -0)
📝 packages/server/src/routes/generate.routes.ts (+266 -1)

...and 6 more files

📄 Description

Linked issue

Closes #2608.

Why this change

Per maintainer guidance, custom emojis belong in the emoji picker (a "Custom" section), not a separate Gallery tab. Users upload their own emojis, use them in messages via :name:, and a capped, configurable subset of names is advertised to the model so characters can use them too. Conversation mode only — no Roleplay/Game codepaths.

What changed

Draft / in progress — this branch builds the feature in slices. Landed so far:

  • Persistence: a file-backed custom_emojis table (id, name slug, file path, dimensions); createCustomEmojisStorage CRUD with a name lookup for slug uniqueness; shared Zod schemas + slug/dimension constants.

Still to come on this branch:

  • Routes — upload / serve / list / rename / delete + set import/export
  • Emoji-picker "Custom" section (global + the active persona's + the chat's bots' emojis) with upload/rename/delete
  • Selection ⚙️ — max count; random / semantic (local embedder) / tool-call modes; exclusive (persona/character) emojis weighted above global
  • Prompt advertising (full standard set + X custom) and :name: rendering in Conversation messages

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

Manual verification notes

Pending — feature in progress.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Mobile Multiselector
{94046D26-94BB-42BD-A140-6CE7B5E03007}
{3EB85722-FF71-49EE-85D4-77B851D41071}
(Stickers grayed out, will be implemented and screenshotted again in PR B)

Summary by CodeRabbit

  • New Features
    • Added custom emoji autocomplete in chat input using :emoji: syntax with keyboard navigation (arrow keys, Tab/Enter to insert)
    • Added dedicated custom emoji picker tab with search, organization by source, and per-conversation emoji display
    • Added mobile emoji/GIFs/stickers picker bottom sheet
    • Added custom emoji management capabilities: upload, rename, delete, import/export emoji bundles
    • Added per-conversation custom emoji selection preferences and settings

🔄 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/2622 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 6/18/2026 **Status:** ✅ Merged **Merged:** 6/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/staging-custom-emojis` --- ### 📝 Commits (10+) - [`113f4c9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/113f4c97187d102ae176cf849795f110d2424ab7) feat(custom-emojis): data model + storage for global custom emojis - [`1cea476`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1cea476491b4802ad14eba9b418bfd210acd6111) feat(custom-emojis): routes — upload, serve, list, rename, delete, import/export - [`ffdf5c1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ffdf5c1c092d99c8bfb37871cec0677ec3e65e5f) feat(custom-emojis): emoji-picker Custom tab + client hooks - [`e834059`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e8340591b5d97e8059db8bf901603714729d8261) feat(custom-emojis): render :name: tokens as inline images in conversation messages - [`6216af2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6216af2a2b0e03dbafc8279736afe9bf057e0e6c) feat(custom-emojis): jumbo rendering for emoji-only lines - [`1e8338a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1e8338a642007aed02e119e9d68b8347e3a9b5f4) feat(custom-emojis): :emoji: autocomplete in the conversation composer - [`2ba59cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ba59cb08df826d99edde8055900506d5966e57d) feat(emoji): resolve per-source custom emojis in conversations - [`4627cef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4627cef3b45bcacabf68b77add1022f289a99b76) feat(emoji): show persona & character emojis in the picker's Custom tab - [`2636930`](https://github.com/Pasta-Devs/Marinara-Engine/commit/26369303b393c756b8356b02639a989c03301962) feat(emoji): advertise available custom emojis to the model - [`35ec1ff`](https://github.com/Pasta-Devs/Marinara-Engine/commit/35ec1ff342582aecb480bbaa62c399be22906981) feat(emoji): add selection preferences (max count + random/semantic) ### 📊 Changes **26 files changed** (+1799 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+179 -2) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+5 -0) 📝 `packages/client/src/components/chat/ConversationMessageBubble.tsx` (+5 -4) 📝 `packages/client/src/components/chat/ConversationMessageGrouped.tsx` (+4 -3) 📝 `packages/client/src/components/chat/ConversationMessageLine.tsx` (+3 -2) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+9 -1) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+5 -0) ➕ `packages/client/src/components/chat/CustomEmojiTab.tsx` (+396 -0) 📝 `packages/client/src/components/ui/AppDialogRenderer.tsx` (+9 -0) 📝 `packages/client/src/components/ui/EmojiPicker.tsx` (+66 -33) 📝 `packages/client/src/components/ui/GifPicker.tsx` (+24 -12) ➕ `packages/client/src/hooks/use-conversation-custom-emojis.ts` (+88 -0) ➕ `packages/client/src/hooks/use-custom-emojis.ts` (+70 -0) ➕ `packages/client/src/lib/custom-emoji-render.tsx` (+76 -0) 📝 `packages/client/src/stores/dialog.store.ts` (+2 -0) 📝 `packages/server/src/db/file-backed-store.ts` (+1 -0) ➕ `packages/server/src/db/schema/custom-emojis.ts` (+17 -0) 📝 `packages/server/src/db/schema/index.ts` (+1 -0) ➕ `packages/server/src/routes/custom-emojis.routes.ts` (+300 -0) 📝 `packages/server/src/routes/generate.routes.ts` (+266 -1) _...and 6 more files_ </details> ### 📄 Description ## Linked issue Closes #2608. ## Why this change Per maintainer guidance, custom emojis belong in the **emoji picker** (a "Custom" section), not a separate Gallery tab. Users upload their own emojis, use them in messages via `:name:`, and a capped, configurable subset of names is advertised to the model so characters can use them too. **Conversation mode only** — no Roleplay/Game codepaths. ## What changed **Draft / in progress** — this branch builds the feature in slices. Landed so far: - **Persistence:** a file-backed `custom_emojis` table (id, name slug, file path, dimensions); `createCustomEmojisStorage` CRUD with a name lookup for slug uniqueness; shared Zod schemas + slug/dimension constants. Still to come on this branch: - Routes — upload / serve / list / rename / delete + set import/export - Emoji-picker "Custom" section (global + the active persona's + the chat's bots' emojis) with upload/rename/delete - Selection ⚙️ — max count; `random` / `semantic` (local embedder) / `tool-call` modes; exclusive (persona/character) emojis weighted above global - Prompt advertising (full standard set + X custom) and `:name:` rendering in Conversation messages ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] 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) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes _Pending — feature in progress._ ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Mobile Multiselector <img width="381" height="495" alt="{94046D26-94BB-42BD-A140-6CE7B5E03007}" src="https://github.com/user-attachments/assets/b74a180f-7174-442a-b6ad-d834cb513120" /> <img width="378" height="493" alt="{3EB85722-FF71-49EE-85D4-77B851D41071}" src="https://github.com/user-attachments/assets/843e60ed-b6bf-4549-bd7b-89cdd39eb0f4" /> (Stickers grayed out, will be implemented and screenshotted again in PR B) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added custom emoji autocomplete in chat input using `:emoji:` syntax with keyboard navigation (arrow keys, Tab/Enter to insert) * Added dedicated custom emoji picker tab with search, organization by source, and per-conversation emoji display * Added mobile emoji/GIFs/stickers picker bottom sheet * Added custom emoji management capabilities: upload, rename, delete, import/export emoji bundles * Added per-conversation custom emoji selection preferences and settings <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:18:31 +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#5687
No description provided.