Skip to content

refractor: auth/profile fetching into helper#52

Merged
mrepol742 merged 1 commit intohallofcodes:masterfrom
mrepol742:master
Mar 26, 2026
Merged

refractor: auth/profile fetching into helper#52
mrepol742 merged 1 commit intohallofcodes:masterfrom
mrepol742:master

Conversation

@mrepol742
Copy link
Member

  • Add getUserWithProfile helper to centralize auth/profile fetching
  • Replace inline createClient/auth/profile calls across dashboard pages
  • Add Metadata titles and unify login redirects with ?from= path
  • Return redirect() for unauthenticated pages instead of null
  • Parallelize user_stats and user_projects upserts with Promise.all
  • UI/layout tweaks: show "No users found" and adjust dashboard spacing
  • Fallback DashboardLayout role to "user" when profile is absent

- Add getUserWithProfile helper to centralize auth/profile fetching
- Replace inline createClient/auth/profile calls across dashboard pages
- Add Metadata titles and unify login redirects with ?from= path
- Return redirect() for unauthenticated pages instead of null
- Parallelize user_stats and user_projects upserts with Promise.all
- UI/layout tweaks: show "No users found" and adjust dashboard spacing
- Fallback DashboardLayout role to "user" when profile is absent
@mrepol742 mrepol742 merged commit db73b1d into hallofcodes:master Mar 26, 2026
0 of 2 checks passed
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.

1 participant