Skip to content

Conversation

@dylan-mccarthy
Copy link
Owner

@dylan-mccarthy dylan-mccarthy commented Apr 14, 2025

Related to #1

Add reporting functionality for active applications and their age.

  • Frontend Changes:

    • Add svelte-chartjs as a dependency in frontend/package.json.
    • Create a new Svelte component frontend/src/routes/report/+page.svelte to display the report with a pie chart.
    • Fetch data from the new API endpoint in PlatformAPI/Program.cs.
  • Backend Changes:

    • Add a new endpoint /api/apps/report in PlatformAPI/Program.cs to generate the report.
    • Implement GetApplicationsReportAsync method in PlatformAPI/Services/ApplicationStorageService.cs to fetch active applications and calculate their age.
  • Documentation:

    • Update PlatformAPI/README.md to include documentation for the new report endpoint.

For more details, open the Copilot Workspace session.

Related to #1

Add reporting functionality for active applications and their age.

* **Frontend Changes:**
  - Add `svelte-chartjs` as a dependency in `frontend/package.json`.
  - Create a new Svelte component `frontend/src/routes/report/+page.svelte` to display the report with a pie chart.
  - Fetch data from the new API endpoint in `PlatformAPI/Program.cs`.

* **Backend Changes:**
  - Add a new endpoint `/api/apps/report` in `PlatformAPI/Program.cs` to generate the report.
  - Implement `GetApplicationsReportAsync` method in `PlatformAPI/Services/ApplicationStorageService.cs` to fetch active applications and calculate their age.

* **Documentation:**
  - Update `PlatformAPI/README.md` to include documentation for the new report endpoint.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dylan-mccarthy/Minimal-IDP/issues/1?shareId=XXXX-XXXX-XXXX-XXXX).
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.

2 participants