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

chore(Cross): [IOAPPX-369] Add support for enableDiscreteTransition to the useHeaderSecondLevel hook #6170

Merged

Conversation

dmnplb
Copy link
Contributor

@dmnplb dmnplb commented Sep 11, 2024

Short description

This PR adds support for enableDiscreteTransition to the useHeaderSecondLevel hook. If you want to learn more about this prop, please refer to the following PR:

List of changes proposed in this pull request

  • Add support for the new enableDiscreteTransition prop
  • Refactor the code to improve readability
  • Remove canGoBack declarations when they are set to true (it is already true by default)

How to test

Run all the tests provided by default

@dmnplb dmnplb added Design System New visual language and reduction of previous UI clutter code review needed 💻📱 Insert this label if you need a code review that no one in your team can give you labels Sep 11, 2024
@dmnplb dmnplb requested a review from a team as a code owner September 11, 2024 08:54
@pagopa-github-bot pagopa-github-bot changed the title [IOAPPX-369] Add support for enableDiscreteTransition to the useHeaderSecondLevel hook chore(Cross): [IOAPPX-369] Add support for enableDiscreteTransition to the useHeaderSecondLevel hook Sep 11, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Sep 11, 2024

Affected stories

  • ⚙️ IOAPPX-369: Aggiunta del supporto alla transizione "discreta" di HeaderSecondLevel
    subtask of

Generated by 🚫 dangerJS against 8ec1e80

@dmnplb dmnplb removed the code review needed 💻📱 Insert this label if you need a code review that no one in your team can give you label Sep 11, 2024
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 47.77%. Comparing base (4f204b4) to head (8ec1e80).
Report is 477 commits behind head on master.

Files with missing lines Patch % Lines
ts/hooks/useHeaderSecondLevel.tsx 90.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6170      +/-   ##
==========================================
- Coverage   48.42%   47.77%   -0.66%     
==========================================
  Files        1488     1746     +258     
  Lines       31617    35095    +3478     
  Branches     7669     8382     +713     
==========================================
+ Hits        15311    16767    +1456     
- Misses      16238    18270    +2032     
+ Partials       68       58      -10     
Files with missing lines Coverage Δ
.../cgn/screens/merchants/CgnMerchantDetailScreen.tsx 12.12% <ø> (-0.70%) ⬇️
...erchants/CgnMerchantsCategoriesSelectionScreen.tsx 29.41% <ø> (+26.78%) ⬆️
...n/screens/merchants/CgnMerchantsListByCategory.tsx 2.43% <ø> (-4.23%) ⬇️
...screens/PaymentsTransactionBizEventsListScreen.tsx 3.57% <ø> (ø)
...eens/PaymentsTransactionBizEventsPreviewScreen.tsx 6.25% <ø> (ø)
...nsaction/screens/PaymentsTransactionListScreen.tsx 4.54% <ø> (ø)
...creens/authentication/TestAuthenticationScreen.tsx 73.33% <ø> (-18.56%) ⬇️
ts/screens/profile/TrialSystemPlayground.tsx 15.78% <ø> (ø)
ts/hooks/useHeaderSecondLevel.tsx 90.62% <90.00%> (+3.66%) ⬆️

... and 1230 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 74cdf06...8ec1e80. Read the comment docs.

Copy link
Contributor

@mastro993 mastro993 left a comment

Choose a reason for hiding this comment

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

LGTM

@dmnplb dmnplb merged commit ef70398 into master Sep 11, 2024
13 checks passed
@dmnplb dmnplb deleted the IOAPPX-369-add-discrete-transition-support-header-2ndlevel-hook branch September 11, 2024 15:34
dmnplb added a commit that referenced this pull request Sep 23, 2024
…rdScreenComponent` (#6171)

> [!note]
> This PR depends on:
> * #6170

## Short description
This PR enables discrete transition in the `BonusCardScreenComponent`
thanks to the new updated `useHeaderSecondLevel` hook.

## List of changes proposed in this pull request
- Add support for `enableDiscreteTransition` to the
`BonusCardScreenComponent`
- Partially refactor `CgnDetailScreen` to improve compatibility with the
`IOScrollView` (cc @freddi301 @Hantex9)
- Add dark mode support to the `BonusCardShape` component
- Add some documentation to the `IOScrollView` component

### Preview


https://github.com/user-attachments/assets/4b03a3da-1444-4d25-bbc2-31eeedd6994e


## How to test
1. Locally launch the app
2. Go to the **DS → Bonus Card Screen** or go the **CGN** main screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cross Design System New visual language and reduction of previous UI clutter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants