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): [#175579023] FeaturedCards carousel in wallet home screen #2398

Merged
merged 20 commits into from
Nov 19, 2020

Conversation

CrisTofani
Copy link
Contributor

Short description

This PR implements the featured cards carousel on wallet home screen.

@pagopa-github-bot pagopa-github-bot changed the title [#175579023] FeaturedCards carousel in wallet home screen feat(Bonus Pagamenti Digitali): [#175579023] FeaturedCards carousel in wallet home screen Nov 17, 2020
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Nov 17, 2020

Affected stories

  • 🌟 #175579023: Come CIT voglio vedere nel wallet una sezione "In Evidenza" che mostra i bonus in rilievo

Generated by 🚫 dangerJS against 657328a

const FeaturedCard: React.FunctionComponent<Props> = (props: Props) => (
<TouchableDefaultOpacity style={styles.container} onPress={props.onPress}>
<View style={styles.row}>
{fromNullable(props.image).fold(
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
{fromNullable(props.image).fold(
{maybeNotNullyString(props.image).fold(

This could be safer: it checks that string is not null and empty. We could have some troubles when props are {image:""}

ts/features/wallet/component/FeaturedCardCarousel.tsx Outdated Show resolved Hide resolved
ts/features/wallet/component/FeaturedCardCarousel.tsx Outdated Show resolved Hide resolved
/>
);
case ID_BPD_TYPE:
return getValue(props.bpdActiveBonus) ? null : (
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
return getValue(props.bpdActiveBonus) ? null : (
return getValue(props.bpdActiveBonus) === false && (

Maybe this could be a refactoring

ts/features/wallet/component/FeaturedCardCarousel.tsx Outdated Show resolved Hide resolved
ts/features/wallet/component/FeaturedCardCarousel.tsx Outdated Show resolved Hide resolved
ts/features/wallet/component/FeaturedCardCarousel.tsx Outdated Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Nov 18, 2020

Codecov Report

Merging #2398 (522821d) into master (915d989) will increase coverage by 0.00%.
The diff coverage is 51.19%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #2398    +/-   ##
========================================
  Coverage   50.08%   50.09%            
========================================
  Files         656      658     +2     
  Lines       18499    18580    +81     
  Branches     3611     3334   -277     
========================================
+ Hits         9265     9307    +42     
- Misses       9186     9225    +39     
  Partials       48       48            
Impacted Files Coverage Δ
ts/components/core/typography/H3.tsx 100.00% <ø> (ø)
ts/screens/wallet/WalletHomeScreen.tsx 26.37% <20.00%> (-0.04%) ⬇️
...features/wallet/component/FeaturedCardCarousel.tsx 45.00% <45.00%> (ø)
...d/saga/orchestration/onboarding/startOnboarding.ts 50.00% <50.00%> (+1.35%) ⬆️
ts/features/wallet/component/FeaturedCard.tsx 81.25% <81.25%> (ø)
ts/components/wallet/TransactionsList.tsx 31.66% <100.00%> (ø)

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 915d989...522821d. Read the comment docs.

@fabriziofff fabriziofff merged commit 5b36805 into master Nov 19, 2020
@fabriziofff fabriziofff deleted the 175579023-featured-carousel-wallet-home branch November 19, 2020 13:06
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.

5 participants