Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
bd4c9ad
chore: add "level" flag to eid issuance machine
mastro993 Oct 24, 2025
eb752e1
fix: tests
mastro993 Oct 24, 2025
b78e628
doc: improved documentation
mastro993 Oct 24, 2025
a0ab2cb
Merge branch 'master' into SIW-3261-add-l2-plus-flow-selection-logic
mastro993 Oct 24, 2025
8f7dc48
fix: tests
mastro993 Oct 25, 2025
d42d610
fix: tests
mastro993 Oct 26, 2025
4d3a8ad
Update context.ts
mastro993 Oct 27, 2025
dcb1ae0
Apply suggestion from @Copilot
mastro993 Oct 27, 2025
53e8b53
fix: typo
mastro993 Oct 27, 2025
58ecae6
Merge branch 'master' into SIW-3261-add-l2-plus-flow-selection-logic
mastro993 Oct 27, 2025
cd70c1c
chore: `isL3IssuanceFeaturesEnabled`utility function
mastro993 Oct 27, 2025
1c1ddc0
chore: rename `l2-plus` to `l3-next`
mastro993 Oct 28, 2025
5fc50f6
fix: l3 check
mastro993 Oct 28, 2025
047a245
docs: isL3IssuanceFeaturesEnabled
mastro993 Oct 28, 2025
a6a1d3f
Update ts/features/itwallet/machine/eid/machine.ts
mastro993 Oct 28, 2025
d607ff2
Update ts/features/itwallet/machine/eid/context.ts
mastro993 Oct 28, 2025
5529c9c
Update ts/features/itwallet/machine/eid/context.ts
mastro993 Oct 28, 2025
fbd7b74
Merge branch 'master' into SIW-3261-add-l2-plus-flow-selection-logic
mastro993 Oct 29, 2025
031f61f
Merge branch 'master' into SIW-3261-add-l2-plus-flow-selection-logic
mastro993 Oct 30, 2025
5f23fa6
Merge branch 'master' into SIW-3261-add-l2-plus-flow-selection-logic
mastro993 Oct 31, 2025
1057cdd
Merge branch 'master' into SIW-3261-add-l2-plus-flow-selection-logic
mastro993 Nov 3, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export const ItwLegacyDiscoveryInfoComponent = ({
useCallback(() => {
machineRef.send({
type: "start",
isL3: false
mode: "issuance",
level: "l2"
});
}, [machineRef])
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ export const ItwPaywallComponent = ({
useOnFirstRender(() => {
machineRef.send({
type: "start",
isL3: true,
mode: isWalletValid ? "upgrade" : "issuance"
mode: isWalletValid ? "upgrade" : "issuance",
level: "l3"
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,25 @@ import { applicationChangeState } from "../../../../../store/actions/application
import { appReducer } from "../../../../../store/reducers";
import { GlobalState } from "../../../../../store/reducers/types";
import { renderScreenWithNavigationStoreContext } from "../../../../../utils/testWrapper";
import { EidIssuanceLevel } from "../../../machine/eid/context";
import { itwEidIssuanceMachine } from "../../../machine/eid/machine";
import { ItwEidIssuanceMachineContext } from "../../../machine/eid/provider";
import { ITW_ROUTES } from "../../../navigation/routes";
import ItwIpzsPrivacyScreen from "../ItwIpzsPrivacyScreen";

describe("ItwIpzsPrivacyScreen", () => {
it("should match the snapshot (L3 disabled)", () => {
const component = renderComponent(false);
const component = renderComponent("l2");
expect(component).toMatchSnapshot();
});

it("should match the snapshot (L3 enabled)", () => {
const component = renderComponent(true);
const component = renderComponent("l3");
expect(component).toMatchSnapshot();
});
});

const renderComponent = (isL3: boolean) => {
const renderComponent = (level: EidIssuanceLevel) => {
const globalState = appReducer(undefined, applicationChangeState("active"));

const logic = itwEidIssuanceMachine.provide({
Expand All @@ -37,7 +38,7 @@ const renderComponent = (isL3: boolean) => {
value: "IpzsPrivacyAcceptance",
context: {
...initialSnapshot.context,
isL3
level
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const ItwIdentificationModeSelectionScreen = (
useFocusEffect(
useCallback(() => {
if (eidReissuing) {
machineRef.send({ type: "start", mode: "reissuance" });
machineRef.send({ type: "start", mode: "reissuance", level: "l2" });
}
}, [eidReissuing, machineRef])
);
Expand Down Expand Up @@ -133,7 +133,7 @@ export const ItwIdentificationModeSelectionScreen = (
machineRef.send({
type: "restart",
mode: "issuance",
isL2Fallback: true
level: "l2-fallback"
});
}
}, [isWalletAlreadyActivated, machineRef, routeName]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const renderComponent = (isL3 = false, eidReissuing = false) => {
value: { UserIdentification: { Identification: isL3 ? "L3" : "L2" } },
context: {
...initialSnapshot.context,
isL3,
level: isL3 ? "l3" : "l2",
cieContext: {
isNFCEnabled: true,
isCIEAuthenticationSupported: true
Expand Down
Loading
Loading