Skip to content

Commit

Permalink
Add national id field to journeyman table view
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Aug 13, 2024
1 parent 7787f48 commit d6c2a93
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ const JourneymanList = ({ slice }: JourneymanListProps) => {
<T.Row>
<T.HeadData>{n('name', 'Nafn')}</T.HeadData>
<T.HeadData>{n('profession', 'Iðngrein')}</T.HeadData>
<T.HeadData>{n('dateOfPublication', 'Útgáfuár')}</T.HeadData>
<T.HeadData align="right">
{n('dateOfPublication', 'Útgáfuár')}
</T.HeadData>
Expand All @@ -285,16 +286,11 @@ const JourneymanList = ({ slice }: JourneymanListProps) => {
</Box>
</T.Data>
<T.Data>
{licences.dateOfPublication && (
<Box>
<Text textAlign="right" variant="small">
{format(
new Date(licences.dateOfPublication),
'yyyy',
)}
</Text>
</Box>
)}
<Box>
<Text textAlign="right" variant="small">
{licences.nationalId}
</Text>
</Box>
</T.Data>
</T.Row>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const GET_JOURNEYMAN_LICENCES_QUERY = gql`
name
dateOfPublication
profession
nationalId
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions libs/clients/syslumenn/src/clientConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3210,6 +3210,9 @@
"nafn": {
"type": "string"
},
"kennitala": {
"type": "string"
},
"idngrein": {
"type": "string"
},
Expand Down Expand Up @@ -3432,6 +3435,9 @@
"nafn": {
"type": "string"
},
"kennitala": {
"type": "string"
},
"starfsrettindi": {
"type": "string"
}
Expand Down Expand Up @@ -4626,6 +4632,10 @@
},
"malsvari": {
"$ref": "#/definitions/Malsvari"
},
"arfshlutfall": {
"type": "number",
"format": "decimal"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions libs/clients/syslumenn/src/lib/syslumennClient.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ export interface JourneymanLicence {
name?: string
dateOfPublication?: Date
profession?: string
nationalId?: string
}

export interface ProfessionRight {
Expand Down
1 change: 1 addition & 0 deletions libs/clients/syslumenn/src/lib/syslumennClient.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,7 @@ export const mapJourneymanLicence = (
name: licence.nafn,
dateOfPublication: licence.gildirFra,
profession: licence.idngrein,
nationalId: licence.kennitala,
}
}

Expand Down

0 comments on commit d6c2a93

Please sign in to comment.