mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #2180] [MERGED] Normalize inline images into managed storage #5459
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#5459
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/2180
Author: @Xelvanis
Created: 6/4/2026
Status: ✅ Merged
Merged: 6/4/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/inline-image-storage-migration📝 Commits (6)
cb64250Normalize inline images into managed storage9bc8be8Cover inline image migration gapscba7962Address image migration review findings22d9e79Handle case-variant inline image data URLsbe9e4ffHarden managed gallery row persistence8f64214Merge refactor into inline image storage migration📊 Changes
10 files changed (+1337 additions, -41 deletions)
View changed files
📝
src-tauri/crates/storage/src/lib.rs(+26 -2)📝
src-tauri/src/commands/storage.rs(+2 -0)📝
src-tauri/src/commands/storage/avatars.rs(+9 -5)📝
src-tauri/src/commands/storage/commands/entities.rs(+37 -1)📝
src-tauri/src/commands/storage/imports/marinara_assets.rs(+3 -2)📝
src-tauri/src/commands/storage/profile/assets.rs(+31 -3)📝
src-tauri/src/commands/storage/profile/legacy.rs(+150 -27)📝
src-tauri/src/commands/storage/shared.rs(+1 -1)➕
src-tauri/src/commands/storage/startup_migrations.rs(+731 -0)📝
src-tauri/src/state.rs(+347 -0)📄 Description
Linked issue
N/A
Why this change
data:image/...URLs in persisted storage instead of using managed file-backed asset URLs.What changed
Refactor impact
Primary owner:
Rust storage
Impact areas reviewed:
Boundary notes:
src-tauristorage modules.Pressure points touched:
src-tauri/src/state.rsstartup orchestrationsrc-tauri/src/lib.rscommand registration, ModeSurface, GameSurface, or shared mode UI changes.Validation
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 app_state_startup_persists_inline_message_attachment_urlscargo test --manifest-path src-tauri/Cargo.toml legacy_gallery_rows_gain_renderable_urls_from_file_pathscargo check --manifest-path src-tauri/Cargo.tomlpnpm checkFeature 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.mdNo docs changes needed: this is an internal storage migration/import bugfix and refactor, with no public command, workflow, or setup documentation change.
UI evidence
N/A: no visible UI changes.
Summary by CodeRabbit
Release Notes
New Features
Improvements
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.