Skip to content

Conversation

@AlecLichtenberger
Copy link
Collaborator

Summary

Describe the purpose of this pull request. What does it do, and why is it needed?
Creates API endpoints and routes for application information analytics, and displays analytics on the frontend analytics page

Closes #188


Changes Made

  • Added new API endpoint and controller
  • Added functionality in the frontend to ping the new api endpoint and pull information
  • Refactored some of the frontend code to remove hard coding of analytics

Briefly summarize the major changes:

  • Added a new controller to expose the analytics to the frontend
  • Refactored frontend code to ping the API and fetch the analytics from the backend
  • New API endpoint
  • Analytics now shows up to date information on application analytics

Testing

How was this change tested?

  • Loading and changing application information to ensure that the information was properly displayed on the website

@vercel
Copy link

vercel bot commented Nov 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
opportune Ready Ready Preview Comment Nov 22, 2025 0:05am

@vercel
Copy link

vercel bot commented Nov 15, 2025

Deployment failed with the following error:

The `vercel.json` schema validation failed with the following message: `functions.api/index.ts.excludeFiles` should be string

Learn More: https://vercel.com/docs/concepts/projects/project-configuration

Copy link
Collaborator

@n1sh1thaS n1sh1thaS left a comment

Choose a reason for hiding this comment

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

Great work! I left a comment for one tiny change


setMonthlyData(monthRes.data ?? []);
setStats(res.data);
} catch (err) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a toast notification here which shows up if the application is unable to fetch the analytics page? You can refer to ApplicationModal.tsx to see how toast notifications are added.

@n1sh1thaS
Copy link
Collaborator

Also, could you change the Insights and Recommendations section to have more generic comments?

@LC0229 LC0229 merged commit fb96bd5 into main Nov 22, 2025
5 checks passed
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.

[ENGINEERING] Backend Integration for Analytics

5 participants