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

feat(Bonus Pagamenti Digitali): [#176738620] Choose card type before starting the co-badge onboarding workflow #2766

Merged
merged 20 commits into from
Feb 5, 2021

Conversation

fabriziofff
Copy link
Contributor

@fabriziofff fabriziofff commented Feb 2, 2021

Short description

This pr allows the user to choose the type of card to add, before starting the co-badge card addition flow.

Registrazione.schermo.2021-02-02.alle.10.56.07.mov

List of changes proposed in this pull request

  • Changed navigateToOnboardingCoBadgeChooseTypeStartScreen in order to accepts CoBadgeChooseTypeNavigationProps as params
  • Added CoBadgeChooseType screen, that allows the user to choose the right workflow
  • Removed walletAddCoBadgeFromBancomatStart and changed walletAddCoBadgeStart in order to accept a single abi as param.

@pagopa-github-bot pagopa-github-bot changed the title [#176738620] Choose card type before starting the co-badge onboarding workflow feat(Bonus Pagamenti Digitali): [#176738620] Choose card type before starting the co-badge onboarding workflow Feb 2, 2021
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Feb 2, 2021

Affected stories

  • 🌟 #176738620: Come CIT, quando comincio il fusso per aggiungere una carta co-badge, voglio poter scegliere la tipologia della carta

Generated by 🚫 dangerJS against 1cba9d7

@codecov
Copy link

codecov bot commented Feb 2, 2021

Codecov Report

Merging #2766 (1cba9d7) into master (60b3f5c) will increase coverage by 0.03%.
The diff coverage is 61.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2766      +/-   ##
==========================================
+ Coverage   53.99%   54.02%   +0.03%     
==========================================
  Files         802      804       +2     
  Lines       22136    22192      +56     
  Branches     4169     4166       -3     
==========================================
+ Hits        11952    11990      +38     
- Misses      10128    10146      +18     
  Partials       56       56              
Impacted Files Coverage Δ
...res/wallet/onboarding/cobadge/navigation/routes.ts 100.00% <ø> (ø)
...g/cobadge/saga/orchestration/addCoBadgeToWallet.ts 50.00% <0.00%> (-2.00%) ⬇️
...s/wallet/onboarding/cobadge/store/actions/index.ts 100.00% <ø> (ø)
ts/sagas/wallet.ts 23.14% <0.00%> (ø)
...es/wallet/bancomat/screen/BancomatDetailScreen.tsx 60.86% <50.00%> (ø)
...t/onboarding/cobadge/store/reducers/abiSelected.ts 69.23% <50.00%> (+12.98%) ⬆️
...t/onboarding/cobadge/screens/CoBadgeChooseType.tsx 58.82% <58.82%> (ø)
...dge/screens/start/ko/CoBadgeStartKoUnavailable.tsx 88.23% <60.00%> (-11.77%) ⬇️
...ng/cobadge/screens/search/ko/CoBadgeKoNotFound.tsx 81.81% <66.66%> (-2.40%) ⬇️
...obadge/screens/search/ko/CoBadgeKoServiceError.tsx 81.81% <66.66%> (-2.40%) ⬇️
... and 11 more

Continue to review full report at Codecov.

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

@@ -30,10 +32,12 @@ const loadLocales = () => ({
*/
const CoBadgeKoServiceError: React.FunctionComponent<Props> = props => {
const { headerTitle, title, body } = loadLocales();

// disable hardware back
useHardwareBackButton(() => true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is needed? Can you leave also a comment about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought on this and instead of inhibiting the back (this is a leaf screen so by design it is not possible to go back) I made him dispatch the cancel action to exit the workunit.
I've made this change in the top pr #2774 with commit 6d9e6b5 in order to avoid conflict.

@@ -29,10 +31,12 @@ const loadLocales = () => ({
*/
const CoBadgeKoNotFound = (props: Props): React.ReactElement => {
const { headerTitle, title, body } = loadLocales();

// disable hardware back
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as CoBadgeKoServiceError.tsx

@Undermaken Undermaken merged commit 28bb25e into master Feb 5, 2021
@fabriziofff fabriziofff deleted the 176738620-choose-card-type branch January 21, 2022 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants