feat: add portal page with application grid and settings navigation#15
Merged
Conversation
- Add user-facing GET /api/applications endpoint that returns applications filtered by user's group membership - Replace placeholder root page with portal showing: - Welcome header with user info and sign out - Application grid with group-based access control - Account Settings card linking to /dashboard - Add UserApplication schema to API types
TymekV
requested changes
Apr 7, 2026
| .find_one(doc! { "_id": *user_id }) | ||
| .await?; | ||
|
|
||
| let user_groups: Vec<ObjectId> = user.map(|u| u.groups).unwrap_or_default(); |
Member
There was a problem hiding this comment.
Remove types that can be inferred.
Suggested change
| let user_groups: Vec<ObjectId> = user.map(|u| u.groups).unwrap_or_default(); | |
| let user_groups = user.map(|u| u.groups).unwrap_or_default(); |
|
|
||
| let apps: Vec<Application> = state | ||
| .database | ||
| .collection::<Application>("applications") |
Member
There was a problem hiding this comment.
Same here
Suggested change
| .collection::<Application>("applications") | |
| .collection("applications") |
- Add user dropdown (avatar initial, display name) replacing the separate Sign out button and Account Settings card; shows account settings link and log out option - Add shared DropdownMenu UI component (Radix UI primitives) - Remove explicitly annotated types that Rust can infer in applications.rs - Unify log out label with dashboard (was "Sign out")
TymekV
approved these changes
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Replaces the placeholder root page (
/) with a proper portal that shows authenticated users their available applications and links to account settings.Changes
Backend —
server/src/routes/api/applications.rsGET /api/applicationsendpoint behindrequire_authmiddlewareallowed_groupsempty = visible to all, non-empty = user must belong to at least one group)UserApplication { name, slug, icon }responseFrontend —
apps/frontend/app/page.tsx/login/dashboardmotion/reactAPI Schema —
packages/api-schema/api.d.tsUserApplicationschema andget_my_applicationsoperation typesSelf-Review Checklist:
Frontend checklist
useForm— N/A (no forms in this PR)Backend checklist
validatorcrate for API input validation — N/A (no user input in this endpoint)