mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1994] [Feature]: Add thumbnail-capable delivery for managed image asset grids #976
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#976
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?
Originally created by @Promansis on GitHub (Jun 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1994
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Repeated image surfaces render full-size managed assets into small thumbnail cells. This can waste transfer bytes, decode time, and memory when grids or lists show many gallery, background, game asset, or lorebook images at once.
Static audit evidence:
src/features/modes/game-assets/components/AssetGrid.tsxrenders repeated game asset images viaresolveGameAssetFileUrl.src/features/shell/settings/components/SettingsPanel.tsxrenders background picker tiles viaresolveGameAssetFileUrlorresolveBackgroundFileUrl.src/features/catalog/characters/components/CharacterGalleryTab.tsxrenders character gallery grid tiles withimage.urldirectly.src/features/catalog/lorebooks/components/panel/LorebookRow.tsxrenders resolved lorebook images into 40px row cells.Proposed behavior
Add thumbnail-capable managed asset delivery for gallery, background, game asset, and lorebook image surfaces.
Recommended shape:
src/shared/api/local-file-api.tsexposes thumbnail-capable resolvers that keep embedded Tauri and remote runtime behavior aligned.src-tauriowns safe filesystem resolution, decoding, hashing/freshness checks, thumbnail generation, and cache file paths.src-tauri/src/http_server.rsserves thumbnail routes with cache headers that match freshness and invalidation.Expected owner or impact area
Refactor branch considerations
Keep product placement aligned with the refactor architecture:
/api/assetsrouting parity.Do not claim byte, memory, or timing wins until browser/network measurements are captured before and after.
Alternatives considered
Only adding
loading="lazy"or CSS sizing would reduce some browser scheduling pressure, but it would not reduce source bytes or decode size. Pre-generating every thumbnail at import time may be heavier than lazy bucket generation for below-fold lists.Additional context
Existing avatar thumbnails provide a model for bucketed sizes and Rust-owned cache generation. This issue extends that pattern to other high-volume managed image surfaces.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: