Feature/188 filter dimensions #189

Merged
bermudalamb merged 13 commits from feature/188-filter-dimensions into main 2026-08-25 16:25:22 -05:00
Showing only changes of commit 60b76cae82 - Show all commits
@@ -505,7 +505,7 @@ export const priceDimension: FilterDimension = {
- [ ] **Step 5: Run the tests** - [ ] **Step 5: Run the tests**
Run: `npm run test:unit` Run: `npm run test:unit`
Expected: PASS, 12 tests. Expected: PASS, 11 tests.
- [ ] **Step 6: Type-check, lint and commit** - [ ] **Step 6: Type-check, lint and commit**
@@ -667,7 +667,7 @@ export const statusDimension: FilterDimension = {
- [ ] **Step 4: Run the tests** - [ ] **Step 4: Run the tests**
Run: `npm run test:unit` Run: `npm run test:unit`
Expected: PASS, 19 tests. Expected: PASS, 18 tests.
- [ ] **Step 5: Type-check, lint and commit** - [ ] **Step 5: Type-check, lint and commit**
@@ -799,7 +799,7 @@ export const availabilityDimension: FilterDimension = {
- [ ] **Step 4: Run the tests** - [ ] **Step 4: Run the tests**
Run: `npm run test:unit` Run: `npm run test:unit`
Expected: PASS, 23 tests. Expected: PASS, 22 tests.
- [ ] **Step 5: Type-check, lint and commit** - [ ] **Step 5: Type-check, lint and commit**
@@ -1199,7 +1199,7 @@ In `frontend/src/filters.ts`, delete `activeFilterCount` and `hasActiveFilters`
- [ ] **Step 5: Type-check, lint, unit** - [ ] **Step 5: Type-check, lint, unit**
Run: `npx tsc --noEmit && npx tsc -p tsconfig.test.json --noEmit && npm run lint && npm run test:unit` Run: `npx tsc --noEmit && npx tsc -p tsconfig.test.json --noEmit && npm run lint && npm run test:unit`
Expected: no errors, 23 unit tests pass. Any remaining reference to the deleted helpers is a compile error and names itself. Expected: no errors, 22 unit tests pass. Any remaining reference to the deleted helpers is a compile error and names itself.
- [ ] **Step 6: Verify the storefront end-to-end** - [ ] **Step 6: Verify the storefront end-to-end**
@@ -1286,7 +1286,7 @@ git commit -m "test(filters): cover the tally and availability chip behaviour ch
## Done when ## Done when
- `npm run test:unit` passes in `frontend/` with 23 tests. - `npm run test:unit` passes in `frontend/` with 22 tests.
- `npx tsc --noEmit`, `npx tsc -p tsconfig.test.json --noEmit` and `npm run lint` are clean in both workspaces. - `npx tsc --noEmit`, `npx tsc -p tsconfig.test.json --noEmit` and `npm run lint` are clean in both workspaces.
- `FilterDrawer.tsx`, `ActiveFilterChips.tsx`, `activeFilterCount` and `hasActiveFilters` no longer exist. - `FilterDrawer.tsx`, `ActiveFilterChips.tsx`, `activeFilterCount` and `hasActiveFilters` no longer exist.
- `admin-inventory-filters.spec.ts` passes in full; `filters.spec.ts` and `favorites-filter.spec.ts` pass except the two assertions blocked on #186. - `admin-inventory-filters.spec.ts` passes in full; `filters.spec.ts` and `favorites-filter.spec.ts` pass except the two assertions blocked on #186.