Skip to content

Add server side route#68

Open
gloskull wants to merge 2 commits into
Adamantine-guild:mainfrom
gloskull:add-server-side-route
Open

Add server side route#68
gloskull wants to merge 2 commits into
Adamantine-guild:mainfrom
gloskull:add-server-side-route

Conversation

@gloskull

Copy link
Copy Markdown

This PR establishes a stable server-side boundary for the GuildPass dashboard by introducing a typed service layer and corresponding API routes for core entities (passes, guilds, members, activity, and settings).

Key changes include:

  • Service Layer: New services in apps/dashboard/lib/data/ provide a clean interface between the API and data repositories.
  • API Routes: Handlers under apps/dashboard/app/api/ now call these services, validate request parameters, and return consistent JSON shapes.
  • Frontend Migration: All dashboard pages have been updated to remove direct imports of mock data arrays, now relying exclusively on the API layer for data fetching.
  • Robustness & Quality: Improved input validation, fixed React anti-patterns in form handling, and ensured consistent permission enforcement across the API boundary.
  • Testing: Added unit and integration tests for all new endpoints, ensuring both success and error paths are covered.

This work fulfills the requirements for issue #49 and provides a solid foundation for future live integrations.

Closes #49

google-labs-jules Bot and others added 2 commits June 27, 2026 13:15
- Created typed service layer in `apps/dashboard/lib/data/` for passes, guilds, members, activity, and settings.
- Refactored API routes in `apps/dashboard/app/api/` to use the new service layer.
- Added input validation and consistent error handling to API routes.
- Migrated dashboard frontend pages to fetch data via API routes instead of direct mock data imports.
- Refactored Settings page to use controlled components for better React practices.
- Implemented a comprehensive test suite for all new API endpoints.
- Fixed minor issues in mock repositories and API helpers to support the new boundary.

Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…9087160771705251

Add server-side route handlers for dashboard data
@gloskull

Copy link
Copy Markdown
Author

Done with this issue.
Please merge and give and high review.
Please if there are any more tasks, assign them to me, i'd make sure to get them done quickly and submit my PR's in under 5 hours

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.

Add server-side route handlers for dashboard data

1 participant