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-435] Improve overall UI typography + Update io-app-design-system to 4.0.1 #6422

Merged
merged 66 commits into from
Dec 5, 2024

Conversation

dmnplb
Copy link
Contributor

@dmnplb dmnplb commented Nov 19, 2024

Short description

This PR improves overall UI typography.

List of changes proposed in this pull request

  • Update io-app-design-system to the new major 4.0.1 version
  • Update font weight in the HeaderFirstLevel to make the title bolder
  • Improve Strong markdown style by replacing Bold with the Semibold style
  • Decrease font weight of the subtitle in the ServicesHeader component
  • Improve formatting of the MessageListItem
  • Replace removed Chip typographic style with LabelMini
  • Replace removed Label typographic style with Body
  • Replace removed LabelSmall typographic style with the new BodySmall
  • [extra] Fix typo in the English locale (CIEIdWizard)

Note

For the reviewers: the default weight of LabelSmall was Semibold, while the default weight for BodySmall is Regular. That's why LabelSmall set without the weight prop was replaced by BodySmall with the weight prop set to Semibold. The same should happen to the Label typographic style

Preview

Actual UI New UI
Simulator Screenshot - iPhone 16 Pro - 2024-11-21 at 11 47 43 Simulator Screenshot - iPhone 16 Pro - 2024-11-21 at 11 52 44

Old vs New

Messages Home

Before After
Simulator Screenshot - iPhone 16 Pro - 2024-12-05 at 15 19 58 Simulator Screenshot - iPhone 16 Pro - 2024-12-05 at 15 22 33

Payments Home

Before After
Simulator Screenshot - iPhone 16 Pro - 2024-12-05 at 15 20 22 Simulator Screenshot - iPhone 16 Pro - 2024-12-05 at 15 23 51

Related PRs

How to test

Check each DS component and navigate through the app to check if everything is OK

@dmnplb dmnplb added the Design System New visual language and reduction of previous UI clutter label Nov 19, 2024
@pagopa-github-bot pagopa-github-bot changed the title [IOAPPX-435] Improve overall UI typography chore(Cross): [IOAPPX-435] Improve overall UI typography Nov 19, 2024
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Nov 19, 2024

Affected stories

  • ⚙️ IOAPPX-435: Miglioramento generale della tipografia
    subtask of

Generated by 🚫 dangerJS against 9375023

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 44.82759% with 16 lines in your changes missing coverage. Please review.

Project coverage is 48.41%. Comparing base (4f204b4) to head (9375023).
Report is 841 commits behind head on master.

Files with missing lines Patch % Lines
...s/fims/singleSignOn/components/FimsPrivacyInfo.tsx 0.00% 2 Missing ⚠️
ts/features/design-system/DesignSystem.tsx 0.00% 1 Missing ⚠️
ts/features/design-system/core/DSNumberPad.tsx 0.00% 1 Missing ⚠️
ts/features/fci/components/InfoScreenComponent.tsx 50.00% 1 Missing ⚠️
...s/fims/singleSignOn/components/FimsSuccessBody.tsx 0.00% 1 Missing ⚠️
...dpay/details/components/InitiativeRulesInfoBox.tsx 0.00% 1 Missing ⚠️
...nboarding/screens/BoolValuePrerequisitesScreen.tsx 0.00% 1 Missing ⚠️
...boarding/screens/MultiValuePrerequisitesScreen.tsx 0.00% 1 Missing ⚠️
...trustmark/screens/ItwCredentialTrustmarkScreen.tsx 0.00% 1 Missing ⚠️
...eatures/payments/common/components/PaymentCard.tsx 75.00% 1 Missing ⚠️
... and 5 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6422      +/-   ##
==========================================
- Coverage   48.42%   48.41%   -0.02%     
==========================================
  Files        1488     1576      +88     
  Lines       31617    32167     +550     
  Branches     7669     7329     -340     
==========================================
+ Hits        15311    15573     +262     
- Misses      16238    16554     +316     
+ Partials       68       40      -28     
Files with missing lines Coverage Δ
ts/components/AppVersion.tsx 100.00% <ø> (+50.00%) ⬆️
ts/components/BonusCard/BonusCard.tsx 93.93% <ø> (-2.36%) ⬇️
ts/components/IOMarkdown/renderRules.tsx 67.44% <ø> (ø)
ts/components/debug/DebugPrettyPrint.tsx 59.09% <ø> (ø)
ts/components/ui/BannerErrorState.tsx 9.67% <ø> (ø)
ts/components/ui/IOScrollViewWithLargeHeader.tsx 81.25% <100.00%> (ø)
...atures/barcode/components/CameraPermissionView.tsx 100.00% <ø> (ø)
ts/features/bonus/cgn/components/CgnCard.tsx 91.66% <ø> (-8.34%) ⬇️
ts/features/bonus/cgn/components/CgnCardStatus.tsx 100.00% <100.00%> (ø)
...nus/cgn/components/merchants/CgnModuleDiscount.tsx 88.88% <ø> (ø)
... and 68 more

... and 1652 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 4e19eaa...9375023. Read the comment docs.

@shadowsheep1
Copy link
Member

@dmnplb Can we add in this PR description some Android screenshots too? And what about a11y? Do you think that this typographic changes could impact a11y too or they won't impact it?

@dmnplb
Copy link
Contributor Author

dmnplb commented Dec 5, 2024

@dmnplb Can we add in this PR description some Android screenshots too? And what about a11y? Do you think that this typographic changes could impact a11y too or they won't impact it?

@shadowsheep1 As you can see from the difference between the actual and proposed DS release, there's no specific change to the layout logic that would justify an in-depth accessibility analysis. So I'm not against a test on a11y, but I think it's a waste of time.

Copy link
Contributor

@Ladirico Ladirico left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

For A&I Tested both onboarding and first onboarding and all the settings pages on both Android and iOS physical devices. Identification Modal an Block Modal too. All looks good!

@shadowsheep1
Copy link
Member

@dmnplb Can we add in this PR description some Android screenshots too? And what about a11y? Do you think that this typographic changes could impact a11y too or they won't impact it?

@shadowsheep1 As you can see from the difference between the actual and proposed DS release, there's no specific change to the layout logic that would justify an in-depth accessibility analysis. So I'm not against a test on a11y, but I think it's a waste of time.

@dmnplb Okay for the a11y. For the Android part instead, I always suggest to add examples of "old" and "new" of the two platforms (Android and iOS).

@dmnplb
Copy link
Contributor Author

dmnplb commented Dec 5, 2024

I always suggest to add examples of "old" and "new" of the two platforms (Android and iOS)

@shadowsheep1 Just added a bunch of before/after screenshots for documentation purposes (iOS only for this time)

@dmnplb dmnplb merged commit b9d3233 into master Dec 5, 2024
12 checks passed
@dmnplb dmnplb deleted the IOAPPX-435-improve-typography-new-UI branch December 5, 2024 14:46
dmnplb added a commit that referenced this pull request Dec 16, 2024
…Fix overflow text on cards + Extend dark mode support (#6473)

> [!caution]
> This PR depends on:
> * #6422
> * pagopa/io-app-design-system#364

## Short description
This PR disables the dark mode appearance of text placed on light
backgrounds, such as wallet cards. It also extends dark mode support to
other DS components.
 
## List of changes proposed in this pull request
- Update `io-app-design-system` to `4.2.0`
- Extend dark mode support to `Alert`, `Banner` and `FeatureInfo`
- Fix `CgnCard` and `PaymentCard` dark mode appearance
- Force light mode on  `Tag` in the `ItwCredentialCard` component
- Enable larger and bolder text on the `ItwCredentialCard` component by
replacing the native `Text` with properly configured `IOText` (cc
@mastro993)
- Remove preview version of `ItwCredentialCard`
- Fix `CgnCard` and `PaymentCard` expired tag overflow when larger text
is set
- Remove unused `PaymentCardBig` component to reduce the likelihood of
misunderstandings

### Preview
A look at an _unlikely_ edge case

<img width="300"
src="https://github.com/user-attachments/assets/a3a8d013-5fe6-4fde-ad10-886a7b419ee8"
/>

Dark mode support extended to the `Banner` component

<img width="300"
src="https://github.com/user-attachments/assets/5f528249-9045-4d2f-8183-aa0b4a4deab5"
/>



## How to test
Increase the text size to extreme levels and check all the cards in the
DS section

---------

Co-authored-by: Emanuele Dall'Ara <71103219+LeleDallas@users.noreply.github.com>
Co-authored-by: Federico Mastrini <federicomastrini93@gmail.com>
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.

5 participants