Skip to content

Add KYC files details page with extended columns#944

Merged
TaprootFreak merged 26 commits intodevelopfrom
feat/kyc-files-details-page
Feb 5, 2026
Merged

Add KYC files details page with extended columns#944
TaprootFreak merged 26 commits intodevelopfrom
feat/kyc-files-details-page

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add new /compliance/kyc-files/details route with extended columns (Status, Domizil, Sitzgesellschaft, Dates, GmeR, PEP, etc.)
  • Add CSV export functionality to both KYC files screens
  • Add details navigation button (info icon) to KYC files list

Test plan

  • Navigate to /compliance/kyc-files and verify info button appears
  • Click info button and verify navigation to /compliance/kyc-files/details
  • Verify all new columns display correctly
  • Test CSV export on both pages
  • Verify Status shows "open"/"closed" based on amlListExpiredDate
  • Verify Sitzgesellschaft shows "Ja" when Type = "Sitzgesellschaft"

- Add new /compliance/kyc-files/details route with additional columns
- Add CSV export functionality to both KYC files screens
- Add details navigation button (info icon) to KYC files list
- Extend KycFileListEntry interface with new fields
- Calculate status (open/closed) based on amlListExpiredDate
- Calculate Sitzgesellschaft based on amlAccountType
- Add isLoggedIn check before fetching data to prevent 401 errors
- Add Playwright E2E test for KYC Files Details page
@TaprootFreak TaprootFreak marked this pull request as ready for review February 4, 2026 22:51
@DFXswiss DFXswiss deleted a comment from github-actions bot Feb 4, 2026
- Test page load with correct headers and data display
- Verify date format (dd.mm.yyyy) and volume format (Swiss)
- Test check and download button visibility
- Test CSV export functionality
- Add screenshots for visual verification
- Status filter (All/Open/Closed)
- Date range filter for Eröffnungsdatum (from/to)
- Check All and CSV Export now work on filtered data
- Shows count of filtered entries
Remove amlListStatus fallback logic as it's not applicable for
the KYC file status determination. Status is now determined solely
by whether amlListExpiredDate is set (closed) or not (open).
- Move Check Filtered Files and CSV Export buttons from table header
  to filter bar for better UX
- Change download icon from ARROW_DOWN to FILE for consistency
- Replace hardcoded address/signature with ADMIN_SEED from api/.env
- Use session token authentication matching other compliance tests
- Add proper TypeScript types for Page parameter
- Replace waitForTimeout with waitForLoadState('networkidle')
- Wrap async button handlers in try-catch blocks
- Display error message to user when API calls fail
- Remove committed screenshots from e2e tests (should not be in repo)
- Remove screenshot generation from E2E test code
- Fix CSV export icon: use ARROW_DOWN consistently on both screens
@TaprootFreak
Copy link
Collaborator Author

Ready for Merge

@TaprootFreak TaprootFreak merged commit 1490ce1 into develop Feb 5, 2026
6 checks passed
@TaprootFreak TaprootFreak deleted the feat/kyc-files-details-page branch February 5, 2026 10:17
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