fix(storage): show sidecar version in installed payloads #87
No reviewers
Labels
No labels
bug
cant-reproduce
documentation
duplicate
enhancement
good first issue
help wanted
invalid
low-priority
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-itsPLK/ps5-payload-manager!87
Loading…
Reference in a new issue
No description provided.
Delete branch "lucaszhongsj/fix/installed-version-display"
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?
Problem
Payloads without a version string in the filename (e.g.
kylin-core.elf,shadowmountplus.elf) show no version label in the Installed Payloads list, even though the sidecar metadata already contains aversionfield.The dashboard's
PayloadButtonalready passes the version viapayloadMeta[filename].version, but the storage page'sPayloadNamewas missing the same prop — so the two pages render the same payload inconsistently.Fix
Pass
payloadMeta[fileName]?.versiontoPayloadNamein the installed list. Falls back to filename-based parsing when sidecar metadata is absent.While here, also extract
getDisplayNamein App.jsx soloadPayloadandmakeCardshare the same path-to-name conversion (previously duplicated inline).Test plan
kylin-core.elf(no version in filename, sidecar version present) → now showsv1.3.1-community-liteftpsrv_v0.21.elf(version in filename) → still showsv0.21npm run buildandnpm run lintcleanView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.