mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1940] [MERGED] Fix game asset backgrounds in settings picker #5351
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#5351
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/1940
Author: @cha1latte
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/issue-1928-game-asset-backgrounds📝 Commits (2)
f4856fbFix game asset backgrounds in settings picker3f1c15fUpdate discovery for game asset backgrounds📊 Changes
3 files changed (+152 additions, -4 deletions)
View changed files
📝
src-tauri/src/commands/storage/backgrounds.rs(+129 -0)📝
src/features/shell/discovery/discovery-entries.json(+2 -2)📝
src/features/shell/settings/components/SettingsPanel.tsx(+21 -2)📄 Description
Linked issue
Closes #1928
Why this change
backgrounds_listonly returned uploaded/user background rows. That meant bundled or custom game asset backgrounds were invisible in the picker even when they existed in the game asset manifest.What changed
backgrounds_listnow appends manifestbackgroundsgame assets as read-only picker rows withsource: "game_asset"andmarinara-game-asset:URLs.Refactor impact
Primary owner:
Impact areas reviewed:
marinara-game-asset:Boundary notes:
Pressure points touched:
backgrounds_liststorage commandValidation
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 list_backgrounds_includes_non_editable_game_asset_backgrounds; it failed because the game asset background row was missing.marinara-game-asset:backgrounds%2Ffantasy%2Fcastle.png, and a non-background music asset is excluded.pnpm typecheckpassed.cargo check --manifest-path src-tauri\Cargo.tomlpassed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.pnpm checkpassed.upstream/refactorworkflow base.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
backgrounds_listAPI contract plus resolver path; the route regression test andpnpm checkare the available machine proof in this draft.Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.