Skip to content

Commit

Permalink
Merge pull request #698 from ls1intum/adding-gitlab-to-export
Browse files Browse the repository at this point in the history
adding gitlab username to data export
  • Loading branch information
Mtze authored Oct 2, 2024
2 parents 5a072fd + c93c21c commit 76c019e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions client/src/management/IntroCourse/components/SeatPlanManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
} from '@mantine/core'
import {
IconBrandApple,
IconBrandGitlab,
IconDeviceLaptop,
IconDeviceMobile,
IconDeviceTablet,
Expand Down Expand Up @@ -248,6 +249,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,
Expand Down Expand Up @@ -444,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 (
<>
<Stack>
{!!gitlabUsername && (
<Group>
<IconBrandGitlab color='#2B70BE' />
<Text c='dimmed' fw='500' fz='sm'>
{gitlabUsername}
</Text>
</Group>
)}
{!!appleId && (
<Group>
<IconBrandApple color='#2B70BE' />
Expand Down

0 comments on commit 76c019e

Please sign in to comment.