Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kodeverk 2024 uke26 #6301

Open
wants to merge 175 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
c9f5f37
Legge til interceptor for kodeverkobjekter
thomashwi Feb 7, 2024
9ba736d
Merge branch 'master' into kodeverk-2024
thomashwi Feb 20, 2024
80cdfc7
Merge branch 'master' into kodeverk-2024
thomashwi Feb 23, 2024
06d5982
Opprett ny v2 lib pakke, og putte nye kodeverkfunksjoner der
thomashwi Feb 23, 2024
3bb09e5
Update yarn.lock
thomashwi Feb 23, 2024
9963f18
Rammeverk for håndtering av oppslag i kodeverk
thomashwi Mar 5, 2024
0eb3455
Kodeverk: sak-behandling-velger
thomashwi Mar 5, 2024
82fd90b
Kodeverk: oppdatere generelle typer
thomashwi Mar 5, 2024
dcb5b96
Kodeverk: Ubrukte imports sak-behandling-velger
thomashwi Mar 5, 2024
f39912f
Kodeverk: Justere kodeverk-oppslag hook
thomashwi Mar 5, 2024
b06a93e
Kodeverk: (Pakke) sak-fagsak-profil
thomashwi Mar 5, 2024
4bd21a4
Kodeverk: (Pakke) sak-meny-henlegg
thomashwi Mar 6, 2024
c8244f9
Kodeverk: (Pakke) sak-meny-ny-behandling
thomashwi Mar 6, 2024
4d0d70b
Kodeverk: (Pakke) types
thomashwi Mar 6, 2024
3c39a7e
Kodeverk: (Pakke) behandling-anke
thomashwi Mar 6, 2024
8167419
Kodeverk: Skrive om BEHANDLING_RESULTAT_TYPE også
thomashwi Mar 6, 2024
d42df36
Kodeverk: Skrive om BEHANDLING_RESULTAT_TYPE også (glemte et par)
thomashwi Mar 6, 2024
b111ac5
Kodeverk: (Pakke) sak-visittkort
thomashwi Mar 6, 2024
1b82d1f
Kodeverk: (Pakke) Utils
thomashwi Mar 6, 2024
fd26281
Kodeverk: (Pakke) sak-app
thomashwi Mar 6, 2024
76fc76f
Merge branch 'kodeverk-2024' into kodeverk-2024-uke10
thomashwi Mar 6, 2024
9103ed2
Kodeverk: Fiks test i fagsakprofile og behandlingsvelger
thomashwi Mar 7, 2024
6c14972
Kodeverk: (Pakke) sak-app
thomashwi Mar 7, 2024
cf66186
Kodeverk: (Pakke) sak-totrinnskontroll
thomashwi Mar 7, 2024
2c431e9
Kodeverk: (Pakke) sak-app, alle tester grønne
thomashwi Mar 7, 2024
4113553
Kodeverk: (Pakke) sak-meldinger
thomashwi Mar 7, 2024
9eb7ff6
Kodeverk: (Pakke) behandling-klage
thomashwi Mar 7, 2024
74be85e
Kodeverk: (Pakke) behandling-anke
thomashwi Mar 7, 2024
7e9e5d0
Kodeverk: (Pakke) behandling-frisinn
thomashwi Mar 7, 2024
6ab9b10
Kodeverk: (Pakke) behandling-innsyn
thomashwi Mar 7, 2024
bb0c3c9
Kodeverk: (Pakke) behandling-omsorgspenger
thomashwi Mar 7, 2024
931717a
Kodeverk: (Pakke) behandling-opplaeringspenger
thomashwi Mar 8, 2024
ef6c9b3
Kodeverk: (Pakke) behandling-pleiepenger
thomashwi Mar 8, 2024
e003d57
Kodeverk: (Pakke) behandling-pleiepenger-sluttfase
thomashwi Mar 12, 2024
414c74a
Kodeverk: Noen ubrukte imports og variabler
thomashwi Mar 12, 2024
9cd2476
Kodeverk: (Pakke) behandling-tilbakekreving
thomashwi Mar 12, 2024
c13739f
Kodeverk: (Pakke) behandling-unntak
thomashwi Mar 12, 2024
3686627
Kodeverk: litt rydding
thomashwi Mar 12, 2024
e6b9445
Kodeverk: (Pakke) behandling-utvidet-rett
thomashwi Mar 12, 2024
ee8ea39
Unødendig import
thomashwi Mar 12, 2024
32bd1ee
Kodeverk: (Pakke) behandling-felles
thomashwi Mar 12, 2024
74b4458
Kodeverk: (Pakker) prosess-vilkar-*
thomashwi Mar 13, 2024
e825cf7
Kodeverk: (Pakke) fakta-arbeidsforhold
thomashwi Mar 13, 2024
25da71a
Kodeverk: (Pakke) fakta-medlemsskap
thomashwi Mar 13, 2024
740e3e0
Merge branch 'kodeverk-2024-uke10' into kodeverk-2024-uke12
thomashwi Mar 20, 2024
d443df6
Kodeverk: (Pakke) fakta-opptjening-oms
thomashwi Mar 20, 2024
f541aa1
Kodeverk: (Pakke) fakta-bosted-soker
thomashwi Mar 20, 2024
448c526
Kodeverk: (Pakke) fakta-direkte-overgang
thomashwi Mar 20, 2024
1d21f39
Kodeverk: Forsøk på ulike kodeverkoppslag
thomashwi Mar 22, 2024
23b564c
Kodeverk: (pakke) fakta-feilutbetaling (WIP)
thomashwi Mar 22, 2024
bce98bc
Merge branch 'kodeverk-2024-uke12' into kodeverk-2024-uke12-2
thomashwi Mar 22, 2024
93ba7c2
Kodeverk: (pakke) fakta-feilutbetaling
thomashwi Apr 17, 2024
3b42273
Kodeverk: util wip
thomashwi Apr 17, 2024
47508cf
Kodeverk: (Pakke) Fakta-inntektsmelding
thomashwi Apr 18, 2024
854da4b
Merge branch 'kodeverk-2024-uke12-2' into kodeverk-2024-uke16
thomashwi Apr 23, 2024
6886287
yarn install
thomashwi Apr 23, 2024
200e07c
Kodeverk: (Pakke) fakta-opplaering
thomashwi Apr 23, 2024
6bb7f78
Kodeverk: Refaktor, bruk Context
thomashwi Apr 26, 2024
5a92a96
Update useKodeverkContext.tsx
thomashwi Apr 26, 2024
23abb76
Dedupe feilmeldinger
thomashwi Apr 26, 2024
1068d04
Update yarn.lock
thomashwi Apr 26, 2024
6200df8
Kodeverk: Div oversette og justeringer
thomashwi Apr 26, 2024
d31beac
Manglende type
thomashwi Apr 26, 2024
1739308
Kodeverk: justering i context og hook
thomashwi Apr 30, 2024
b82bc20
Kodeverk: (Pakke) fakta-soknadsperioder
thomashwi Apr 30, 2024
c03a490
Kodeverk: Justeringer i kodeverkcontext
thomashwi May 8, 2024
9cadb55
Kodeverk: (pakke) fakta-utenlandsopphold
thomashwi May 8, 2024
5f9c530
Kodeverk: (pakke) fakta-verge
thomashwi May 8, 2024
8049124
Kodeverk: (pakke) modal-sett-pa-vent
thomashwi May 8, 2024
d3161cd
Kodeverk: (pakk) prop-types
thomashwi May 8, 2024
653d5cf
Kodeverk: (pakke) prosess-anke
thomashwi May 8, 2024
38e5686
Kodeverk: (pakke) prosess-anke-merknader
thomashwi May 8, 2024
372c95d
Kodeverk: (pakke) prosess-anke-resultat
thomashwi May 8, 2024
59d8575
Kodeverk: (pakke) prosess-avregning
thomashwi May 8, 2024
9a83939
Kodeverk: (pakke) prosess-felles
thomashwi May 8, 2024
f108747
Kodeverk: (pakke) prosess-foreldelse
thomashwi May 8, 2024
c452d3a
Kodeverk: (pakke) prosess-formkrav
thomashwi May 14, 2024
5bc3e22
Merge branch 'kodeverk-2024-uke16' into kodeverk-2024-uke-20
thomashwi May 14, 2024
cd7d279
Merge, yarn install
thomashwi May 14, 2024
901a35d
Kodeverk: (pakke) prosess-innsyn
thomashwi May 14, 2024
4711047
Kodeverk: (pakke) prosess-klagevurdering
thomashwi May 14, 2024
20089a3
Kodeverk: (pakke) prosess-saksopplysninger
thomashwi May 14, 2024
922a30c
Kodeverk: (pakke) prosess-tilbakekreving
thomashwi May 14, 2024
c837e50
Kodeverk: (pakke) prosess-tilkjent-ytelse
thomashwi May 14, 2024
f3a809e
Kodeverk: (pakke) prosess-unntak
thomashwi May 14, 2024
a5e9b88
Kodeverk: (pakke) prosess-uttak
thomashwi May 14, 2024
af9e2b8
Kodeverk: (pakke) prosess-varsel-omrevurdering
thomashwi May 14, 2024
7df1719
Kodeverk: Støtte for undertype
thomashwi May 15, 2024
c023b12
Kodeverk: (pakke) prosess-vedtak
thomashwi May 15, 2024
20d6a4e
Kodeverk: (pakke) prosess-vedtak-innsyn
thomashwi May 15, 2024
0fa9cec
Kodeverk: legge til mock for kodeverkklage
thomashwi May 16, 2024
48798b5
Kodeverk: (pakke) prosess-vedtak-klage
thomashwi May 16, 2024
fa1d21e
Kodeverk: (pakke) prosess-vedtak-tilbakekreving
thomashwi May 21, 2024
3cf702a
Kodeverk: (pakke) prosess-vilkar-overstyring (opprydning)
thomashwi May 21, 2024
45df826
Kodeverk: (pakke) prosess-vilkar-sokers-opplysningsplikt (opprydning)
thomashwi May 21, 2024
a111888
Kodeverk: (pakke) sak-aktor
thomashwi May 22, 2024
9291656
Kodeverk: Rydde i types
thomashwi May 22, 2024
09e2c75
Kodeverk: Legge til mock-funksjon
thomashwi May 22, 2024
d33983e
Kodeverk: (pakke) sak-historikk
thomashwi May 23, 2024
eb1d571
Update History.tsx
thomashwi May 23, 2024
e19bae8
Kodeverk: (pakke) sak-historikk
thomashwi May 23, 2024
4f4c72b
Kodeverk: (pakke) fakta-opptjening-oms
thomashwi Jun 4, 2024
556abe5
Kodeverk: (pakke) sak-risikoklassifinsering
thomashwi Jun 4, 2024
44873c8
Kodeverk: (pakke) sak-sok
thomashwi Jun 4, 2024
03f127b
Kodeverk: (pakke) sak-meny-sett-pa-vent
thomashwi Jun 4, 2024
ef16a24
Kodeverk: Ikke påkreve kilde i typen
thomashwi Jun 4, 2024
8683746
Kodeverk: (pakke) sak-dokumenter
thomashwi Jun 4, 2024
e9599ec
Kodeverk: provider for sak-app
thomashwi Jun 4, 2024
f2222af
Kodeverk: (pakke) sak-soknadsperiodestripe
thomashwi Jun 4, 2024
bd56d64
Kodeverk: (pakke) shared-components
thomashwi Jun 4, 2024
58ad81b
Kodeverk: (pakke) utils
thomashwi Jun 4, 2024
cd5e022
Kodeverk: (pakke) behandling-frisinn
thomashwi Jun 4, 2024
f46b427
Kodeverk: (pakke) behandling-felles
thomashwi Jun 5, 2024
28b9a6b
Kodeverk: Oppdater types i behandlingspakkene
thomashwi Jun 5, 2024
345ddee
Kodeverk: ubrukte types
thomashwi Jun 5, 2024
1f1b4c4
Kodeverk: fikse tester
thomashwi Jun 5, 2024
8bbbec6
Kodeverk: Fikse tester i fakta-bosted-soker
thomashwi Jun 5, 2024
73e86bf
Kodeverk: Fjern useKodeverk hook og litt opprydning
thomashwi Jun 5, 2024
ae2f285
Kodeverk: Fikse tester i fakta-feilutbetaling og fakta-verge
thomashwi Jun 5, 2024
8f0cbc6
Kodeverk: storybook fiks
thomashwi Jun 5, 2024
70e0d81
Merge branch 'kodeverk-2024-uke-20' into kodeverk-2024-uke23
thomashwi Jun 6, 2024
c313505
Kodeverk: tilpasse typer
thomashwi Jun 6, 2024
0ad4ccf
Kodeverk: type rules
thomashwi Jun 6, 2024
58e00da
Kodeverk: FIkse test i pleiepenger sluttfase
thomashwi Jun 12, 2024
8f58183
Merge branch 'kodeverk-2024-uke23' into kodeverk-2024-uke24
thomashwi Jun 12, 2024
320b712
Update yarn.lock
thomashwi Jun 12, 2024
10bd539
Kodeverk: rydde opp
thomashwi Jun 12, 2024
04a131c
Kodeverk: fikse tester
thomashwi Jun 12, 2024
7e67cfd
Kodeverk: Fikse tester
thomashwi Jun 13, 2024
9f57814
Merge branch 'master' into kodeverk-2024-uke24
thomashwi Jun 18, 2024
f012530
Merge branch 'master' into kodeverk-2024-uke24
thomashwi Jun 18, 2024
c24cf9d
Kodeverk: fikse story
thomashwi Jun 18, 2024
016b573
Merge branch 'kodeverk-2024-uke24' of https://github.com/navikt/k9-sa…
thomashwi Jun 18, 2024
f7c715c
Kodeverk: Fikse tester
thomashwi Jun 19, 2024
20c5294
Merge branch 'master' into kodeverk-2024-uke24
thomashwi Jun 19, 2024
2304623
Kodeverk: fikse tester
thomashwi Jun 19, 2024
e26eaaf
Kodeverk: Fikse types
thomashwi Jun 21, 2024
a2a7049
Kodeverk: fiks ts-check feil
thomashwi Jun 25, 2024
7cf5f49
Kodeverk: fiks proptypes
thomashwi Jun 25, 2024
0d3cfd1
Merge branch 'kodeverk-2024-uke24' into kodeverk-2024-uke26
thomashwi Jun 25, 2024
4e7f468
Kodeverk: post merge ts-fix
thomashwi Jun 25, 2024
ce19a8a
Kodeverk: fiks test
thomashwi Jun 25, 2024
f4fca7d
Update .gitignore
thomashwi Jun 25, 2024
03058e4
Kodeverk: yarn lint fixing
thomashwi Jun 25, 2024
f9cd593
Kodeverk: ts-check fiks
thomashwi Jun 25, 2024
efccfb7
Kodeverk: fikse fakta-medlemsskap storybook tester
thomashwi Jun 26, 2024
17837b5
Kodeverk: fjern console.log
thomashwi Jun 26, 2024
82a9b6c
Kodeverk: fikse storybook tester
thomashwi Jun 26, 2024
930c6e5
Kodeverk: lint
thomashwi Jun 26, 2024
093040a
Kodeverk: overflødig funksjon
thomashwi Jun 26, 2024
c84d582
Merge branch 'master' into kodeverk-2024-uke26
thomashwi Jun 26, 2024
b922714
Kodeverk: Fikse tester i fakta medlemsskap
thomashwi Jun 26, 2024
c644768
Merge branch 'kodeverk-2024-uke26' of https://github.com/navikt/k9-sa…
thomashwi Jun 26, 2024
260cd7f
Erstatter manuelt koda BehandlingType enum med generert frå backend (…
josstn Jun 26, 2024
05ac6cf
Merge branch 'master' into kodeverk-2024-uke26
thomashwi Jun 26, 2024
d66d901
Kodeverk: Rename/flytte type exports
thomashwi Jun 28, 2024
4f44c8d
Merge branch 'master' into kodeverk-2024-uke26
thomashwi Jun 28, 2024
927b3c6
Kodeverk: kommentarer
thomashwi Jun 28, 2024
591386c
Merge branch 'kodeverk-2024-uke26' of https://github.com/navikt/k9-sa…
thomashwi Jun 28, 2024
4cfc915
Kodeverk: Fjerne debugfunksjon
thomashwi Jul 1, 2024
30efe95
Kodeverk: Fjerne debug parameter
thomashwi Jul 1, 2024
589860c
Merge branch 'master' into kodeverk-2024-uke26
thomashwi Jul 1, 2024
ff16478
Kodeverk: fjerne unødvendige kommentarer
thomashwi Jul 2, 2024
7d04cd4
Kodeverk: Flytt henting av kodeverk til fagsakindex
thomashwi Jul 3, 2024
8fbac99
Kodeverk: fjern console.log
thomashwi Jul 3, 2024
5f63b90
Kodeverk: Oppdatere PropType definisjoner
thomashwi Jul 3, 2024
4da06c6
Kodeverk: Unntakshåndtere skjermlenke-koder i historikkinnslag
thomashwi Jul 3, 2024
91b3c4c
Merge branch 'master' into kodeverk-2024-uke26
thomashwi Jul 3, 2024
27a4d84
Kodeverk: Oppdater erTbilakekrevingType-funksjon
thomashwi Jul 3, 2024
76f2f8c
Kodeverk: Fiks historikkinnslag- og skjermlenke- typer
thomashwi Jul 3, 2024
0ee98ad
Kodeverk: fjerne overflødige imports
thomashwi Jul 3, 2024
dad4ff5
nais deploy konfigurasjon for dev-next1 oppretta.
josstn Jul 3, 2024
5aebd57
Build and deploy dev-next1 workflow oppretta.
josstn Jul 3, 2024
d4249cb
Fiks ingress url til gyldig verdi.
josstn Jul 3, 2024
fae5cef
Merge branch 'dev-next1' into kodeverk-2024-uke26
thomashwi Jul 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
46 changes: 46 additions & 0 deletions .github/workflows/dev-next1-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and deploy dev-next1
on:
push:
paths-ignore:
- '**.md'
- '.gitignore'
- 'CODEOWNERS'
branches:
- dev-next1

jobs:
build-deploy:
name: Build and deploy Docker image
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
CLUSTER: dev-fss
steps:
- name: Hente kode
uses: actions/checkout@v4

- name: Setup + Install
uses: ./.github/actions/setup-install
with:
npmAuthToken: ${{ secrets.READER_TOKEN }}

- name: Bygge dist
run: yarn build

- name: Build and push to docker registry
uses: nais/docker-build-push@v0
id: docker-push
with:
tag: 'dev-next1'
team: k9saksbehandling
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
- name: Deploy to nais
uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: ${{ env.CLUSTER }}
RESOURCE: deploy/${{ env.CLUSTER }}-k9saksbehandling.yml
VARS: deploy/dev-next1.yaml
VAR: image=${{ steps.docker-push.outputs.image }}
1 change: 1 addition & 0 deletions .github/workflows/promote-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
PRINT_PAYLOAD: true
CLUSTER: ${{ env.CLUSTER }}
RESOURCE: deploy/${{ env.CLUSTER }}-k9saksbehandling.yml
VARS: deploy/dev.yaml

- name: Oppdater kommentar med deployment status ved feil
if: failure()
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ public/client/src
!.yarn/releases
!.yarn/sdks
!.yarn/versions
!/packages/v2/lib*
8 changes: 4 additions & 4 deletions deploy/dev-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "nais.io/v1alpha1"
kind: "Application"
metadata:
name: k9-sak-web
name: {{ name }}
namespace: k9saksbehandling
labels:
team: k9saksbehandling
Expand All @@ -25,8 +25,8 @@ spec:
initialDelay: 20
timeout: 1
replicas:
min: 2
max: 3
min: {{ replicas.min }}
max: {{ replicas.max }}
cpuThresholdPercentage: 50
resources:
limits:
Expand All @@ -36,7 +36,7 @@ spec:
cpu: 200m
memory: 32Mi
ingresses:
- "https://k9.dev.intern.nav.no/"
- "{{ ingress }}"
env:
- name: APP_NAME
value: k9-sak-web
Expand Down
6 changes: 6 additions & 0 deletions deploy/dev-next1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Verdier for dev-fss.k9saksbehandling.yml ved utrulling frå dev-next1 branch til k9-next1.dev.intern.nav.no
name: k9-sak-web-dev-next1
ingress: "https://k9-next1.dev.intern.nav.no/"
replicas:
min: 1
max: 2
6 changes: 6 additions & 0 deletions deploy/dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Verdier for dev-fss.k9saksbehandling.yml ved utrulling frå master til Q
name: k9-sak-web
ingress: "https://k9.dev.intern.nav.no/"
replicas:
min: 2
max: 3
8 changes: 4 additions & 4 deletions packages/behandling-anke/src/BehandlingAnkeIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React, { useEffect, useState, useCallback } from 'react';

import { LoadingPanel } from '@fpsak-frontend/shared-components';
import { Rettigheter, ReduxFormStateCleaner, useSetBehandlingVedEndring } from '@k9-sak-web/behandling-felles';
import { Fagsak, Behandling, Kodeverk, KodeverkMedNavn, FagsakPerson } from '@k9-sak-web/types';
import { Fagsak, Behandling, FagsakPerson } from '@k9-sak-web/types';
import { RestApiState, useRestApiErrorDispatcher } from '@k9-sak-web/rest-api-hooks';

import { AlleKodeverk } from '@k9-sak-web/lib/kodeverk/types.js';
import AnkePaneler from './components/AnkePaneler';
import FetchedData from './types/fetchedDataTsType';
import { restApiAnkeHooks, requestAnkeApi, AnkeBehandlingApiKeys } from './data/ankeBehandlingApi';
Expand All @@ -20,7 +20,7 @@ interface OwnProps {
fagsak: Fagsak;
fagsakPerson: FagsakPerson;
rettigheter: Rettigheter;
kodeverk: { [key: string]: KodeverkMedNavn[] };
kodeverk: AlleKodeverk;
oppdaterProsessStegOgFaktaPanelIUrl: (punktnavn?: string, faktanavn?: string) => void;
valgtProsessSteg?: string;
oppdaterBehandlingVersjon: (versjon: number) => void;
Expand All @@ -31,7 +31,7 @@ interface OwnProps {
opneSokeside: () => void;
alleBehandlinger: {
id: number;
type: Kodeverk;
type: string;
avsluttet?: string;
}[];
setRequestPendingMessage: (message: string) => void;
Expand Down
8 changes: 4 additions & 4 deletions packages/behandling-anke/src/components/AnkePaneler.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';

import { BehandlingPaVent, SettPaVentParams, Rettigheter } from '@k9-sak-web/behandling-felles';
import { Fagsak, Behandling, Kodeverk, KodeverkMedNavn, FagsakPerson } from '@k9-sak-web/types';

import { Fagsak, Behandling, FagsakPerson } from '@k9-sak-web/types';
import { AlleKodeverk } from '@k9-sak-web/lib/kodeverk/types.js';
import AnkeProsess from './AnkeProsess';
import FetchedData from '../types/fetchedDataTsType';

Expand All @@ -12,7 +12,7 @@ interface OwnProps {
behandling: Behandling;
fetchedData: FetchedData;
rettigheter: Rettigheter;
alleKodeverk: { [key: string]: KodeverkMedNavn[] };
alleKodeverk: AlleKodeverk;
valgtProsessSteg?: string;
oppdaterProsessStegOgFaktaPanelIUrl: (punktnavn?: string, faktanavn?: string) => void;
oppdaterBehandlingVersjon: (versjon: number) => void;
Expand All @@ -21,7 +21,7 @@ interface OwnProps {
opneSokeside: () => void;
alleBehandlinger: {
id: number;
type: Kodeverk;
type: string;
avsluttet?: string;
}[];
}
Expand Down
39 changes: 29 additions & 10 deletions packages/behandling-anke/src/components/AnkeProsess.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,34 @@ import { fagsakStatus } from '@k9-sak-web/backend/k9sak/kodeverk/behandling/Fags
import AnkeProsess from './AnkeProsess';

describe('<AnkeProsess>', () => {
const fagsak = {
const fagsak: Fagsak = {
saksnummer: '123456',
sakstype: { kode: fagsakYtelsesType.FP, kodeverk: 'FAGSAK_YTELSE' },
status: { kode: fagsakStatus.UNDER_BEHANDLING, kodeverk: 'FAGSAK_STATUS' },
} as Fagsak;
sakstype: fagsakYtelsesType.OMP,
status: fagsakStatus.UNDER_BEHANDLING,
relasjonsRolleType: '',
barnFodt: '',
person: {
erDod: false,
navn: '',
alder: 0,
personnummer: '',
erKvinne: false,
personstatusType: '',
diskresjonskode: '',
dodsdato: '',
aktørId: '',
},
opprettet: '',
endret: '',
antallBarn: 0,
kanRevurderingOpprettes: false,
skalBehandlesAvInfotrygd: false,
dekningsgrad: 0,
};

const fagsakPerson = {
alder: 30,
personstatusType: { kode: personstatusType.BOSATT, kodeverk: 'test' },
personstatusType: personstatusType.BOSATT,
erDod: false,
erKvinne: true,
navn: 'Espen Utvikler',
Expand All @@ -33,8 +52,8 @@ describe('<AnkeProsess>', () => {
const behandling = {
id: 1,
versjon: 2,
status: { kode: behandlingStatus.BEHANDLING_UTREDES, kodeverk: 'test' },
type: { kode: behandlingType.FORSTEGANGSSOKNAD, kodeverk: 'test' },
status: behandlingStatus.BEHANDLING_UTREDES,
type: behandlingType.FORSTEGANGSSOKNAD,
behandlingPaaVent: false,
taskStatus: {
readOnly: false,
Expand All @@ -54,15 +73,15 @@ describe('<AnkeProsess>', () => {
};
const aksjonspunkter = [
{
definisjon: { kode: aksjonspunktCodes.AVKLAR_AKTIVITETER, kodeverk: 'test' },
status: { kode: aksjonspunktStatus.OPPRETTET, kodeverk: 'test' },
definisjon: aksjonspunktCodes.AVKLAR_AKTIVITETER,
status: aksjonspunktStatus.OPPRETTET,
kanLoses: true,
erAktivt: true,
},
];
const vilkar = [
{
vilkarType: { kode: vilkarType.MEDISINSKEVILKÅR_UNDER_18_ÅR, kodeverk: 'test' },
vilkarType: vilkarType.MEDISINSKEVILKÅR_UNDER_18_ÅR,
overstyrbar: true,
} as Vilkar,
];
Expand Down
Loading