Skip to content

feat: health check, observability, dark mode, auth & shipment tests#1071

Open
walexjnr wants to merge 2 commits into
CodeGirlsInc:mainfrom
walexjnr:feat/be-01-fe-38-39-40-health-dark-mode-tests
Open

feat: health check, observability, dark mode, auth & shipment tests#1071
walexjnr wants to merge 2 commits into
CodeGirlsInc:mainfrom
walexjnr:feat/be-01-fe-38-39-40-health-dark-mode-tests

Conversation

@walexjnr

Copy link
Copy Markdown

Summary

  • Add GET /api/v1/health endpoint (TypeORM + disk health indicators via @nestjs/terminus)
  • Add GET /api/v1/metrics Prometheus endpoint via @willsoto/nestjs-prometheus
  • Add X-Correlation-ID request tracing middleware
  • Set TypeORM synchronize: false in all environments
  • Add SSR-safe ThemeToggle component with ThemeProvider (localStorage + system preference)
  • Extend auth store with setRefreshToken / oken state
  • Add jest + babel config for TypeScript/React tests; 32 passing unit tests for auth store and ShipmentCard
  • Fix pre-existing build errors (missing package/env-validation, cache-manager types, route-calculator field names)

closes #958
closes #906
closes #907
closes #908

@vercel

vercel Bot commented Jun 27, 2026

Copy link
Copy Markdown

@walexjnr is attempting to deploy a commit to the Mftee's projects Team on Vercel.

A member of the Team first needs to authorize it.

@mftee

mftee commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

@walexjnr kindly resolve conflicts

walexjnr and others added 2 commits June 27, 2026 15:00
…pment tests

- Add HealthModule with TypeORM and disk health indicators at GET /api/v1/health
- Register PrometheusModule for metrics at GET /api/v1/metrics
- Add CorrelationIdMiddleware (X-Correlation-ID header on every request)
- Set TypeORM synchronize to false for all environments
- Add package/env-validation module resolving missing shared module
- Install @nestjs/cache-manager, cache-manager, cache-manager-redis-yet
- Fix pre-existing type errors in admin, route-calculator, avatar-upload, and cache services
- Add ThemeToggle component and ThemeProvider in frontend/package/components/ThemeToggle/
- Extend auth store with setRefreshToken and token state
- Add jest/babel config for TypeScript+React test transforms
- Add 32 passing unit tests: auth store (14 tests) and ShipmentCard (18 tests)

Closes CodeGirlsInc#958
Closes CodeGirlsInc#906
Closes CodeGirlsInc#907
Closes CodeGirlsInc#908
@walexjnr walexjnr force-pushed the feat/be-01-fe-38-39-40-health-dark-mode-tests branch from a805d52 to 3986197 Compare June 27, 2026 15:25
@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

@walexjnr Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants