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

fix: [IOBP-901] Missing header in payment methods #6318

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

LeleDallas
Copy link
Contributor

Short description

This pull request includes a change to the PaymentsMethodDetailsScreen component to enhance the getCardHeaderTitle function. The update adds specific handling for BPAY and PayPal payment methods.

List of changes proposed in this pull request

  • Update getCardHeaderTitle function to handle missing edge cases

How to test

io-dev-server

To test all card cases, update the generateWalletData function by adding this line: generateUserWallet(3)

io-app

  • Tap in Portafoglio
  • BPAY or PayPal card
  • Verify the correct card header title is displayed

BPAY and PayPal card header title missing case
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Oct 22, 2024

Affected stories

  • 🐞 IOBP-901: Allo scroll manca il nome nell'header di intestazione nella pagina del dettaglio metodo

Generated by 🚫 dangerJS against 06df795

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 46.99%. Comparing base (4f204b4) to head (06df795).
Report is 632 commits behind head on master.

Files with missing lines Patch % Lines
...ts/details/screens/PaymentsMethodDetailsScreen.tsx 0.00% 11 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6318      +/-   ##
==========================================
- Coverage   48.42%   46.99%   -1.44%     
==========================================
  Files        1488     1804     +316     
  Lines       31617    36567    +4950     
  Branches     7669     8763    +1094     
==========================================
+ Hits        15311    17183    +1872     
- Misses      16238    19319    +3081     
+ Partials       68       65       -3     
Files with missing lines Coverage Δ
...ts/details/screens/PaymentsMethodDetailsScreen.tsx 5.40% <0.00%> (-1.74%) ⬇️

... and 1422 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 36d29c8...06df795. Read the comment docs.

Copy link
Contributor

@Hantex9 Hantex9 left a comment

Choose a reason for hiding this comment

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

LGTM!

@LeleDallas LeleDallas merged commit dfbe4aa into master Oct 22, 2024
13 checks passed
@LeleDallas LeleDallas deleted the IOBP-901-missing-header-in-payment-methods branch October 22, 2024 13:38
LazyAfternoons pushed a commit that referenced this pull request Oct 23, 2024
## Short description
This pull request includes a change to the `PaymentsMethodDetailsScreen`
component to enhance the `getCardHeaderTitle` function. The update adds
specific handling for BPAY and PayPal payment methods.

## List of changes proposed in this pull request
- Update `getCardHeaderTitle` function to handle missing edge cases

## How to test

### io-dev-server
To test all card cases, update the `generateWalletData` function by
adding this line: `generateUserWallet(3)`

### io-app

- Tap in _Portafoglio_
- BPAY or PayPal card
- Verify the correct card header title is displayed

---------

Co-authored-by: Alessandro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO-Bonus e pagamenti IO - Bonus e pagamenti
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants