[PR #1996] [MERGED] Route persona avatars through thumbnails #5381

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1996
Author: @Promansis
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @Promansis

Base: refactor ← Head: fix/persona-avatar-thumbnails


📝 Commits (2)

  • 363927c Route persona avatars through thumbnails
  • 1617e6c Throttle persona avatar thumbnail resolution

📊 Changes

10 files changed (+285 additions, -55 deletions)

View changed files

➕ src/features/catalog/personas/components/PersonaAvatarImage.tsx (+197 -0)
📝 src/features/catalog/personas/components/panel/PersonaGroupsSection.tsx (+4 -2)
📝 src/features/catalog/personas/components/panel/PersonaListItem.tsx (+2 -1)
📝 src/features/catalog/personas/index.ts (+1 -0)
📝 src/features/catalog/personas/lib/personas-panel-model.ts (+3 -0)
📝 src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx (+15 -12)
📝 src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx (+16 -2)
📝 src/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsx (+16 -16)
📝 src/features/modes/shared/chat-ui/components/QuickSwitcherMobile.tsx (+8 -12)
📝 src/features/shell/mari/components/ProfessorMariSurface.tsx (+23 -10)

📄 Description

Linked issue

Closes #1992

Why this change

  • Persona-heavy UI surfaces rendered avatarPath directly, so compact/repeated persona avatar cells could bypass the existing avatar thumbnail pipeline and load full-size or inline sources.

What changed

  • Added a persona-owned avatar image wrapper that routes avatarPath, managed avatar file metadata, inline sources, and crop data through the existing avatar thumbnail shared API.
  • Replaced direct persona avatar <img src={...avatarPath}> usage in compact persona list, group, switcher, setup, chat settings, and Professor Mari selector surfaces.
  • Carried avatarFilePath, avatarFilename, and crop metadata through persona display row types where those compact surfaces need thumbnail resolution.

Refactor impact

Primary owner:

Catalog personas and shared chat UI persona selectors.

Impact areas reviewed:

  • Catalog persona list and group rows
  • Shared chat setup/settings persona pickers
  • Desktop/mobile quick persona switchers
  • Professor Mari persona selector
  • Shared avatar thumbnail API call boundary

Boundary notes:

  • React feature code now calls the existing typed shared avatar URL helpers through src/shared/api/local-file-api.ts.
  • No engine, Rust storage, import/export, or remote-runtime command routing changes were needed.
  • Inline avatarPath thumbnail support stays in the existing shared avatar thumbnail resolver; this PR wires persona UI surfaces into that path.

Pressure points touched:

  • Shared mode UI persona picker/switcher surfaces
  • Professor Mari shell surface
  • Catalog persona panel rows

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • pnpm typecheck passed locally.
  • pnpm check:architecture passed locally.
  • pnpm check passed locally.
  • No browser screenshot/manual UI validation was performed.

Feature Discoverability

Check exactly one:

  • Updated 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.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Bugfix for existing persona avatar rendering paths; no new user-discoverable feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

UI evidence

No screenshots attached. This PR was validated with local static/type/architecture/full checks.


🔄 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/1996 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/persona-avatar-thumbnails` --- ### 📝 Commits (2) - [`363927c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/363927cd2e39242f03d3c433221a3e08d1dd83ca) Route persona avatars through thumbnails - [`1617e6c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1617e6ce118382c4306dbcebdd631df61fca01f2) Throttle persona avatar thumbnail resolution ### 📊 Changes **10 files changed** (+285 additions, -55 deletions) <details> <summary>View changed files</summary> ➕ `src/features/catalog/personas/components/PersonaAvatarImage.tsx` (+197 -0) 📝 `src/features/catalog/personas/components/panel/PersonaGroupsSection.tsx` (+4 -2) 📝 `src/features/catalog/personas/components/panel/PersonaListItem.tsx` (+2 -1) 📝 `src/features/catalog/personas/index.ts` (+1 -0) 📝 `src/features/catalog/personas/lib/personas-panel-model.ts` (+3 -0) 📝 `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` (+15 -12) 📝 `src/features/modes/shared/chat-ui/components/ChatSetupWizard.tsx` (+16 -2) 📝 `src/features/modes/shared/chat-ui/components/QuickPersonaSwitcher.tsx` (+16 -16) 📝 `src/features/modes/shared/chat-ui/components/QuickSwitcherMobile.tsx` (+8 -12) 📝 `src/features/shell/mari/components/ProfessorMariSurface.tsx` (+23 -10) </details> ### 📄 Description ## Linked issue Closes #1992 ## Why this change - Persona-heavy UI surfaces rendered `avatarPath` directly, so compact/repeated persona avatar cells could bypass the existing avatar thumbnail pipeline and load full-size or inline sources. ## What changed - Added a persona-owned avatar image wrapper that routes `avatarPath`, managed avatar file metadata, inline sources, and crop data through the existing avatar thumbnail shared API. - Replaced direct persona avatar `<img src={...avatarPath}>` usage in compact persona list, group, switcher, setup, chat settings, and Professor Mari selector surfaces. - Carried `avatarFilePath`, `avatarFilename`, and crop metadata through persona display row types where those compact surfaces need thumbnail resolution. ## Refactor impact Primary owner: Catalog personas and shared chat UI persona selectors. Impact areas reviewed: - Catalog persona list and group rows - Shared chat setup/settings persona pickers - Desktop/mobile quick persona switchers - Professor Mari persona selector - Shared avatar thumbnail API call boundary Boundary notes: - React feature code now calls the existing typed shared avatar URL helpers through `src/shared/api/local-file-api.ts`. - No engine, Rust storage, import/export, or remote-runtime command routing changes were needed. - Inline `avatarPath` thumbnail support stays in the existing shared avatar thumbnail resolver; this PR wires persona UI surfaces into that path. Pressure points touched: - Shared mode UI persona picker/switcher surfaces - Professor Mari shell surface - Catalog persona panel rows ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [ ] Human/manual validation completed by contributor or reviewer ### Manual verification notes - `pnpm typecheck` passed locally. - `pnpm check:architecture` passed locally. - `pnpm check` passed locally. - No browser screenshot/manual UI validation was performed. ## Feature Discoverability Check exactly one: - [ ] Updated `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. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Bugfix for existing persona avatar rendering paths; no new user-discoverable feature. ## Docs and release impact - [x] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [ ] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims ## UI evidence No screenshots attached. This PR was validated with local static/type/architecture/full checks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:15:47 +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#5381
No description provided.