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: [IOPID-1521,IOPID-1522,IOPID-1523] Integrate new DS in Profile section #5778

Merged
merged 47 commits into from
May 28, 2024

Conversation

ChrisMattew
Copy link
Collaborator

@ChrisMattew ChrisMattew commented May 16, 2024

Short description

Integrate new DS in Profile section and Tax Code screen.

List of changes proposed in this pull request

  • Integration of new DS in Profile section;
  • Implementation of new Banner in Profile section to guide the user to the new tax code section;
  • In "Your Data" section:
    • Integration of new DS;
    • Addition of new Tax Code list item.
  • Integration of new DS in Fiscal Code section

Test

E2E

Tip

Run e2e tests

Screens

iOS & Android

iOS Android
iOS-prifle-new-DS.mov
android-profile-new-ds.mp4

A11Y - iOS & Android

iOS Android
iOS-a11y-profile-new-DS.mov
android-a11y-profile-new-ds.mp4

How to test

  • Navigate into the Profile section to check the new DS. The new Banner** should be visible on top of the screen.
  • Clicking on the new Banner it will redirect you to the "Your Data" screen (even this one with the new DS applied).
  • Once in the "Your Data" screen if you click the cta "Show" displayed in the Tax Code list item you will be redirected to the new Tax Code screen accordingly with the new DS directives.

Important

Once in the Tax Code screen, if the brightness of your device is not at the maximum level, it will automatically be brought to the maximum level, in this case exiting this screen will restore the brightness of your device as previously set.

Note

** Once the Banner is closed, it shouldn't appear anymore, even if you close and re-open the app. But don't worry, you will still be able to navigate into the "Your Data" screen by clicking on the dedicated item on the list.

@pagopa-github-bot pagopa-github-bot changed the title [IOPID-1521] - Integrate new DS in Profile section feat: [IOPID-1521] - Integrate new DS in Profile section May 16, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented May 16, 2024

Warnings
⚠️

Multiple stories with different types are associated with this Pull request.
Only one tag will be added, following the order: feature > bug > chore

Affected stories

  • 🌟 IOPID-1521: [DS-Profile][APP] Main Screen
    subtask of
  • 🌟 IOPID-1522: [DS-Profile] [APP] CF Screen
    subtask of
  • 🌟 IOPID-1523: [DS-Profile][APP] Main Data Screen
    subtask of

Generated by 🚫 dangerJS against 3016294

Copy link

codecov bot commented May 16, 2024

Codecov Report

Attention: Patch coverage is 79.03226% with 26 lines in your changes are missing coverage. Please review.

Project coverage is 49.82%. Comparing base (4f204b4) to head (3016294).
Report is 104 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5778      +/-   ##
==========================================
+ Coverage   48.42%   49.82%   +1.39%     
==========================================
  Files        1488     1627     +139     
  Lines       31617    32322     +705     
  Branches     7669     7865     +196     
==========================================
+ Hits        15311    16103     +792     
+ Misses      16238    16156      -82     
+ Partials       68       63       -5     
Files Coverage Δ
ts/features/common/store/reducers/index.ts 100.00% <ø> (ø)
ts/features/profileSettings/store/actions/index.ts 100.00% <100.00%> (ø)
.../features/profileSettings/store/selectors/index.ts 100.00% <100.00%> (ø)
ts/navigation/ProfileNavigator.tsx 66.66% <ø> (+26.66%) ⬆️
ts/navigation/TabNavigator.tsx 9.09% <ø> (-1.72%) ⬇️
.../navigation/components/HeaderFirstLevelHandler.tsx 6.45% <ø> (ø)
ts/screens/profile/FiscalCodeScreen.tsx 100.00% <100.00%> (+81.48%) ⬆️
ts/store/reducers/index.ts 40.74% <ø> (ø)
...s/features/profileSettings/store/reducers/index.ts 85.71% <85.71%> (ø)
ts/screens/profile/ProfileDataScreen.tsx 92.59% <91.30%> (+22.00%) ⬆️
... and 2 more

... and 543 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 17fdb27...3016294. Read the comment docs.

@shadowsheep1 shadowsheep1 added dont-merge ✋ IO-A&I IO - Autenticazione e Identità labels May 17, 2024
@ChrisMattew ChrisMattew changed the title feat: [IOPID-1521] - Integrate new DS in Profile section feat: [IOPID-1521,IOPID-1522,IOPID-1523] - Integrate new DS in Profile section May 17, 2024
…nce action differentProfileLoggedIn is dispatched
return {
type: "buttonLink",
componentProps: {
onPress: () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

To optimise, you could put the navigation you are using at onPress inside a function that uses the useCallback, what do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since the entire object is memoized, the function within it is memoized too. So, wrapping the function with a useCallback is not needed for this use case!

Copy link
Member

@shadowsheep1 shadowsheep1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ChrisMattew
Copy link
Collaborator Author

@mariateresaventura copy review needed! 🙏🏼

@ChrisMattew ChrisMattew requested a review from Ladirico May 28, 2024 10:41
@shadowsheep1 shadowsheep1 merged commit c3a7a82 into master May 28, 2024
13 checks passed
@shadowsheep1 shadowsheep1 deleted the IOPID-1521-ds-profile-app-main-screen branch May 28, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO-A&I IO - Autenticazione e Identità
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants