Skip to content

feat: extend compliance user details with new tabs#3647

Draft
bernd2022 wants to merge 3 commits intodevelopfrom
feature/compliance-user-detail-tabs
Draft

feat: extend compliance user details with new tabs#3647
bernd2022 wants to merge 3 commits intodevelopfrom
feature/compliance-user-detail-tabs

Conversation

@bernd2022
Copy link
Copy Markdown
Collaborator

Summary

  • Extends GET /support/:id with swap routes, virtual ibans, ref rewards and notifications for the compliance user detail page
  • Adds explorer URLs for buy/swap deposit addresses and ref-reward target/tx addresses (consumed by the services frontend)
  • New service methods: SwapService.getSwapsByUserDataId, RefRewardService.getRefRewardsByUserDataId
  • Wires ReferralModule and NotificationModule into SupportModule

Test plan

  • GET /support/:id returns the new arrays (swapRoutes, virtualIbans, refRewards, notifications)
  • Explorer URLs are populated for EVM/BSC/BTC routes and missing for unsupported blockchains
  • No regressions for existing fields (buyRoutes, sellRoutes, bankDatas, ...)
  • Frontend feature/compliance-user-detail-tabs in services repo renders all new tabs

…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
…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)
Comment thread src/subdomains/generic/support/support.service.ts
Comment thread src/subdomains/generic/support/support.service.ts Outdated
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.
@bernd2022 bernd2022 requested a review from davidleomay April 30, 2026 11:40
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.

2 participants