- Add collapsible filter panel with category checkboxes (Presence, Zones, Alerts, System, Learning) for client-side event type filtering - Add person and zone dropdowns populated from /api/people and /api/zones - Add date range selector (All Time / Today / Last 7 Days / Last 30 Days / Custom range) with server-side re-fetch on date changes - Add text search input with fuzzy client-side matching and FTS5 server-side prefix matching for descriptions - Add active filter tags with individual remove buttons and Clear All - Add load-more cursor pagination for 500+ results - Add virtualized rendering with IntersectionObserver for 1000+ events - Render event feedback buttons (thumbs up/down) inline on each event - Add now-replaying chip showing current replay timestamp Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| css | ||
| js | ||
| node_modules | ||
| test-results | ||
| tests | ||
| ambient.html | ||
| fleet.html | ||
| help_articles.json | ||
| index.html | ||
| integrations.html | ||
| jest.config.js | ||
| live.html | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.js | ||
| README.md | ||
| setup.html | ||
Spaxel Dashboard
Running Tests
Unit Tests (Jest)
npm test
Accessibility Tests (axe-core + Playwright)
# First-time setup: install browsers
npx playwright install --with-deps chromium
# Run accessibility gate
npm run test:a11y
The accessibility test loads each dashboard page (index, live, fleet, setup, integrations) via a local static server and asserts zero WCAG 2A/2AA violations using @axe-core/playwright. CI fails the build if any violation is introduced.
CI Integration (Argo Workflows)
Add the following step to the spaxel-build WorkflowTemplate before the container build:
- name: a11y-gate
container:
image: node:20-bookworm-slim
command: [sh, -c]
args:
- |
cd dashboard
npm ci
npx playwright install --with-deps chromium
npm run test:a11y
resources:
limits:
memory: 512Mi
cpu: "1"