Skip to content

Commit

Permalink
Legger til visning av ferdigstilt-hendelse for varsling (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
vildestefferud authored Nov 22, 2024
1 parent abdb829 commit 1084b5b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
deploy-til-dev:
name: Deploy til dev-gcp
needs: bygg-og-push-docker-image
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/amp'
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/legger-til-ferdigstilt-hendelse-varsling'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 4 additions & 0 deletions src/api/kandidatvarsel-api/kandidatvarsel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export enum EksternStatus {
/** Vi har fått bekreftet at en e-post er sendt. */
VELLYKKET_EPOST = 'VELLYKKET_EPOST',

/** Varsling er ferdigstilt*/
FERDIGSTILT = 'FERDIGSTILT',

/** Det skjedde en feil, og vi vil ikke prøve å sende varselet igjen. */
FEIL = 'FEIL',
}
Expand All @@ -58,6 +61,7 @@ const EksternStatusSchema = z
.literal(EksternStatus.UNDER_UTSENDING)
.or(z.literal(EksternStatus.VELLYKKET_SMS))
.or(z.literal(EksternStatus.VELLYKKET_EPOST))
.or(z.literal(EksternStatus.FERDIGSTILT))
.or(z.literal(EksternStatus.FEIL));

const SmsSchema = z
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ const Popuptekst: FunctionComponent<{ sms: Sms }> = ({ sms }) => {
<br /> Ekstern varsel: epost sendt
</>
);
case 'FERDIGSTILT':
return (
<>
<br /> Ekstern varsel: varsling er ferdigstilt{' '}
</>
);
case 'FEIL':
return (
<>
Expand Down

0 comments on commit 1084b5b

Please sign in to comment.