mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1954] [MERGED] Fix sprite list managed URLs #5357
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#5357
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/1954
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1930-sprite-list-urls📝 Commits (1)
11350b6Fix sprite list managed URLs📊 Changes
4 files changed (+323 additions, -44 deletions)
View changed files
📝
src-tauri/src/commands/storage/sprites.rs(+55 -22)📝
src-tauri/src/http_server.rs(+90 -0)📝
src/shared/api/image-generation-api.ts(+108 -10)📝
src/shared/api/local-file-api.ts(+70 -12)📄 Description
Linked issue
Closes #1930
Why this change
refactorreturned every sprite image as a base64data:URL, so opening a large sprite grid forced the list command to read and serialize every image byte before the UI could render.What changed
/api/assets/sprite/<ownerType>/<ownerId>/<filename>asset route with path-token negative controls for remote runtime rendering.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
SpriteInfo.url; the shared API wrapper owns desktop/remote URL resolution.Pressure points touched:
src-tauri/src/commands/storage/sprites.rssrc-tauri/src/http_server.rssrc/shared/api/image-generation-api.tssrc/shared/api/local-file-api.tsValidation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri\Cargo.toml sprite_upload_tests::bulk_upload_reports_partial_failures_and_returns_refreshed_list; the new assertion failed because the sprite list item URL was adata:image/...payload.cargo test --manifest-path src-tauri\Cargo.toml sprite_upload_tests::bulk_upload_reports_partial_failures_and_returns_refreshed_listpassed.cargo test --manifest-path src-tauri\Cargo.toml sprite_asset_pathpassed, covering character/persona sprite asset routing and path-token negative controls.pnpm typecheckpassed.cargo check --manifest-path src-tauri\Cargo.tomlpassed.pnpm checkpassed.scratch/bugfix-verification.json.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
N/A. This is a non-visual storage/API payload fix; proof is command-based.
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.