Detail: Back action should return to Dashboard predictably #29
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?
Problem
The "Back" button in
ShipmentDetailusesnavigate(-1)(browser history back). If a user opens a shipment link directly, refreshes the page, or arrives via Home Assistant MQTT link,navigate(-1)either goes to an external page or does nothing useful.Implementation
File:
frontend/src/pages/ShipmentDetail.tsx— around line 309.Change:
To use React Router
<Link>with a fallback:Remove the
navigateimport if it's no longer used elsewhere, or keep it for thehandleDeleteredirect.Acceptance criteria
/(Dashboard)navigateis still used for post-delete redirect to/Brand identity alignment
Trackbox should feel dependable and operational. Navigation should be predictable even when users arrive from automation links, notification messages, or direct URLs.
Brand-compliant implementation notes
/) over browser-history back behavior.Back, but the accessible label should clarifyBack to Dashboard.Additional acceptance criteria
Migrated from GitHub issue #8: https://github.com/bullitt186/trackbox/issues/8
Original author: @bullitt186
Original created: 2026-06-27T13:23:04Z
Original labels: ux
Detail: 'Back' button should link to Dashboard, not rely on browser historyto Detail: Back action should return to Dashboard predictablyImplemented in commit
bd6b0e7. Replaced<button onClick={() => navigate(-1)}>with<Link to="/">so the Back button always navigates to the Dashboard regardless of how the user arrived (direct link, page refresh, automation notification). Thenavigatehook is retained for the post-delete redirect.