Skip to content

Commit

Permalink
MIJN-9753-BUG/parkeerontheffingen-blauwe-zone-bedrijven-wordt-niet-ge…
Browse files Browse the repository at this point in the history
…toond-onder-thema-parkeren-bij-inlog-met-eh (#1697)

* Turned off feature toggles, because not reflecting main

* added blauwe kaart ontheffing voor bedrijven

* updated snapshot

---------

Co-authored-by: Tim van Oostrom <[email protected]>
  • Loading branch information
RoanPaulus and timvanoostrom authored Jan 8, 2025
1 parent e5f9596 commit 9a87456
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 38 deletions.
24 changes: 12 additions & 12 deletions src/client/pages/Parkeren/__snapshots__/Parkeren.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,21 @@ exports[`Parkeren > should display the list of parkeervergunningen 1`] = `
<tr
class="ams-table__row"
>
<td
class="ams-table__cell"
>
Z/24/2233516
</td>
<td
class="ams-table__cell"
>
<a
class="ams-link ams-link--standalone _MaRouterLink__no-underline-fat_aa758a"
href="/parkeren/gpp/Z-24-2233516"
>
Z/24/2233516
Vergunning 1
</a>
</td>
<td
class="ams-table__cell"
>
Vergunning 1
</td>
<td
class="ams-table__cell"
>
Expand All @@ -235,21 +235,21 @@ exports[`Parkeren > should display the list of parkeervergunningen 1`] = `
<tr
class="ams-table__row"
>
<td
class="ams-table__cell"
>
Z/24/2233516
</td>
<td
class="ams-table__cell"
>
<a
class="ams-link ams-link--standalone _MaRouterLink__no-underline-fat_aa758a"
href="/parkeren/gpp/Z-24-2233516"
>
Z/24/2233516
Vergunning 2
</a>
</td>
<td
class="ams-table__cell"
>
Vergunning 2
</td>
<td
class="ams-table__cell"
>
Expand Down
24 changes: 12 additions & 12 deletions src/client/pages/Parkeren/__snapshots__/ParkerenList.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,21 @@ exports[`ParkerenList > should display the list of parkeervergunningen 1`] = `
<tr
class="ams-table__row"
>
<td
class="ams-table__cell"
>
Z/24/2233516
</td>
<td
class="ams-table__cell"
>
<a
class="ams-link ams-link--standalone _MaRouterLink__no-underline-fat_aa758a"
href="/parkeren/gpp/Z-24-2233516"
>
Z/24/2233516
Vergunning 1
</a>
</td>
<td
class="ams-table__cell"
>
Vergunning 1
</td>
<td
class="ams-table__cell"
>
Expand All @@ -132,21 +132,21 @@ exports[`ParkerenList > should display the list of parkeervergunningen 1`] = `
<tr
class="ams-table__row"
>
<td
class="ams-table__cell"
>
Z/24/2233516
</td>
<td
class="ams-table__cell"
>
<a
class="ams-link ams-link--standalone _MaRouterLink__no-underline-fat_aa758a"
href="/parkeren/gpp/Z-24-2233516"
>
Z/24/2233516
Vergunning 2
</a>
</td>
<td
class="ams-table__cell"
>
Vergunning 2
</td>
<td
class="ams-table__cell"
>
Expand Down
25 changes: 13 additions & 12 deletions src/client/pages/Parkeren/useParkerenData.hook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const PARKEER_CASE_TYPES: Set<DecosCaseType> = new Set([
CaseType.GPK,
CaseType.GPP,
CaseType.BZP,
CaseType.BZB,
CaseType.EigenParkeerplaats,
CaseType.EigenParkeerplaatsOpheffen,
CaseType.TouringcarDagontheffing,
Expand All @@ -21,19 +22,19 @@ export const PARKEER_CASE_TYPES: Set<DecosCaseType> = new Set([
function getVergunningenFromThemaVergunningen(
content: VergunningFrontendV2[] | Vergunning[] | null
) {
const vergunningen = (content ?? [])
.filter((vergunning) => {
return PARKEER_CASE_TYPES.has(vergunning.caseType as DecosCaseType);
})
.map((vergunning) => ({
...vergunning,
link: {
...vergunning.link,
to: vergunning.link.to.replace('vergunningen', 'parkeren'),
},
}));
return addLinkElementToProperty<VergunningFrontendV2 | Vergunning>(
(content ?? [])
.filter((vergunning) =>
PARKEER_CASE_TYPES.has(vergunning.caseType as DecosCaseType)
)
.map((vergunning) => ({
...vergunning,
link: {
...vergunning.link,
to: vergunning.link.to.replace('vergunningen', 'parkeren'),
},
})),
'identifier'
vergunningen
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/universal/config/feature-toggles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export const FeatureToggle = {
// Vergunningen V1 (met koppel api)
vergunningenActive: true,
// Vergunningen V2 met BFF integratie
vergunningenV2Active: IS_DEVELOPMENT, // TODO: Enable when working on MIJN-8914
decosServiceActive: IS_DEVELOPMENT, // TODO: Enable when working on MIJN-8914
vergunningenV2Active: false, // TODO: Enable when working on MIJN-8914
decosServiceActive: false, // TODO: Enable when working on MIJN-8914

// WIOR Kaar data
wiorDatasetActive: true,
Expand Down

0 comments on commit 9a87456

Please sign in to comment.