feat: extend compliance user details with new tabs#3647
Draft
feat: extend compliance user details with new tabs#3647
Conversation
…o compliance user details - Extend support service to load swap routes, virtual ibans, ref rewards and notifications per userData - Add explorer URLs for buy/swap deposit and ref reward target/tx addresses - Add SwapSupportInfo, VirtualIbanSupportInfo, RefRewardSupportInfo and NotificationSupportInfo DTOs - Add getSwapsByUserDataId and getRefRewardsByUserDataId service methods - Wire ReferralModule and NotificationModule into SupportModule
4 tasks
…tering - Widen GET /support/:id guard from COMPLIANCE to SUPPORT (still accessible by COMPLIANCE/ADMIN via role hierarchy) - Pass jwt role into getUserDataDetails so the service can filter sensitive fields per role - Add FIELDS_HIDDEN_BY_ROLE map: SUPPORT and MARKETING get empty kycFiles and ipLogs (skipping the corresponding queries)
davidleomay
reviewed
Apr 30, 2026
Replaces FIELDS_HIDDEN_BY_ROLE with a single RESTRICTED_ROLES source of truth. The new SupportPermissions block (viewKycFiles, viewKycLogs, viewIpLogs, viewSupportIssues, canRequestLimit, canPerformTransactionActions, viewRecommendation) gates DB queries on the backend and is mirrored to the frontend so it can render visibility/actions without knowing roles.
davidleomay
approved these changes
Apr 30, 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
GET /support/:idwith swap routes, virtual ibans, ref rewards and notifications for the compliance user detail pageSwapService.getSwapsByUserDataId,RefRewardService.getRefRewardsByUserDataIdReferralModuleandNotificationModuleintoSupportModuleTest plan
GET /support/:idreturns the new arrays (swapRoutes,virtualIbans,refRewards,notifications)buyRoutes,sellRoutes,bankDatas, ...)feature/compliance-user-detail-tabsinservicesrepo renders all new tabs