Skip to content

249 reports page#281

Merged
mehanana merged 3 commits into
mainfrom
249-Reports-Page
Jul 12, 2026
Merged

249 reports page#281
mehanana merged 3 commits into
mainfrom
249-Reports-Page

Conversation

@mehanana

@mehanana mehanana commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Issue

#249

📝 Description

Created the reports page according to the figma design. Connected to backend by using GET /reports to populate the table & POST /report for the "Generate Report" Modal.

Briefly list the changes made to the code:

  1. Created the reports page based on figma designs
  2. Created the Generate Report modal to allow creating a new report
  3. Wrote tests for the reports page

✔️ Verification

Ran the tests & checked on local host to make sure it matched the figma design
Screenshot 2026-07-07 185141
Screenshot 2026-07-07 190848
image

🏕️ (Optional) Future Work / Notes

Did you notice anything ugly during the course of this ticket? Any bugs, design challenges, or unexpected behavior? Write it down so we can clean it up in a future ticket!

Not sure if this is already a ticket or if I missed it in the code, but I don't think I saw a delete endpoint for the reports. Also, I didn't create the frontend for the schedule view, so that will be a future ticket too I believe.

@mehanana mehanana requested a review from nourshoreibah as a code owner July 7, 2026 23:37
@github-actions github-actions Bot requested a review from tsudhakar87 July 7, 2026 23:37
github-actions Bot added a commit that referenced this pull request Jul 7, 2026

@nshoreibah-kvyo nshoreibah-kvyo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one small request, going to approve!

Comment thread apps/frontend/src/app/reports/page.tsx Outdated
}

// Generate handler — POST /reports/generate { project_id, file_type }
async function handleGenerate() {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Can we maybe put this in a custom hook? Just since this file is pretty big

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And to separate the api logic from the jsx

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds good!

@tsudhakar87 tsudhakar87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echoing Nour's comment but I think this looks good overall!

Comment thread apps/frontend/src/app/reports/page.tsx Outdated
}

// Generate handler — POST /reports/generate { project_id, file_type }
async function handleGenerate() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree

github-actions Bot added a commit that referenced this pull request Jul 12, 2026
@mehanana mehanana added this pull request to the merge queue Jul 12, 2026
Merged via the queue into main with commit da3b487 Jul 12, 2026
16 checks passed
@mehanana mehanana deleted the 249-Reports-Page branch July 12, 2026 03:10
github-actions Bot added a commit that referenced this pull request Jul 12, 2026
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.

4 participants