Skip to content

feat: load user roles and groups into MPUserProfile + Discord release notification#50

Merged
chriskehayias merged 2 commits intomainfrom
feature/user-profile-roles-groups
Feb 26, 2026
Merged

feat: load user roles and groups into MPUserProfile + Discord release notification#50
chriskehayias merged 2 commits intomainfrom
feature/user-profile-roles-groups

Conversation

@chriskehayias
Copy link
Contributor

Summary

  • Extends MPUserProfile to include the user's roles and groups, loaded via UserService
  • Updates user-context and shared actions to surface roles/groups to the rest of the app
  • Adds a GitHub Actions workflow that posts a Discord embed notification on every new release, using jq to safely handle special characters in release notes

Test plan

  • Verify MPUserProfile correctly populates roles and groups for an authenticated user
  • Confirm useUser() context exposes roles/groups to client components
  • Create a test GitHub release and confirm the Discord notification fires with correct embed content
  • Verify release notes containing quotes or newlines do not break the Discord payload

Generated with Claude Code

chriskehayias and others added 2 commits February 25, 2026 14:22
After login, UserService now fetches the user's roles (from dp_User_Roles)
and user groups (from dp_User_User_Groups) in parallel and includes them
as string arrays on MPUserProfile. This enables downstream components to
make authorization decisions based on roles and group membership.

- Add roles and userGroups fields to MPUserProfile interface
- Query dp_User_Roles and dp_User_User_Groups via _ID_TABLE JOINs
- Return undefined explicitly when user not found (with early return guard)
- Update shared action and user context to handle undefined return type
- Add tests for roles/groups mapping and empty result handling

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sends a Discord embed on new GitHub releases using jq to safely build
the JSON payload, avoiding breakage from special characters in release notes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chriskehayias chriskehayias merged commit 2990af0 into main Feb 26, 2026
1 check passed
@codecov
Copy link

codecov bot commented Feb 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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