-
Notifications
You must be signed in to change notification settings - Fork 0
Add new sakstyper: Begjæring om gjenopptak & begjæring om gjenopptak … #1139
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
Merged
The head ref may contain hidden characters: "begj\u00E6ring"
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
bf42fa4
Fix wrong wording when new behandling is assigned for the first time
eriksson-daniel 176f368
Add new sakstyper: Begjæring om gjenopptak & begjæring om gjenopptak …
eriksson-daniel f94d55d
Add missing field name
eriksson-daniel 8b377e2
Set kjennelse mottatt instead of mottatt KA when changing age for ank…
eriksson-daniel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
frontend/src/components/behandling/behandlingsdetaljer/begjæring-om-gjenopptak-detaljer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| import { BehandlingSection } from '@app/components/behandling/behandlingsdetaljer/behandling-section'; | ||
| import { ExtraUtfall } from '@app/components/behandling/behandlingsdetaljer/extra-utfall'; | ||
| import { ForlengetBehandlingstid } from '@app/components/behandling/behandlingsdetaljer/forlenget-behandlingstid/forlenget-behandlingstid'; | ||
| import { Gosys } from '@app/components/behandling/behandlingsdetaljer/gosys'; | ||
| import { Innsendingshjemmel } from '@app/components/behandling/behandlingsdetaljer/innsendingshjemmel'; | ||
| import { Klager } from '@app/components/behandling/behandlingsdetaljer/klager'; | ||
| import { Lovhjemmel } from '@app/components/behandling/behandlingsdetaljer/lovhjemmel/lovhjemmel'; | ||
| import { MottattDato } from '@app/components/behandling/behandlingsdetaljer/mottatt-klageinstans'; | ||
| import { PreviousSaksbehandler } from '@app/components/behandling/behandlingsdetaljer/previous-saksbehandler'; | ||
| import { Saksnummer } from '@app/components/behandling/behandlingsdetaljer/saksnummer'; | ||
| import { Tilbakekreving } from '@app/components/behandling/behandlingsdetaljer/tilbakekreving'; | ||
| import { UtfallResultat } from '@app/components/behandling/behandlingsdetaljer/utfall-resultat'; | ||
| import { Ytelse } from '@app/components/behandling/behandlingsdetaljer/ytelse'; | ||
| import { StyledBehandlingSection } from '@app/components/behandling/styled-components'; | ||
| import { BEHANDLING_PANEL_DOMAIN } from '@app/components/gosys/beskrivelse/domain'; | ||
| import { GrafanaDomainProvider } from '@app/components/grafana-domain-context/grafana-domain-context'; | ||
| import { Fullmektig } from '@app/components/part/fullmektig/fullmektig'; | ||
| import { Type } from '@app/components/type/type'; | ||
| import { useUpdateKlagerMutation } from '@app/redux-api/oppgaver/mutations/behandling'; | ||
| import { SaksTypeEnum } from '@app/types/kodeverk'; | ||
| import type { IOppgavebehandling } from '@app/types/oppgavebehandling/oppgavebehandling'; | ||
| import { Heading, VStack } from '@navikt/ds-react'; | ||
|
|
||
| interface Props { | ||
| oppgavebehandling: IOppgavebehandling; | ||
| } | ||
|
|
||
| export const BegjæringOmGjenopptakDetaljer = ({ oppgavebehandling }: Props) => { | ||
| const [updateKlager, { isLoading: klagerIsLoading }] = useUpdateKlagerMutation(); | ||
|
|
||
| const { typeId, fraNAVEnhetNavn, fraNAVEnhet, resultat, ytelseId, prosessfullmektig, saksnummer, id } = | ||
| oppgavebehandling; | ||
|
|
||
| const { utfallId, extraUtfallIdSet } = resultat; | ||
|
|
||
| return ( | ||
| <GrafanaDomainProvider domain={BEHANDLING_PANEL_DOMAIN}> | ||
| <StyledBehandlingSection> | ||
| <Heading level="1" size="medium" spacing> | ||
| Behandling | ||
| </Heading> | ||
|
|
||
| <VStack gap="4"> | ||
| <Klager | ||
| klager={oppgavebehandling.klager} | ||
| onChange={(klager) => updateKlager({ klager, oppgaveId: oppgavebehandling.id })} | ||
| isLoading={klagerIsLoading} | ||
| typeId={typeId} | ||
| /> | ||
|
|
||
| <Fullmektig part={prosessfullmektig} /> | ||
|
|
||
| <BehandlingSection label="Type"> | ||
| <Type type={typeId} /> | ||
| </BehandlingSection> | ||
|
|
||
| <BehandlingSection label="Ytelse"> | ||
| <Ytelse ytelseId={ytelseId} /> | ||
| </BehandlingSection> | ||
|
|
||
| <PreviousSaksbehandler | ||
| previousSaksbehandler={oppgavebehandling.previousSaksbehandler} | ||
| type={SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK} | ||
| /> | ||
|
|
||
| <Saksnummer saksnummer={saksnummer} /> | ||
|
|
||
| <Innsendingshjemmel oppgavebehandling={oppgavebehandling} /> | ||
|
|
||
| <ForlengetBehandlingstid oppgavebehandling={oppgavebehandling}> | ||
| <MottattDato /> | ||
| </ForlengetBehandlingstid> | ||
|
|
||
| <BehandlingSection label="Behandlet av"> | ||
| {fraNAVEnhetNavn} — {fraNAVEnhet} | ||
| </BehandlingSection> | ||
|
|
||
| <MottattDato /> | ||
|
|
||
| <Gosys oppgavebehandling={oppgavebehandling} /> | ||
|
|
||
| <UtfallResultat utfall={utfallId} oppgaveId={id} extraUtfallIdSet={extraUtfallIdSet} typeId={typeId} /> | ||
|
|
||
| <ExtraUtfall utfallIdSet={extraUtfallIdSet} mainUtfall={utfallId} oppgaveId={id} typeId={typeId} /> | ||
|
|
||
| <Lovhjemmel /> | ||
|
|
||
| <Tilbakekreving /> | ||
| </VStack> | ||
| </StyledBehandlingSection> | ||
| </GrafanaDomainProvider> | ||
| ); | ||
| }; |
79 changes: 79 additions & 0 deletions
79
...d/src/components/behandling/behandlingsdetaljer/begjæring-om-gjenopptak-i-tr-detaljer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| import { BehandlingSection } from '@app/components/behandling/behandlingsdetaljer/behandling-section'; | ||
| import { Gosys } from '@app/components/behandling/behandlingsdetaljer/gosys'; | ||
| import { Innsendingshjemmel } from '@app/components/behandling/behandlingsdetaljer/innsendingshjemmel'; | ||
| import { KjennelseMottatt } from '@app/components/behandling/behandlingsdetaljer/kjennelse-mottatt'; | ||
| import { OrgWarning } from '@app/components/behandling/behandlingsdetaljer/klager'; | ||
| import { Lovhjemmel } from '@app/components/behandling/behandlingsdetaljer/lovhjemmel/lovhjemmel'; | ||
| import { PreviousSaksbehandler } from '@app/components/behandling/behandlingsdetaljer/previous-saksbehandler'; | ||
| import { Saksnummer } from '@app/components/behandling/behandlingsdetaljer/saksnummer'; | ||
| import { SendtTilTrygderetten } from '@app/components/behandling/behandlingsdetaljer/sendt-til-trygderetten'; | ||
| import { Tilbakekreving } from '@app/components/behandling/behandlingsdetaljer/tilbakekreving'; | ||
| import { UtfallResultat } from '@app/components/behandling/behandlingsdetaljer/utfall-resultat'; | ||
| import { Ytelse } from '@app/components/behandling/behandlingsdetaljer/ytelse'; | ||
| import { StyledBehandlingSection } from '@app/components/behandling/styled-components'; | ||
| import { BEHANDLING_PANEL_DOMAIN } from '@app/components/gosys/beskrivelse/domain'; | ||
| import { GrafanaDomainProvider } from '@app/components/grafana-domain-context/grafana-domain-context'; | ||
| import { Fullmektig } from '@app/components/part/fullmektig/fullmektig'; | ||
| import { Type } from '@app/components/type/type'; | ||
| import { SaksTypeEnum } from '@app/types/kodeverk'; | ||
| import type { IBegjæringOmGjenopptakITRBehandling } from '@app/types/oppgavebehandling/oppgavebehandling'; | ||
| import { Heading, VStack } from '@navikt/ds-react'; | ||
|
|
||
| interface Props { | ||
| oppgavebehandling: IBegjæringOmGjenopptakITRBehandling; | ||
| } | ||
|
|
||
| export const BegjæringOmGjenopptakITrDetaljer = ({ oppgavebehandling }: Props) => { | ||
| const { typeId, resultat, ytelseId, prosessfullmektig, saksnummer, id } = oppgavebehandling; | ||
|
|
||
| const { utfallId, extraUtfallIdSet } = resultat; | ||
|
|
||
| return ( | ||
| <GrafanaDomainProvider domain={BEHANDLING_PANEL_DOMAIN}> | ||
| <StyledBehandlingSection> | ||
| <Heading level="1" size="medium" spacing> | ||
| Behandling | ||
| </Heading> | ||
| <VStack gap="4"> | ||
| <BehandlingSection label="Den ankende part"> | ||
| <VStack gap="2"> | ||
| {oppgavebehandling.klager.name ?? 'Navn mangler'} | ||
| <OrgWarning identifikator={oppgavebehandling.klager.identifikator} label="ankende part" /> | ||
| </VStack> | ||
| </BehandlingSection> | ||
|
|
||
| <Fullmektig part={prosessfullmektig} /> | ||
|
|
||
| <BehandlingSection label="Type"> | ||
| <Type type={typeId} /> | ||
| </BehandlingSection> | ||
|
|
||
| <BehandlingSection label="Ytelse"> | ||
| <Ytelse ytelseId={ytelseId} /> | ||
| </BehandlingSection> | ||
|
|
||
| <PreviousSaksbehandler | ||
| previousSaksbehandler={oppgavebehandling.previousSaksbehandler} | ||
| type={SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK_I_TR} | ||
| /> | ||
|
|
||
| <Saksnummer saksnummer={saksnummer} /> | ||
|
|
||
| <Innsendingshjemmel oppgavebehandling={oppgavebehandling} /> | ||
|
|
||
| <SendtTilTrygderetten /> | ||
|
|
||
| <KjennelseMottatt /> | ||
|
|
||
| <Gosys oppgavebehandling={oppgavebehandling} /> | ||
|
|
||
| <UtfallResultat utfall={utfallId} oppgaveId={id} extraUtfallIdSet={extraUtfallIdSet} typeId={typeId} /> | ||
|
|
||
| <Lovhjemmel /> | ||
|
|
||
| <Tilbakekreving /> | ||
| </VStack> | ||
| </StyledBehandlingSection> | ||
| </GrafanaDomainProvider> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 35 additions & 6 deletions
41
frontend/src/components/behandling/behandlingsdetaljer/previous-saksbehandler.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,34 +1,63 @@ | ||
| import { BehandlingSection } from '@app/components/behandling/behandlingsdetaljer/behandling-section'; | ||
| import { formatEmployeeNameAndId } from '@app/domain/employee-name'; | ||
| import type { INavEmployee } from '@app/types/bruker'; | ||
| import { SaksTypeEnum } from '@app/types/kodeverk'; | ||
| import { Alert } from '@navikt/ds-react'; | ||
|
|
||
| type Type = SaksTypeEnum.ANKE_I_TRYGDERETTEN | SaksTypeEnum.ANKE | SaksTypeEnum.OMGJØRINGSKRAV; | ||
| type Type = | ||
| | SaksTypeEnum.ANKE_I_TRYGDERETTEN | ||
| | SaksTypeEnum.ANKE | ||
| | SaksTypeEnum.OMGJØRINGSKRAV | ||
| | SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK | ||
| | SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK_I_TR; | ||
|
|
||
| interface Props { | ||
| previousSaksbehandler: INavEmployee | null; | ||
| type: Type; | ||
| } | ||
|
|
||
| export const PreviousSaksbehandler = ({ previousSaksbehandler, type }: Props) => { | ||
| const heading = getHeading(type); | ||
|
|
||
| if (previousSaksbehandler === null) { | ||
| return ( | ||
| <Alert variant="info" size="small" inline> | ||
| Bruk «Søk på person» for å finne hvem som fullførte tidligere {getTypeName(type)}. | ||
| </Alert> | ||
| <BehandlingSection label={heading}> | ||
| <Alert variant="info" size="small" inline> | ||
| Bruk «Søk på person» for å finne hvem som fullførte tidligere {getTypeName(type)}. | ||
| </Alert> | ||
| </BehandlingSection> | ||
| ); | ||
| } | ||
|
|
||
| return formatEmployeeNameAndId(previousSaksbehandler); | ||
| return <BehandlingSection label={heading}>{formatEmployeeNameAndId(previousSaksbehandler)}</BehandlingSection>; | ||
| }; | ||
|
|
||
| const getTypeName = (type: Type) => { | ||
| const getTypeName = (type: Type): string => { | ||
| switch (type) { | ||
| case SaksTypeEnum.ANKE: | ||
| return 'klagebehandling'; | ||
| case SaksTypeEnum.ANKE_I_TRYGDERETTEN: | ||
| return 'ankebehandling'; | ||
| case SaksTypeEnum.OMGJØRINGSKRAV: | ||
| return 'omgjøringskrav'; | ||
| case SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK: | ||
| return 'anke i Trygderetten-behandling'; | ||
| case SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK_I_TR: | ||
| return 'begjæring om gjenopptak-behandling'; | ||
| } | ||
| }; | ||
|
|
||
| const getHeading = (type: Type): string => { | ||
| switch (type) { | ||
| case SaksTypeEnum.ANKE: | ||
| return 'Klagebehandling fullført av'; | ||
| case SaksTypeEnum.ANKE_I_TRYGDERETTEN: | ||
| return 'Ankebehandling fullført av'; | ||
| case SaksTypeEnum.OMGJØRINGSKRAV: | ||
| return 'Behandlingen som kreves omgjort er tidligere fullført av'; | ||
| case SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK: | ||
| return 'Anke i Trygderetten-oppgave fullført av'; | ||
| case SaksTypeEnum.BEGJÆRING_OM_GJENOPPTAK_I_TR: | ||
| return 'Begjæring om gjenopptak-oppgave fullført av'; | ||
eriksson-daniel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| }; | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.