chore(IT Wallet): [SIW-1743] Display upcoming ITWallet banner for users not yet enabled #6283
+143
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short description
This PR introduces a banner for users who have not yet been enabled for ITWallet. Clicking on the banner will direct users to the https://io.italia.it/documenti-su-io page, which is not yet ready at the time of this PR's development
SubscriptionStateEnum.UNSUBSCRIBED || SubscriptionStateEnum.SUBSCRIBED
Screen.Recording.2024-10-15.at.09.16.16.mov
SubscriptionStateEnum.DISABLED
SubscriptionStateEnum.ACTIVE
List of changes proposed in this pull request
ItwDiscoveryBanner
ItwUpcomingWalletBanner.test.tsx
to verify the banner's visibility for all combinations of ITWallet enablement (enabled/disabled) and trial system states (ACTIVE, DISABLED, UNSUBSCRIBED, SUBSCRIBED)How to test
It is possible to test the new ITWallet upcoming banner in two ways:
ItwUpcomingWalletBanner.test.tsx