-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(IT Wallet): [SIW-586] Refactor navigation routes (#5244)
## Short description Depends on #5241. This PR suggests a refactoring of the navigation routes, introducing a structure which separates the issuance and presentation flows for PID and generic credentials. While the ultimate aim is to merge these flows in the future, the current proposal might be beneficial as well. Subsequently, another PR will follow to align the screens folder structure with the newly proposed routes structure. ## List of changes proposed in this pull request - Updates the routes structure; - Updates routes names; - Updates usage. ## How to test Static tests. Optionally check every flow again.
- Loading branch information
1 parent
fa3356f
commit e5bd9e1
Showing
26 changed files
with
166 additions
and
159 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,46 +1,48 @@ | ||
export const ITW_ROUTES = { | ||
MAIN: "ITW_MAIN", | ||
DISCOVERY: { | ||
INFO: "ITW_DISCOVERY_INFO", | ||
FEATURES_INFO: "ITW_DISCOVERY_FEATURES_INFO" | ||
} as const, | ||
MAIN: "ITW_MAIN" as const, | ||
ISSUING: { | ||
CIE: { | ||
EXPIRED_SCREEN: "ITW_ISSUING_CIE_EXPIRED_SCREEN", | ||
PIN_SCREEN: "ITW_ISSUING_CIE_PIN_SCREEN", | ||
CARD_READER_SCREEN: "ITW_ISSUING_CIE_CARD_READER_SCREEN", | ||
CONSENT_DATA_USAGE: "ITW_ISSUING_CIE_CONSENT_DATA_USAGE", | ||
WRONG_PIN_SCREEN: "ITW_ISSUING_CIE_WRONG_PIN_SCREEN", | ||
PIN_TEMP_LOCKED_SCREEN: "ITW_ISSUING_CIE_PIN_TEMP_LOCKED_SCREEN" | ||
PID: { | ||
CIE: { | ||
EXPIRED_SCREEN: "ITW_ISSUING_PID_CIE_EXPIRED_SCREEN", | ||
PIN_SCREEN: "ITW_ISSUING_PID_CIE_PIN_SCREEN", | ||
CARD_READER_SCREEN: "ITW_ISSUING_PID_CIE_CARD_READER_SCREEN", | ||
CONSENT_DATA_USAGE: "ITW_ISSUING_PID_CIE_CONSENT_DATA_USAGE", | ||
WRONG_PIN_SCREEN: "ITW_ISSUING_PID_CIE_WRONG_PIN_SCREEN", | ||
PIN_TEMP_LOCKED_SCREEN: "ITW_ISSUING_PID_CIE_PIN_TEMP_LOCKED_SCREEN" | ||
} as const, | ||
INFO: "ITW_ISSUING_PID_INFO", | ||
AUTH: "ITW_ISSUING_PID_AUTH", | ||
AUTH_INFO: "ITW_ISSUING_PID_AUTH_INFO", | ||
REQUEST: "ITW_ISSUING_PID_REQUEST", | ||
PREVIEW: "ITW_ISSUING_PID_PREVIEW", | ||
ADDING: "ITW_ISSUING_PID_ADDING" | ||
} as const, | ||
PID_AUTH_INFO: "ITW_ISSUING_PID_AUTH_INFO", | ||
PID_REQUEST: "ITW_ISSUING_PID_REQUEST", | ||
PID_PREVIEW: "ITW_ISSUING_PID_PREVIEW", | ||
PID_ADDING: "ITW_ISSUING_PID_ADDING" | ||
CREDENTIAL: { | ||
CATALOG: "ITW_ISSUING_CREDENTIAL_CATALOG", | ||
CHECKS: "ITW_ISSUING_CREDENTIAL_CHECKS", | ||
AUTH: "ITW_ISSUING_CREDENTIAL_AUTH", | ||
PREVIEW: "ITW_ISSUING_CREDENTIAL_PREVIEW" | ||
} as const | ||
} as const, | ||
PRESENTATION: { | ||
PID_DETAILS: "ITW_PRESENTATION_PID_DETAILS", | ||
CROSS_DEVICE: { | ||
CHECKS: "ITW_PRESENTATION_CROSS_DEVICE_CHECKS", | ||
DATA_NEW: "ITW_PRESENTATION_CROSS_DEVICE_DATA_NEW", | ||
RESULT_NEW: "ITW_PRESETATION_CROSS_DEVICE_RESULT_NEW", | ||
INIT: "ITW_PRESENTATION_CROSS_DEVICE_INIT", | ||
DATA: "ITW_PRESENTATION_CROSS_DEVICE_DATA", | ||
RESULT: "ITW_PRESETATION_CROSS_DEVICE_RESULT" | ||
} as const | ||
}, | ||
CREDENTIAL: { | ||
ISSUING: { | ||
CATALOG: "ITW_CREDENTIAL_ISSUING_CATALOG", | ||
CHECKS: "ITW_CREDENTIAL_ISSUING_CHECKS", | ||
AUTH: "ITW_CREDENTIAL_ISSUING_AUTH", | ||
PREVIEW: "ITW_CREDENTIAL_ISSUING_PREVIEW" | ||
PID: { | ||
DETAILS: "ITW_PRESENTATION_PID_DETAILS", | ||
REMOTE: { | ||
CHECKS: "ITW_PRESENTATION_PID_REMOTE_CHECKS", | ||
DATA: "ITW_PRESENTATION_PID_REMOTE_DATA", | ||
RESULT: "ITW_PRESENTATION_PID_REMOTE_RESULT" | ||
} as const | ||
} as const, | ||
PRESENTATION: { | ||
CREDENTIAL_DETAILS: "ITW_CREDENTIAL_PRESENTATION_DETAILS" | ||
CREDENTIAL: { | ||
DETAILS: "ITW_PRESENTATION_CREDENTIAL_DETAILS", | ||
REMOTE: { | ||
CHECKS: "ITW_PRESENTATION_CREDENTIAL_CHECKS", | ||
DATA: "ITW_PRESENTATION_CREDENTIAL_DATA", | ||
RESULT: "ITW_PRESETATION_CREDENTIAL_RESULT" | ||
} as const | ||
} as const | ||
} as const, | ||
GENERIC: { | ||
NOT_AVAILABLE: "ITW_GENERIC_NOT_AVAILABLE" | ||
} | ||
} as const; | ||
} as const | ||
}; |
This file contains 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 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
Oops, something went wrong.