Skip to content

feat: reports page backend integration (threats, hazards, risks)#250

Open
Varunreddy2k03 wants to merge 26 commits into
dev-frontendfrom
feature/reports-page-varun
Open

feat: reports page backend integration (threats, hazards, risks)#250
Varunreddy2k03 wants to merge 26 commits into
dev-frontendfrom
feature/reports-page-varun

Conversation

@Varunreddy2k03
Copy link
Copy Markdown
Collaborator

What this does

Replaces static/mock report cards with real backend data.

Changes

  • ReportsPage.jsx — loads threats, hazards, risks via Promise.all on mount
  • ReportPDF.jsx — print-ready PDF modal triggered by ↓ PDF button
  • services/phoenixApi.js — shared API helpers (getThreats, getHazards, getRisks, etc.)

Features

  • Loading, empty, and error states
  • Handles both paginated (response.items) and flat array responses
  • PDF download via window.print() with print stylesheet
  • All requests via /api proxy — no hardcoded backend URLs

Not changed

  • Login untouched
  • Backend untouched
  • No other team members' files modified

JackSpiers117 and others added 26 commits April 6, 2026 00:02
Added ReactJS app for dashboard and mobile application
Added name to frontendteam.txt
Added Manaal Gupta to frontendteam.txt
Implemented About Us Sidebar Toolbar (Frontend)
Added login UI components by Tai Nguyen
Providing temporary button for access between login and about us page
Frontend repairs, dashboard page.
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.

6 participants