---
created: 2026-03-24T08:45:00.000Z
title: Unassigned card view mode with conditional amber tab
area: ui
files:
  - crates/app/ui/dashboard.slint
  - crates/app/ui/card.slint
  - crates/app/src/dashboard/discovery.rs
  - crates/app/src/main.rs
---

## Problem

Unassigned (unmatched) recipient cards are mixed in with assigned cards across all view modes. There's no dedicated way to see only unassigned cards, making it hard to triage new arrivals. The user must scroll through all cards to find ones needing recipient assignment.

## Solution

Add a special "Unassigned" discovery/view mode:

1. **Conditional tab**: An amber-colored tab/icon labeled "Unassigned" appears in the mode switcher only when `is_unassigned == true` on one or more cards. When all cards are assigned, the tab disappears automatically.

2. **Exclusive view**: Entering the Unassigned mode filters to show only cards with `is_unassigned == true`. No other filtering (status, purpose, search) applies in this mode — it's a dedicated triage view.

3. **Amber styling**: The tab icon/indicator uses the warning amber color (`Colors.warning` / `#f0a030`) to visually distinguish it from the regular blue mode tabs. Matches the unassigned card avatar styling added in Phase 16.1.

4. **Integration with existing DiscoveryMode**: Either add a new `DiscoveryMode::Unassigned` variant or implement as a separate filter layer that overrides the normal mode when active. The existing `DiscoveryMode` enum has `ByStatusUpdated`, `ByShipDate`, `ByRecipient`, `ByProductShipped` — adding a fifth variant is cleanest.

5. **Auto-exit**: If the user assigns the last unassigned card while in Unassigned mode, auto-switch back to the default mode (ByStatusUpdated) since there are no more cards to show.
