Detail: Hide 'Update Status' card when shipment is archived #33
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 "Update Status" card is shown for all non-delivered shipments (
!isDelivered). However, it also appears for archived shipments. Shipment #4 (archived + stalled + in_transit) shows an "Update Status" card, letting users change the state of an archived shipment. This is confusing — archived implies the shipment is no longer being actively managed.Implementation
File:
frontend/src/pages/ShipmentDetail.tsx— around line 615.Change the condition from:
To:
Note:
shipment.archivedis stored as0or1(SQLite integer), so the check should be:Acceptance criteria
shipment.archived === 1Brand identity alignment
Archived shipments are historical records, not active operational work. Hiding
Update Statusreinforces clear state ownership and prevents archived records from looking actionable.Brand-compliant implementation notes
Archivedbadge or metadata row rather than a primary action area.Additional acceptance criteria
Migrated from GitHub issue #12: https://github.com/bullitt186/trackbox/issues/12
Original author: @bullitt186
Original created: 2026-06-27T13:23:46Z
Original labels: ux
Implemented in commit
bd6b0e7. The condition for the Update Status card was changed from{!isDelivered && (to{!isDelivered && shipment.archived !== 1 && (. Archived shipments now present as historical read-only records — timeline, source data, and events remain visible, but the status update form is hidden since archived shipments are outside active management.