Skip to content

feat: add incident triage filters and visible-report CSV export - #8

Open
pralav-25 wants to merge 1 commit into
mainfrom
feat/incident-triage
Open

pralav-25 wants to merge 1 commit into
mainfrom
feat/incident-triage

Conversation

@pralav-25

Copy link
Copy Markdown
Owner

Search incident reports by asset, ID, description, or resolution note, combine status and observed-priority filters, and sort by newest, oldest, or highest priority. The result count updates without replacing the focused search input, and Clear filters restores all history.

Export visible CSV downloads exactly the filtered reports in their displayed order. Cells are quoted and leading formula characters are escaped; the export contains report details and photo-presence flags while excluding tracking tokens and image bytes. Export is disabled for an empty result, and search state clears on sign-out.

Validation:

  • node --test tests-web/*.test.mjs — 8 tests pass, including combined filters, sort order, non-mutation, CSV escaping, and excluded tokens/photo data.
  • node --check public/static/app.js, ruff check ., and python -m unittest discover -s tests -v — pass (27 API/scoring/schema tests on local SQLite).
  • Chromium at 1440×1000 and 390×844 with a local private demo and actual API-created reports: filters, sorting, empty state, disabled export, downloaded CSV contents, clear-filter focus, and report details.
  • No horizontal page overflow or uncaught browser errors. Repository CI also runs the API suite with PostgreSQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant