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

Legger til faktapanel for utenlandsopphold i pleiepenger i livets sluttfase #5199

Merged
merged 4 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions deploy/dev-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ spec:
value: "true"
- name: TILBAKE
value: "true"
- name: UTENLANDSOPPHOLD
value: "true"
- name: SOKNADPERIODESTRIPE
value: "false"
- name: TYPE_MEDISINSKE_OPPLYSNINGER_BREV
Expand Down
2 changes: 0 additions & 2 deletions deploy/prod-fss-k9saksbehandling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ spec:
value: "true"
- name: TILBAKE
value: "true"
- name: UTENLANDSOPPHOLD
value: "true"
- name: SOKNADPERIODESTRIPE
value: "false"
- name: TYPE_MEDISINSKE_OPPLYSNINGER_BREV
Expand Down
4 changes: 0 additions & 4 deletions feature-toggles.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"key": "UNNTAKSBEHANDLING",
"value": "${UNNTAKSBEHANDLING}"
},
{
"key": "UTENLANDSOPPHOLD",
"value": "${UTENLANDSOPPHOLD}"
},
{
"key": "SOKNADPERIODESTRIPE",
"value": "${SOKNADPERIODESTRIPE}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('<OpplaeringspengerFakta>', () => {
setBehandling={sinon.spy()}
arbeidsgiverOpplysningerPerId={arbeidsgiverOpplysningerPerId}
dokumenter={[]}
featureToggles={{ UTENLANDSOPPHOLD: true }}
featureToggles={{}}
/>,
);

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import OmBarnetFaktaPanelDef from './faktaPaneler/OmBarnetFaktaPanelDef';
import InntektOgYtelserFaktaPanelDef from './faktaPaneler/InntektOgYtelserFaktaPanelDef';
import OverstyrBeregningFaktaPanelDef from './faktaPaneler/OverstyrBeregningFaktaPanelDef';
import DirekteOvergangFaktaPanelDef from './faktaPaneler/DirekteOvergangFaktaPanelDef';
import UtenlandsoppholdFaktaPanelDef from './faktaPaneler/UtenlandsoppholdFaktaPanelDef';
import SoknadsperioderFaktaPanelDef from './faktaPaneler/SoknadsperioderFaktaPanelDef';
import InstitusjonFaktaPanelDef from './faktaPaneler/InstitusjonFaktaPanelDef';
import OpplaeringFaktaPanelDef from './faktaPaneler/OpplaeringFaktaPanelDef';
Expand All @@ -32,7 +31,6 @@ const faktaPanelDefinisjoner = [
new BeregningFaktaPanelDef(),
new FordelBeregningPanelDef(),
new InntektOgYtelserFaktaPanelDef(),
new UtenlandsoppholdFaktaPanelDef(),
new SoknadsperioderFaktaPanelDef(),
];

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"BeregningInfoPanel.Title": "Beregning",
"LivetsSluttfasePanel.LivetsSluttfase": "Livets sluttfase",
"InntektOgYtelser.Title": "Inntekt og ytelser",
"UtenlandsoppholdInfoPanel.Title": "Utenlandsopphold",
"MainSideMenu.Heading": "Saksopplysninger",
"OpptjeningInfoPanel.KontrollerFaktaForOpptjening": "Opptjening",
"InntektsmeldingInfoPanel.Title": "Inntektsmelding",
Expand Down
1 change: 1 addition & 0 deletions packages/behandling-pleiepenger-sluttfase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@fpsak-frontend/shared-components": "1.0.0",
"@fpsak-frontend/utils": "1.0.0",
"@k9-sak-web/behandling-felles": "1.0.0",
"@k9-sak-web/fakta-utenlandsopphold": "1.0.0",
"@k9-sak-web/konstanter": "1.0.0",
"@k9-sak-web/prosess-vilkar-soknadsfrist": "1.0.0",
"@k9-sak-web/prosess-vilkar-sykdom": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export enum PleiepengerSluttfaseBehandlingApiKeys {
OM_PLEIETRENGENDE = 'OM_PLEIETRENGENDE',
BEHANDLING_PERIODER_ÅRSAK_MED_VILKÅR = 'BEHANDLING_PERIODER_ÅRSAK_MED_VILKÅR',
BEREGNINGREFERANSER_TIL_VURDERING = 'BEREGNINGREFERANSER_TIL_VURDERING',
UTENLANDSOPPHOLD = 'UTENLANDSOPPHOLD',
}

const endpoints = new RestApiConfigBuilder()
Expand Down Expand Up @@ -95,6 +96,8 @@ const endpoints = new RestApiConfigBuilder()
.withRel('overlappende-ytelser', PleiepengerSluttfaseBehandlingApiKeys.OVERLAPPENDE_YTELSER)
.withRel('saksbehandler-info', PleiepengerSluttfaseBehandlingApiKeys.HENT_SAKSBEHANDLERE)
.withRel('om-pleietrengende', PleiepengerSluttfaseBehandlingApiKeys.OM_PLEIETRENGENDE)
.withRel('utenlandsopphold', PleiepengerSluttfaseBehandlingApiKeys.UTENLANDSOPPHOLD)

.withRel(
'behandling-perioder-årsak-med-vilkår',
PleiepengerSluttfaseBehandlingApiKeys.BEHANDLING_PERIODER_ÅRSAK_MED_VILKÅR,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';

import { faktaPanelCodes } from '@k9-sak-web/konstanter';
import { FaktaPanelDef } from '@k9-sak-web/behandling-felles';

import Utenlandsopphold from '@k9-sak-web/fakta-utenlandsopphold';
import fagsakYtelseType from '@fpsak-frontend/kodeverk/src/fagsakYtelseType';
import { PleiepengerSluttfaseBehandlingApiKeys } from '../../data/pleiepengerSluttfaseBehandlingApi';

class UtenlandsoppholdFaktaPanelDef extends FaktaPanelDef {
getUrlKode = () => faktaPanelCodes.UTENLANDSOPPHOLD;

getTekstKode = () => 'UtenlandsoppholdInfoPanel.Title';

getEndepunkter = () => [PleiepengerSluttfaseBehandlingApiKeys.UTENLANDSOPPHOLD];

getKomponent = props => (
<Utenlandsopphold
utenlandsopphold={props.utenlandsopphold}
kodeverk={props.alleKodeverk}
fagsakYtelseType={fagsakYtelseType.PLEIEPENGER_SLUTTFASE}
/>
);
}

export default UtenlandsoppholdFaktaPanelDef;
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import InntektOgYtelserFaktaPanelDef from './faktaPaneler/InntektOgYtelserFaktaP
import OverstyrBeregningFaktaPanelDef from './faktaPaneler/OverstyrBeregningFaktaPanelDef';
import OmPleietrengendeFaktaPanelDef from './faktaPaneler/OmPleietrengendeFaktaPanelDef';
import SoknadsperioderFaktaPanelDef from './faktaPaneler/SoknadsperioderFaktaPanelDef';
import UtenlandsoppholdFaktaPanelDef from './faktaPaneler/UtenlandsoppholdFaktaPanelDef';

const faktaPanelDefinisjoner = [
new OmPleietrengendeFaktaPanelDef(),
Expand All @@ -22,6 +23,7 @@ const faktaPanelDefinisjoner = [
new FordelBeregningPanelDef(),
new InntektOgYtelserFaktaPanelDef(),
new SoknadsperioderFaktaPanelDef(),
new UtenlandsoppholdFaktaPanelDef(),
];

export default faktaPanelDefinisjoner;
1 change: 1 addition & 0 deletions packages/behandling-pleiepenger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@fpsak-frontend/shared-components": "1.0.0",
"@fpsak-frontend/utils": "1.0.0",
"@k9-sak-web/behandling-felles": "1.0.0",
"@k9-sak-web/fakta-utenlandsopphold": "1.0.0",
"@k9-sak-web/konstanter": "1.0.0",
"@k9-sak-web/prosess-vilkar-soknadsfrist": "1.0.0",
"@k9-sak-web/prosess-vilkar-sykdom": "1.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe('<PleiepengerFakta>', () => {
setBehandling={sinon.spy()}
arbeidsgiverOpplysningerPerId={arbeidsgiverOpplysningerPerId}
dokumenter={[]}
featureToggles={{ UTENLANDSOPPHOLD: true }}
featureToggles={{}}
/>,
);

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import React from 'react';
import { faktaPanelCodes } from '@k9-sak-web/konstanter';
import { FaktaPanelDef } from '@k9-sak-web/behandling-felles';

import Utenlandsopphold from '@k9-sak-web/behandling-pleiepenger/src/components/Utenlandsopphold';
import Utenlandsopphold from '@k9-sak-web/fakta-utenlandsopphold';
import fagsakYtelseType from '@fpsak-frontend/kodeverk/src/fagsakYtelseType';
import { PleiepengerBehandlingApiKeys } from '../../data/pleiepengerBehandlingApi';

class UtenlandsoppholdFaktaPanelDef extends FaktaPanelDef {
Expand All @@ -14,10 +15,12 @@ class UtenlandsoppholdFaktaPanelDef extends FaktaPanelDef {
getEndepunkter = () => [PleiepengerBehandlingApiKeys.UTENLANDSOPPHOLD];

getKomponent = props => (
<Utenlandsopphold utenlandsopphold={props.utenlandsopphold} kodeverk={props.alleKodeverk} />
<Utenlandsopphold
utenlandsopphold={props.utenlandsopphold}
kodeverk={props.alleKodeverk}
fagsakYtelseType={fagsakYtelseType.PLEIEPENGER}
/>
);

skalVisePanel = (apCodes, data, featureToggles) => featureToggles?.UTENLANDSOPPHOLD;
}

export default UtenlandsoppholdFaktaPanelDef;
1 change: 1 addition & 0 deletions packages/fakta-utenlandsopphold/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './src/Utenlandsopphold';
13 changes: 13 additions & 0 deletions packages/fakta-utenlandsopphold/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@k9-sak-web/fakta-utenlandsopphold",
"version": "1.0.0",
"module": "index.ts",
"license": "MIT",
"private": true,
"dependencies": {
"@fpsak-frontend/kodeverk": "1.0.0",
"@fpsak-frontend/shared-components": "1.0.0",
"@fpsak-frontend/utils": "1.0.0",
"@k9-sak-web/types": "1.0.0"
}
}
Loading
Loading