Difficulty: Advanced
Type: Feature
Summary
Create server-side API routes for dashboard entities so the frontend can transition from direct mock imports to a stable backend boundary.
Current Behaviour
Dashboard pages can read data from local mock files. The README notes that all data is currently mock data, while the monorepo includes an integration client and webhook utilities.
Expected Behaviour
The dashboard should expose server-side route handlers for passes, guilds, members, activity, and settings, with mock-backed implementations first and live adapters later.
Suggested Implementation
Add route handlers under apps/dashboard/app/api/ that call typed services. Keep mock storage behind the service layer. Return consistent JSON response shapes and typed error responses.
Files or Areas Likely Affected
apps/dashboard/app/api/passes/
apps/dashboard/app/api/guilds/
apps/dashboard/app/api/members/
apps/dashboard/app/api/activity/
apps/dashboard/lib/data/
apps/dashboard/lib/api/
Acceptance Criteria
Additional Notes
Do not expose secrets in client responses. This issue should establish a server-safe boundary for later live integrations.
Difficulty: Advanced
Type: Feature
Summary
Create server-side API routes for dashboard entities so the frontend can transition from direct mock imports to a stable backend boundary.
Current Behaviour
Dashboard pages can read data from local mock files. The README notes that all data is currently mock data, while the monorepo includes an integration client and webhook utilities.
Expected Behaviour
The dashboard should expose server-side route handlers for passes, guilds, members, activity, and settings, with mock-backed implementations first and live adapters later.
Suggested Implementation
Add route handlers under
apps/dashboard/app/api/that call typed services. Keep mock storage behind the service layer. Return consistent JSON response shapes and typed error responses.Files or Areas Likely Affected
apps/dashboard/app/api/passes/apps/dashboard/app/api/guilds/apps/dashboard/app/api/members/apps/dashboard/app/api/activity/apps/dashboard/lib/data/apps/dashboard/lib/api/Acceptance Criteria
Additional Notes
Do not expose secrets in client responses. This issue should establish a server-safe boundary for later live integrations.