Skip to content
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

chore(IT Wallet): [SIW-1089] Add NFC enable state check saga #5745

Merged
merged 25 commits into from
May 8, 2024

Conversation

mastro993
Copy link
Contributor

@mastro993 mastro993 commented May 6, 2024

Warning

This PR depends on #5729

Short description

This PR adds the logic to check and store the device's NFC state

List of changes proposed in this pull request

  • Added store, actions and saga to handle NFC status check requests and results
  • Added the force app reload on ITW test FF enable: this is required since ITW saga are forked only if the isItWalletTestEnabled flag is set to true

How to test

Test should solve correctly

@pagopa-github-bot pagopa-github-bot changed the title [SIW-1089] Add NFC enable state check saga chore(IT Wallet): [SIW-1089] Add NFC enable state check saga May 7, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented May 7, 2024

Affected stories

  • ⚙️ SIW-1089: Check se NFC è attivo nel dispositivo
    subtask of
    • SIW-435: Inizializzazione wallet

Generated by 🚫 dangerJS against e1b7fb5

Copy link

dpulls bot commented May 7, 2024

🎉 All dependencies have been resolved !

Copy link

codecov bot commented May 7, 2024

Codecov Report

Attention: Patch coverage is 42.30769% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 48.96%. Comparing base (4f204b4) to head (e1b7fb5).
Report is 58 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5745      +/-   ##
==========================================
+ Coverage   48.42%   48.96%   +0.53%     
==========================================
  Files        1488     1605     +117     
  Lines       31617    32198     +581     
  Branches     7669     7738      +69     
==========================================
+ Hits        15311    15766     +455     
- Misses      16238    16374     +136     
+ Partials       68       58      -10     
Files Coverage Δ
ts/features/common/store/reducers/index.ts 100.00% <ø> (ø)
...s/features/itwallet/common/store/reducers/index.ts 100.00% <100.00%> (ø)
...res/itwallet/identification/store/actions/index.ts 100.00% <100.00%> (ø)
...wallet/identification/saga/handleNfcEnabledSaga.ts 75.00% <75.00%> (ø)
ts/sagas/startup.ts 30.50% <0.00%> (+0.04%) ⬆️
ts/screens/profile/DeveloperModeSection.tsx 4.47% <0.00%> (ø)
ts/features/itwallet/identification/saga/index.ts 0.00% <0.00%> (ø)
ts/features/itwallet/common/saga/index.ts 0.00% <0.00%> (ø)
...es/itwallet/identification/store/reducers/index.ts 50.00% <50.00%> (ø)

... and 213 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5caed8c...e1b7fb5. Read the comment docs.

@mastro993 mastro993 merged commit 3ab6f47 into master May 8, 2024
13 checks passed
@mastro993 mastro993 deleted the SIW-1089-add-nfc-enabled-state-check branch May 8, 2024 13:55
mastro993 added a commit that referenced this pull request May 10, 2024
> [!WARNING]
> This PR depends on #5745

## Short description
This PR adds the screen to display the instructions to enable the NFC
for Android users.

## List of changes proposed in this pull request
- Added `ItwIdentificationNfcInstructionsScreen` component
- Added required locale keys

## How to test
In order to test this PR on dev environment, make sure to add this flag
to your .env:
```
# Enable CIE login flow with emulator and dev server
CIE_LOGIN_WITH_DEV_SERVER_ENABLED=YES
```
#### On a simulator
Go to **Profile > IT Wallet > Issuing**, clicking on CIE + PIN you
should be able to see the NFC instructions screen.
#### On a physical Android device
Disable the NFC, then go to **Profile > IT Wallet > Issuing**, clicking
on CIE + PIN you should be able to see the NFC instructions screen.

## Preview
<img
src="https://github.com/pagopa/io-app/assets/6160324/eb608463-8eb5-4bd1-93db-6e77302e80a5"
width="250" />

---------

Co-authored-by: Jacopo Pompilii <Jacopo.pompilii@pagopa.it>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants