← All tests

Needs Attention preset filter STAGING

Narong Next-Phase #5 (the "Setup issues" ask). nix-cafe staging 0005eacno migration, no backend. Verified locally on lumiere 5/5 + on get-coffee.staging + staging smoke 5/5.

What Narong asked. "Let's make it a preset filter to attract the user's attention to know that the product is incomplete — Needs Attention: Missing Category / Missing Price / Missing SKU / Missing Image."

How it works

The filter panel's old "Setup issues — Coming soon" stub becomes a real Needs Attention group with 4 checkboxes. Ticking any narrows the list to products with any of the ticked issues (OR). A ⚠ amber badge on each flagged row spells out exactly what's missing — so the user sees what to fix. All derived from data we already fetch (category_id, min variant price, variant SKUs, variant images) — no schema change. Stock stays "Coming soon" pending its data-source dig.

1 · The panel + filtering (lumiere)

needs attention panel
The Needs Attention group: Missing Category / Price / SKU / Image.
missing category filter
Missing Category → 3 products, each with an badge.
category plus sku
Adding Missing SKU → 6 products (OR union of the two conditions).

2 · On staging (get-coffee.staging — real data)

Verified on the deployed staging Worker via a real SSO login. Of 12 products, "Missing Image" narrows to the 4 that lack an image — each ⚠-badged.

staging missing image
Missing Image on get-coffee.staging → 4 of 12 products flagged.

Checks

Panel shows Needs Attention with 4 checkboxespass
Missing Category → 3 rows, all ⚠-badgedpass
Missing Category + SKU → 6 rows (OR union)pass
Row badge lists the missing fieldspass
tsc --noEmitclean
Staging smoke5/5

No schema change. Local screenshots use a temp-seeded lumiere (3 category / 3 SKU / 3 image missing), reverted after capture. Parked on staging for the scheduled prod promote.