Added controller, views, tests for reports index and destroy#264
Added controller, views, tests for reports index and destroy#264pranavrao145 merged 4 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a Report index page (and delete support) consistent with other admin index screens, using Shared::IndexTableComponent + ActionButtonComponent, along with routes, locales, and controller tests to support the new functionality.
Changes:
- Add
reports#indexandreports#destroyroutes and controller actions. - Add
app/views/reports/index.html.erbusingShared::IndexTableComponentwith view/edit/delete actions. - Extend locales (EN/ES) and controller tests to cover listing and deletion.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
app/controllers/reports_controller.rb |
Adds index for listing reports and destroy for deleting reports. |
app/views/reports/index.html.erb |
New index UI with table columns and action buttons. |
config/routes.rb |
Exposes index and destroy for reports resources. |
config/locales/en/reports.en.yml |
Adds index/destroy strings and report attribute labels. |
config/locales/es/reports.es.yml |
Adds index/destroy strings and report attribute labels. |
test/controllers/reports_controller_test.rb |
Adds coverage for index listing and admin deletion; includes auth checks for new routes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
91b7367 to
20dd830
Compare
20dd830 to
9bf018d
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
TL;DR
Adds reports index support with matching index-page styling: routes, controller/view, and tests for listing reports with view, edit, and delete actions.
What is this PR trying to achieve?
ReportIndex Page #113How did you achieve it?
Checklist