From 3cd7c94eeb3f0cf917638c6b0272c54e93fde082 Mon Sep 17 00:00:00 2001 From: Stefan Niclas Heun Date: Tue, 1 Oct 2024 16:31:16 +0200 Subject: [PATCH 1/2] adding gitlab username to data export --- client/src/management/IntroCourse/components/SeatPlanManager.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/management/IntroCourse/components/SeatPlanManager.tsx b/client/src/management/IntroCourse/components/SeatPlanManager.tsx index f50c7665..0a144775 100644 --- a/client/src/management/IntroCourse/components/SeatPlanManager.tsx +++ b/client/src/management/IntroCourse/components/SeatPlanManager.tsx @@ -248,6 +248,7 @@ export const SeatPlanManager = ({ keycloak }: SeatPlanManagerProps): JSX.Element tutorName: `${tutor?.firstName ?? '-'} ${tutor?.lastName ?? '-'}`, seat: participation.seat, needsChairDevice: participation.chairDevice ?? '-', + gitlabUsername: participation.student.developmentProfile?.gitlabUsername, appleId: participation.student.developmentProfile?.appleId, iPhoneDeviceId: participation.student.developmentProfile?.iPhoneDeviceId, iPadDeviceId: participation.student.developmentProfile?.iPadDeviceId, From c93c21c0ffc7d1d5b4450ae2525d11d9c6662775 Mon Sep 17 00:00:00 2001 From: Stefan Niclas Heun Date: Tue, 1 Oct 2024 17:27:23 +0200 Subject: [PATCH 2/2] adding gitlab username to the UI --- .../components/SeatPlanManager.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/client/src/management/IntroCourse/components/SeatPlanManager.tsx b/client/src/management/IntroCourse/components/SeatPlanManager.tsx index 0a144775..19862701 100644 --- a/client/src/management/IntroCourse/components/SeatPlanManager.tsx +++ b/client/src/management/IntroCourse/components/SeatPlanManager.tsx @@ -17,6 +17,7 @@ import { } from '@mantine/core' import { IconBrandApple, + IconBrandGitlab, IconDeviceLaptop, IconDeviceMobile, IconDeviceTablet, @@ -445,12 +446,26 @@ export const SeatPlanManager = ({ keycloak }: SeatPlanManagerProps): JSX.Element title: 'Devices', textAlign: 'center', render: ({ student }) => { - const { appleId, iPhoneDeviceId, iPadDeviceId, appleWatchDeviceId, macBookDeviceId } = - student.developmentProfile ?? {} + const { + gitlabUsername, + appleId, + iPhoneDeviceId, + iPadDeviceId, + appleWatchDeviceId, + macBookDeviceId, + } = student.developmentProfile ?? {} return ( <> + {!!gitlabUsername && ( + + + + {gitlabUsername} + + + )} {!!appleId && (