Skip to content

Commit

Permalink
feat(my-pages): add info and deadline text (#16896)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
disaerna and kodiakhq[bot] authored Nov 15, 2024
1 parent a693022 commit b9cf31e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ export class LawAndOrderService {
(alert) => alert.type === AlertMessageTypeEnum.Success,
)?.message,
description: subpoenaData.subtitle,
information: subpoenaData.subpoenaInfoText,
deadline: subpoenaData.subpoenaNotificationDeadline,
},
}
return data
Expand Down
8 changes: 4 additions & 4 deletions libs/api/domains/law-and-order/src/models/subpoena.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import { Group } from './group.model'

@ObjectType('LawAndOrderSubpoenaTexts')
export class Text {
@Field({ nullable: true })
intro?: string

@Field({ nullable: true })
confirmation?: string

@Field({ nullable: true })
description?: string

@Field({ nullable: true })
claim?: string
information?: string

@Field({ nullable: true })
deadline?: string
}

@ObjectType('LawAndOrderSubpoenaData')
Expand Down
4 changes: 4 additions & 0 deletions libs/clients/judicial-system-sp/src/clientConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@
"type": "object",
"properties": {
"title": { "type": "string" },
"subpoenaInfoText": { "type": "string" },
"subpoenaNotificationDeadline": { "type": "string" },
"subtitle": { "type": "string" },
"groups": {
"type": "array",
Expand All @@ -468,6 +470,8 @@
},
"required": [
"title",
"subpoenaInfoText",
"subpoenaNotificationDeadline",
"subtitle",
"groups",
"alerts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ query GetSubpoena($input: LawAndOrderSubpoenaInput!, $locale: String!) {
texts {
confirmation
description
information
deadline
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,13 @@ const Subpoena = () => {
)}
<Box paddingRight={[0, 0, 24]} marginTop={5}>
<Text marginBottom={2}>
{formatMessage(messages.subpoenaInfoText)}
{subpoena.texts?.information ??
formatMessage(messages.subpoenaInfoText)}
</Text>
<Text>
{subpoena.texts?.deadline ??
formatMessage(messages.subpoenaInfoText2)}
</Text>
<Text>{formatMessage(messages.subpoenaInfoText2)}</Text>
</Box>

{!loading && subpoena.data.hasChosen === false && (
Expand Down

0 comments on commit b9cf31e

Please sign in to comment.