-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IOPID-2719] FastLogin expiration date #467
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #467 +/- ##
==========================================
+ Coverage 63.92% 63.97% +0.05%
==========================================
Files 164 164
Lines 5341 5346 +5
Branches 723 703 -20
==========================================
+ Hits 3414 3420 +6
- Misses 1783 1925 +142
+ Partials 144 1 -143
... and 34 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
>[!Important] >Depends on [this PR](pagopa/io-services-metadata#937) ## Short description This PR implements the FastLogin notification banner in the messages section, displayed when the days left until the `expirationDate` are lower than or equal to the remote `threshold` value ## List of changes proposed in this pull request - Updated the `content` definitions source url - Added the `loginPreferences` in order to handle the local persisted `showSessionExpirationBanner` value - Added the `LoginExpirationBanner` into the `landingScreenBannerMap` - Added tests for `isSessionExpirationBannerRenderableSelector` in order to ensure it works correctly ## Demo <details> <summary>Fast Login</summary> |iOS |Android | |:---------------|:-----------------| |<video src="https://github.com/user-attachments/assets/25161fcb-9bfc-4fd9-986e-76af6cf1808c"></video>|<video src="https://github.com/user-attachments/assets/5cd88c4c-ac9d-413a-9206-762f7e204d9a"></video>| </details> <details> <summary>Standard Login</summary> |iOS |Android | |:---------------|:-----------------| |<video src="https://github.com/user-attachments/assets/8c1593dc-a3a7-47ff-8fda-c2255f8053a9"></video>|<video src="https://github.com/user-attachments/assets/f650d687-44ba-4987-a8f2-33804442cd66"></video>| </details> >[!Note] > For standard login, it is currently not necessary to display the session expiration banner. However, it can be enabled by setting the `standardLogin` threshold field in the remote configuration. ## How to test This feature can be tested in a local environment by running the dev server from the branch of [this PR](pagopa/io-dev-api-server#467). This will allow testing different scenarios by changing the values of `expirationDate` and `loginConfig` as needed. As for the production environment, a proxy tool will be required to manipulate the `expirationDate` field value as needed. --------- Co-authored-by: mariateresaventura <[email protected]>
Important
Depends on this PR
Short description
This PR upgrades the
IO_SERVICES_METADATA_VERSION
and theIO_SESSION_MANAGER_VERSION
, it adds theloginConfig
field in thesrc/payloads/backend.ts
file and theexpirationDate
field in thePublicSession
object in order to allow tests in this PRList of changes proposed in this pull request
IO_SERVICES_METADATA_VERSION
IO_SESSION_MANAGER_VERSION
loginConfig
field in thesrc/payloads/backend.ts
fileexpirationDate
field in thePublicSession
objectHow to test
Follow the instruction in this PR