Skip to content

Commit

Permalink
Nye navn på features og fjernubrukt feature
Browse files Browse the repository at this point in the history
  • Loading branch information
JulieHillRoa committed Oct 24, 2023
1 parent 01e7e65 commit b02d7d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
6 changes: 2 additions & 4 deletions src/ducks/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
FILTER_FOR_PERSONER_MED_BARN_UNDER_18,
PORTEFOLJE_FEATURES,
SPOR_OM_TILBAKEMELDING,
VEDTAKSTOTTE,
VIS_KNAPP_FOR_APNE_BRUKER_NY_FANE
VEDTAKSTOTTE
} from '../konstanter';

const ADD_FEATURE = 'veilarbportefoljeflatefs/features/ADD_FEATURE';
Expand All @@ -23,8 +22,7 @@ const initalState: FeaturesState = {
[DARKMODE]: false,
[ALERTSTRIPE_FEILMELDING]: false,
[VIS_AAP_VURDERINGSFRISTKOLONNER]: false,
[FILTER_FOR_PERSONER_MED_BARN_UNDER_18]: false,
[VIS_KNAPP_FOR_APNE_BRUKER_NY_FANE]: false
[FILTER_FOR_PERSONER_MED_BARN_UNDER_18]: false
};

// Reducer
Expand Down
17 changes: 7 additions & 10 deletions src/konstanter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,15 @@ export const SE_FLERE_PAGINERING_STORRELSE = 200;

export const NASJONAL_OPPFOLGINGSENHET = '4154';

export const SPOR_OM_TILBAKEMELDING = 'veilarbportefolje.spor_om_tilbakemelding';
export const SPOR_OM_TILBAKEMELDING = 'veilarbportefoljeflatefs.spor_om_tilbakemelding';
export const VEDTAKSTOTTE = 'pto.vedtaksstotte.pilot';
export const DARKMODE = 'veilarbportefolje.darkmode';
export const ALERTSTRIPE_FEILMELDING = 'veilarbportefolje.alertstripe_feilmelding';
export const DARKMODE = 'veilarbportefoljeflatefs.darkmode';
export const ALERTSTRIPE_FEILMELDING = 'veilarbportefoljeflatefs.alertstripe_feilmelding';
export const VIS_MELDING_OM_BRUKERE_MED_ADRESSEBESKYTTELSE_ELLER_SKJERMING =
'veilarbportefolje.vis_melding_om_brukere_med_adressebeskyttelse_eller_skjerming';
export const VIS_AAP_VURDERINGSFRISTKOLONNER = 'veilarbportefoljeflate.vis_kolonner_for_vurderingsfrist_aap';
'veilarbportefoljeflatefs.vis_melding_om_brukere_med_adressebeskyttelse_eller_skjerming';
export const VIS_AAP_VURDERINGSFRISTKOLONNER = 'veilarbportefoljeflatefs.vis_kolonner_for_vurderingsfrist_aap';

export const FILTER_FOR_PERSONER_MED_BARN_UNDER_18 = 'veilarbportefolje.filter_for_personer_med_barn_under_18';

export const VIS_KNAPP_FOR_APNE_BRUKER_NY_FANE = 'veilarbportefoljeflate.vis_knapp_for_apne_bruker_ny_fane';
export const FILTER_FOR_PERSONER_MED_BARN_UNDER_18 = 'veilarbportefoljeflatefs.filter_for_personer_med_barn_under_18';

//HUSK Å LEGG TIL FEATURE-TOGGLE HER OGSÅ!!!!!!!!!
export const PORTEFOLJE_FEATURES = [
Expand All @@ -28,6 +26,5 @@ export const PORTEFOLJE_FEATURES = [
ALERTSTRIPE_FEILMELDING,
VIS_MELDING_OM_BRUKERE_MED_ADRESSEBESKYTTELSE_ELLER_SKJERMING,
VIS_AAP_VURDERINGSFRISTKOLONNER,
FILTER_FOR_PERSONER_MED_BARN_UNDER_18,
VIS_KNAPP_FOR_APNE_BRUKER_NY_FANE
FILTER_FOR_PERSONER_MED_BARN_UNDER_18
];
6 changes: 2 additions & 4 deletions src/mocks/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import {
VEDTAKSTOTTE,
ALERTSTRIPE_FEILMELDING,
VIS_MELDING_OM_BRUKERE_MED_ADRESSEBESKYTTELSE_ELLER_SKJERMING,
VIS_AAP_VURDERINGSFRISTKOLONNER,
VIS_KNAPP_FOR_APNE_BRUKER_NY_FANE
VIS_AAP_VURDERINGSFRISTKOLONNER
} from '../konstanter';

const toggles = {
Expand All @@ -16,8 +15,7 @@ const toggles = {
[ALERTSTRIPE_FEILMELDING]: false,
[VIS_MELDING_OM_BRUKERE_MED_ADRESSEBESKYTTELSE_ELLER_SKJERMING]: true,
[VIS_AAP_VURDERINGSFRISTKOLONNER]: true,
[FILTER_FOR_PERSONER_MED_BARN_UNDER_18]: true,
[VIS_KNAPP_FOR_APNE_BRUKER_NY_FANE]: true
[FILTER_FOR_PERSONER_MED_BARN_UNDER_18]: true
};

export default toggles;

0 comments on commit b02d7d9

Please sign in to comment.