Pull Request Merged
PR #50 merged: fix: dashboard not showing resources and environment
Summary
- Fixes dashboard showing "Unknown" for database and cache resources
- Fixes sidebar showing "No environment" instead of "production"
Changes
DashboardStatsControllernow fetches databases from environment endpoint (/projects/{uuid}/production) instead of global/databasesendpoint which was incomplete- Added fallback to check global databases filtered by
environment_idto catch Dragonfly/KeyDB not included in environment response (Coolify API quirk) - Simplified
EnvironmentSwitcherto usestats.environmentdata instead of making separate API call
Test plan
- All tests pass (230 tests)
- Lint passes
- Tested with devtrends app - dashboard now shows:
- Environment: production
- Primary DB: devtrends-db (PostgreSQL)
- Redis/Cache: devtrends-cache (Dragonfly)
+261
additions
-252
deletions
13
files changed