Skip to content

CSV export for the fire safety log #5

Description

@djsmacker01

The problem

Fire safety checks can be exported for CQC, but only as PDF. Inspectors and managers sometimes want the raw data — a CSV export mirrors what we're adding for the visitor log in #3.

What to build

An Export CSV button on the fire safety log (manager + readonly roles) that downloads checks for a chosen date range: check type, date/time, result, notes, recorded by.

Where to look

  • frontend/src/components/fire/ — fire safety UI
  • backend/routes/fire.js — add the export endpoint (server-side role check!)

Acceptance criteria

  • Valid CSV over a chosen date range
  • Server-side role check on the endpoint
  • Export recorded in the activity log

Tip: if #3 (visitor log CSV) lands first, follow its pattern — or grab this one and set the pattern yourself. Comment to claim it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions