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): [#176455937] Error and loading screen transaction details #2755

Merged
merged 45 commits into from
Feb 10, 2021

Conversation

debiff
Copy link
Contributor

@debiff debiff commented Jan 26, 2021

Short description

This PR add the loading and the error screen in the section "transaction details" of a bpd period detail.

List of changes proposed in this pull request

  • Added the TransactionUnavailable screen
  • Added the LoadTransactions screen
  • Create a proxy component to manage the different screens

Available transaction

Loading transaction

Unavailable transaction

debiff added 26 commits January 18, 2021 15:50
@pagopa-github-bot pagopa-github-bot changed the title [#176455937] Error and loading screen transaction details feat(Bonus Pagamenti Digitali): [#176455937] Error and loading screen transaction details Jan 26, 2021
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Jan 26, 2021

Affected stories

  • 🌟 #176455937: Come CIT voglio visualizzare una schermata d'errore quando fallisce il caricamento delle transazioni

Generated by 🚫 dangerJS against c8880a3

@codecov
Copy link

codecov bot commented Jan 26, 2021

Codecov Report

Merging #2755 (c8880a3) into master (fe4d3b0) will increase coverage by 0.60%.
The diff coverage is 86.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2755      +/-   ##
==========================================
+ Coverage   54.37%   54.97%   +0.60%     
==========================================
  Files         809      812       +3     
  Lines       22381    22438      +57     
  Branches     4199     4202       +3     
==========================================
+ Hits        12169    12335     +166     
+ Misses      10153    10042     -111     
- Partials       59       61       +2     
Impacted Files Coverage Δ
ts/components/infoScreen/imageRendering.tsx 81.25% <ø> (ø)
...res/bonus/bpd/screens/details/BpdDetailsScreen.tsx 52.54% <ø> (+0.87%) ⬆️
...ils/transaction/BpdAvailableTransactionsScreen.tsx 78.57% <78.57%> (ø)
ts/components/infoScreen/InfoScreenComponent.tsx 93.75% <100.00%> (+31.25%) ⬆️
...eens/details/transaction/BpdTransactionsScreen.tsx 100.00% <100.00%> (+61.90%) ⬆️
...d/screens/details/transaction/LoadTransactions.tsx 100.00% <100.00%> (ø)
...ns/details/transaction/TransactionsUnavailable.tsx 100.00% <100.00%> (ø)
... and 12 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 fe4d3b0...c8880a3. Read the comment docs.

completeUnsubscription: () => {
dispatch(bpdAllData.request());
dispatch(bpdUnsubscribeCompleted());
dispatch(NavigationActions.back());
},
goToTransactions: () => dispatch(navigateToBpdTransactions()),
goToTransactions: () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? It looks the same or did you forgot to add another dispatch call?

Copy link
Contributor Author

@debiff debiff Feb 3, 2021

Choose a reason for hiding this comment

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

No, I added and removed another dispatch but I forgot to remove the brackets, fixed in 01eb23e

@debiff debiff requested a review from CrisTofani February 3, 2021 10:16
@fabriziofff fabriziofff requested a review from thisisjp as a code owner February 4, 2021 19:01
Comment on lines 107 to 113
<GoToTransactions
goToTransactions={() =>
// if the transactions state is in pot.isError state
// on press request a refresh
props.goToTransactions()
}
/>
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
<GoToTransactions
goToTransactions={() =>
// if the transactions state is in pot.isError state
// on press request a refresh
props.goToTransactions()
}
/>
<GoToTransactions goToTransactions={props.goToTransactions} />

It seems to me that the comment refers to a piece of code that is no longer present.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right! Fixed in f05e33e

});

/**
* This screen informs the user that there are problem in retrieve the transactions list.
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
* This screen informs the user that there are problem in retrieve the transactions list.
* This screen informs the user that there are problems retrieving the transactions list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 156a52a

@debiff debiff requested a review from fabriziofff February 10, 2021 11:08
@fabriziofff fabriziofff merged commit ae071e4 into master Feb 10, 2021
@fabriziofff fabriziofff deleted the 176455937-error-screen-transaction-details branch February 10, 2021 13:12
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