feat: render visa status + next date on AttendingMembersCard

Each member now sees their own visa status (status badge + next
upcoming date) on the applicant dashboard, sourced from
applicant.getMyVisaApplications. Other teammates' rows still show the
generic "Visa support" badge if they need a visa, since the platform
deliberately scopes visa visibility to the caller. The whole visa
surface auto-hides if the program toggle is off.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt
2026-04-28 19:40:25 +02:00
parent fe630e0e2d
commit 46a78c3a74
2 changed files with 62 additions and 6 deletions

View File

@@ -2814,6 +2814,7 @@ export const applicantRouter = router({
.map((a) => ({
id: a.visaApplication!.id,
attendingMemberId: a.id,
userId: a.userId,
status: a.visaApplication!.status,
nationality: a.visaApplication!.nationality,
invitationSentAt: a.visaApplication!.invitationSentAt,