Skip to content

feat: API routing, UI polish and CI integrations - #2

Merged
magnusgp merged 5 commits into
mainfrom
004-design-saas-polish
Nov 5, 2025
Merged

magnusgp merged 5 commits into
mainfrom
004-design-saas-polish

Conversation

@magnusgp

@magnusgp magnusgp commented Nov 5, 2025

Copy link
Copy Markdown
Owner

This pull request introduces a metrics and monitoring system to the ClipNotes backend and updates the documentation and CI workflow to reflect these changes. The most important updates are the addition of request counting middleware, a new /api/metrics endpoint, supporting models and services for metrics aggregation, and improvements to the developer experience through CI automation and a more comprehensive README.

Monitoring & Metrics System

  • Added RequestCounterMiddleware (backend/app/api/middleware/request_counter.py) to record daily API request totals for usage metrics, skipping non-API and OPTIONS requests.
  • Introduced MetricsService and dependency injection (backend/app/api/deps.py) to provide metrics aggregation logic and database access for metrics endpoints. [1] [2]
  • Implemented a new /api/metrics endpoint in FastAPI routes to expose usage, latency, and error metrics, with input validation for the window parameter. [1] [2] [3] [4]
  • Added Pydantic models for metrics response and aggregation buckets (backend/app/models/metrics.py).

Developer Experience & Documentation

  • Updated README.md with a feature tour, quick start, deployment notes, and details on the new metrics dashboard and usage tracking. The documentation now references the CI badge and clarifies the verification workflow.
  • Added a GitHub Actions workflow (.github/workflows/ci.yml) to automate backend/frontend linting, testing, and building on every push or pull request.

@vercel

vercel Bot commented Nov 5, 2025 •

Copy link
Copy Markdown

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

Project Deployment Preview Comments Updated (UTC)
clipnotes Ready Ready Preview Comment Nov 5, 2025 9:27pm

@magnusgp
magnusgp merged commit 9dbe95e into main Nov 5, 2025
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — f6741db5 Deployed Nov 5, 2025 by vercel[bot]
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.

1 participant