Skip to content

feat(linked-roles): Discord OAuth, BFF enqueue, account UX - #323

Draft
owens1127 wants to merge 4 commits into
mainfrom
feat/discord-linked-roles
Draft

feat(linked-roles): Discord OAuth, BFF enqueue, account UX#323
owens1127 wants to merge 4 commits into
mainfrom
feat/discord-linked-roles

Conversation

@owens1127

Copy link
Copy Markdown
Contributor

Summary

RaidHub-Website changes for Discord linked roles: OAuth scopes, token refresh, account UI, tRPC sync health, and BFF call to API internal enqueue.

Key changes

  • Discord identify + role_connections.write; discordTokenRefresh on session; authEvents push after link.
  • pushLinkedRoleMetadataPOST /internal/queue-discord-linked-role-sync with x-raidhub-client-secret.
  • tRPC discordLinkedRolesStatus / pushDiscordLinkedRoles; DiscordLinkedRolesPanel; Prisma sync columns + migration.
  • internalPaths + OpenAPI/types refresh; RaidHubError envelope message helper.

Related PRs

  • API: feat/discord-linked-roles-api
  • Services: feat/discord-linked-roles (Raid-Hub/Services)
  • raidhub-discord: feat/linked-account-cache-and-user-jwt

Merge notes

Requires API CLIENT_SECRETRAIDHUB_CLIENT_SECRET and Turso schema migration applied.

Made with Cursor

owens1127 and others added 3 commits May 3, 2026 21:15
Add docs/DISCORD_LINKED_ROLES.md and LINKED_ROLES_EXECUTION.md; README
links. Website PR should merge before enabling Hermes producer.

Branch: feat/discord-linked-roles
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Discord scopes identify + role_connections.write; session refresh via discordTokenRefresh.
- pushLinkedRoleMetadata + internal queue; authEvents post-link sync; tRPC discordLinkedRolesStatus (syncHealth) + pushDiscordLinkedRoles.
- DiscordLinkedRolesPanel + linkedRoleSyncError sanitizer; RaidHubError envelope helper.
- Prisma account sync columns + migration; openapi/types aligned with API.
- Account page refresh; remove deprecated account components; internalPaths for typed internal POSTs.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented May 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
raid-hub Ready Ready Preview May 4, 2026 3:10am

Request Review

Co-authored-by: Cursor <cursoragent@cursor.com>
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