← back to index

U10 — Session History filteringPROD

Notion test-run #3 doc item #6 — "To add more filtering controls for Session History". Preset chips + Custom date range + Shop multi-select + Reset. Matches Odoo 17's POS Sessions filter pattern. Default preset "All" preserves prior no-date-filter UX.

Summary

Status
12/12 prod · 51/51 regression = 63/63 · shipped
Commit
nix-cafe 2b8e677
Files
4 modified · ~250 LOC net · no migration · no backend · no schema

12/12 prod checks

Prod SQL pre-count: 134 sessions in lumiere's active shops (lumiere has 5 shops, 4 inactive; listAccessibleShops filters by is_active so baseline = active-shop count, not full tenant)
SSO login on lumiere
/cafe/pos/sessions renders + FilterBar visible + "All" chip aria-pressed=true by default
Baseline "All" UI count = 134 matches active-shop SQL count
Click "Today" → URL gains ?preset=today; count narrows below baseline; chip aria-pressed=true
Click "This Year" → URL gains ?preset=this_year; count narrows below baseline
Click "All" → URL strips ?preset param; count returns to baseline (134)
Click "Custom" → from + to date inputs render
Navigate to ?preset=custom&from=1971-01-01&to=1971-12-31 → 0 sessions shown; inputs reflect URL params
Reset filters → URL is bare /cafe/pos/sessions; count = baseline
Register dropdown still works + preserves preset=this_year across change (filter composition works)
No 5xx during the suite

Screenshots

Regression sweep — 51/51

12/12 + 51/51 = 63/63 prod tests green on the karouna-dev branch.
test-phase1-prod.mjs11/11
test-phase2-sso-outdoor-prod.mjs6/6
test-m1-prod.mjs10/10
test-r7-prod.mjs14/14
test-r8-prod.mjs4/4
test-phase2-cafe-multishop-prod.mjs (solo)6/6

Mid-Gate-2 notes