feat(ui): show only the version in the left menu, linked to status (PMS-712) #462
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-712-version-only-footer"
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?
PMS-712: show only the version in the left menu, linked to status
The left-menu footer showed
version - commit - build date. Trim it to the version alone and link it to System Status, which is the agreed home for the build detail.Version correctness checked first (acceptance 1)
The ticket flagged that sibling products (MAPPS-200, YOTUN-34/32/36) found the displayed version was often wrong, not just verbose, so trimming could hide a defect. Confirmed this is not the case here: the footer version comes from
CARGO_PKG_VERSIONviaAPP_GIT_TAG(build.rs), which is the MAPPS-200 fix - it reflects the built release the moment a release commit exists and does not wait for the post-mergevX.Y.Zgit tag. So the rendered version is correct; nothing to fix or file first.Change
VersionFooter(src/components/layout.rs) now rendersv{VERSION}as aLinktoRoute::SystemStatus {}, dropping the commit hash and build date from the footer (and the tooltip that duplicated them - rejected by the ticket as a second home). The link target is a compile-checked route.No metadata lost (acceptance 4/5)
The build detail already lives on the status page:
src/pages/system_status.rsrenders Version, Commit, Built for both the client build (baked in bybuild.rs) and the API build (GET /api/v1/version). The footer's three values are all there, so the move drops nothing.Rendered on every page (acceptance 6)
VersionFooteris a shared component in the layout footer, rendered in each sidebar variantAppLayoutprovides (expanded rail, mobile drawer), so the link is present on every page the menu renders on. It is hidden only in the icon-only collapsed strip (unchanged - the label wraps illegibly at that width).Verification
cargo check --target wasm32-unknown-unknown,clippy -D warnings(wasm), andfmt --checkall pass. Behaviour is a visual trim + an in-SPA route link; the route target is type-checked so a broken link would not compile.