diff --git a/docs/superpowers/specs/2026-09-01-deliveries-dn-items-expand-design.md b/docs/superpowers/specs/2026-09-01-deliveries-dn-items-expand-design.md index b61e160..d7e07bf 100644 --- a/docs/superpowers/specs/2026-09-01-deliveries-dn-items-expand-design.md +++ b/docs/superpowers/specs/2026-09-01-deliveries-dn-items-expand-design.md @@ -117,9 +117,15 @@ A bordered panel immediately below the existing `
` button column, inside the same outer `
`: -- **Header line**: "{n} items · Total {sumQty} EA" — right-aligned, - text-xs, muted foreground. When `n === 0`, the header line is - omitted; the empty-state takes its place. +- **Header line**: "{n} items · Total {sumQty}{unitSuffix}" — + right-aligned, text-xs, muted foreground. `sumQty` is the + sum of `item.quantity` across the panel's items. + `unitSuffix` is empty when the items' units are mixed or + empty/null; otherwise it's a single shared unit string (e.g. + `" EA"` or `" BOX"`). When all items have unit "EA" or empty, + the suffix is omitted entirely (the operator's mental default + is "EA"). When `n === 0`, the header line is omitted; the + empty-state takes its place. - **Per item line** (`
`): - Description: truncate + `title` for full text (`truncate`, `text-xs`)