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): [#175488300,#175662744] Iban insertion and workflow (rework due to change request) #2360

Merged
merged 41 commits into from
Nov 11, 2020

Conversation

fabriziofff
Copy link
Contributor

@fabriziofff fabriziofff commented Nov 10, 2020

This pr depends on #2355

Short description

This pr changes the Iban insertion workflow in order to accept a change request and api modification.

IbanKoNotOwned

List of changes proposed in this pull request

  • case IbanStatus.OK: and case IbanStatus.CANT_VERIFY:: now allows the user to continue in the workflow (before was only case IbanStatus.OK:.
  • Added bpdIbanPrefillSelector in order to calculate the "prefill" value for the IBAN input textfield (should be upsertvalue if !== undefined, else payoffInstr value if present, else "").
  • Deprecated IbanKOCannotVerify.tsx screen, not accessible but kept in case of second thoughts.
  • Changed IbanKONotOwned.tsx to accept the design changes.

@pagopa-github-bot pagopa-github-bot changed the title [#175488300] Iban insertion and workflow (rework due to change request) feat(Bonus Pagamenti Digitali): [#175488300] Iban insertion and workflow (rework due to change request) Nov 10, 2020
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Nov 10, 2020

Affected stories

  • 🌟 #175488300: Come CIT voglio poter inserire l'IBAN (rework causa CR)
  • 🌟 #175662744: Come CIT voglio che quando scelgo di modificare / inserire l'IBAN, il campo di testo sia già pre-compilato con l'ultimo valore modificato o valido

Generated by 🚫 dangerJS against 3b50508

@codecov-io
Copy link

codecov-io commented Nov 10, 2020

Codecov Report

Merging #2360 (09f9a32) into master (a051b09) will decrease coverage by 0.03%.
The diff coverage is 55.17%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2360      +/-   ##
==========================================
- Coverage   49.26%   49.23%   -0.04%     
==========================================
  Files         636      635       -1     
  Lines       17832    17829       -3     
  Branches     3511     3229     -282     
==========================================
- Hits         8785     8778       -7     
- Misses       9004     9008       +4     
  Partials       43       43              
Impacted Files Coverage Δ
.../screens/iban/insertion/IbanInsertionComponent.tsx 68.18% <0.00%> (ø)
.../features/bonus/bpd/screens/iban/ko/IbanKoBody.tsx 76.47% <0.00%> (-4.78%) ⬇️
...re/reducers/details/activation/payoffInstrument.ts 47.82% <0.00%> (-2.18%) ⬇️
...tures/bonus/bpd/screens/iban/ko/IbanKONotOwned.tsx 73.52% <58.82%> (-7.43%) ⬇️
...features/bonus/bpd/screens/iban/MainIbanScreen.tsx 45.71% <66.66%> (-0.24%) ⬇️
...nus/bpd/store/reducers/details/activation/index.ts 50.00% <66.66%> (+1.11%) ⬆️
...bpd/screens/iban/insertion/IbanInsertionScreen.tsx 75.00% <100.00%> (+2.27%) ⬆️

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 a051b09...20741c0. Read the comment docs.

@fabriziofff fabriziofff changed the title feat(Bonus Pagamenti Digitali): [#175488300] Iban insertion and workflow (rework due to change request) feat(Bonus Pagamenti Digitali): [#175488300,#175662744] Iban insertion and workflow (rework due to change request) Nov 10, 2020
@fabriziofff fabriziofff marked this pull request as ready for review November 10, 2020 18:06
@@ -32,13 +33,17 @@ const IbanKoBody: React.FunctionComponent<Props> = props => {
"",
iban => iban as string
);
const style = fromNullable(props.isFlex).getOrElse(true) ? IOStyles.flex : {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const style = fromNullable(props.isFlex).getOrElse(true) ? IOStyles.flex : {};
const style = props.isFlex ?? true ? IOStyles.flex : {};

@Undermaken Undermaken merged commit fde14e7 into master Nov 11, 2020
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