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: [IOAPPX-453] Add the new static Appearance profile screen #6573

Merged
merged 37 commits into from
Feb 25, 2025

Conversation

dmnplb
Copy link
Contributor

@dmnplb dmnplb commented Dec 19, 2024

Warning

At the moment the added screen is completely static, with no logic attached. The functionality has been added in the following PR:

Short description

This PR adds the new Appearance screen in the Preferences page (under Settings)

List of changes proposed in this pull request

  • Add the new screen with relative routes
  • Add a teaser for the future dark mode release

Preview

Note

The new icons are visible only in the related PR

appearance-screen-last-iteration.mp4

How to test

Go to SettingsPreferencesAppearance

@dmnplb dmnplb added Design System New visual language and reduction of previous UI clutter Dark mode 🌝 copy review needed ✋🏼 🖊️ Awaiting copy review by UX Writers. Don't merge if there is this label. labels Dec 19, 2024
Copy link
Contributor

github-actions bot commented Dec 19, 2024

Jira Pull Request Link

This Pull Request refers to Jira issues:

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 50.29%. Comparing base (d970d8a) to head (c963e4f).
Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
ts/screens/profile/AppearancePreferenceScreen.tsx 16.66% 5 Missing ⚠️
ts/screens/profile/PreferencesScreen.tsx 0.00% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6573      +/-   ##
==========================================
- Coverage   50.30%   50.29%   -0.01%     
==========================================
  Files        1563     1564       +1     
  Lines       32510    32518       +8     
  Branches     7299     7299              
==========================================
+ Hits        16353    16354       +1     
- Misses      16116    16123       +7     
  Partials       41       41              
Files with missing lines Coverage Δ
ts/navigation/ProfileNavigator.tsx 66.66% <ø> (ø)
ts/navigation/routes.ts 100.00% <ø> (ø)
ts/screens/profile/PreferencesScreen.tsx 6.45% <0.00%> (-0.45%) ⬇️
ts/screens/profile/AppearancePreferenceScreen.tsx 16.66% <16.66%> (ø)

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 d970d8a...c963e4f. Read the comment docs.

@dmnplb dmnplb added this pull request to the merge queue Feb 25, 2025
Merged via the queue into master with commit 92390c8 Feb 25, 2025
22 checks passed
@dmnplb dmnplb deleted the IOAPPX-453-add-new-appearance-page branch February 25, 2025 09:45
github-merge-queue bot pushed a commit that referenced this pull request Feb 25, 2025
…#6590)

> [!caution]
> This PR depends on:
> * #6573

## Short description
This PR enables the new UI overhaul throughout the app. This PR also
adds dynamic font selection in the new **Appearance** profile screen.

> [!note]
> Due to breaking changes introduced with the `5.x` version of the
`io-app-design-system` package, this PR also applies changes to some
component APIs

## List of changes proposed in this pull request
- Update `io-app-design-system` to `5.0.0-7` (pre-release version at the
moment)
- Add dynamic typeface selection using the `useIONewTypeface` hook
- Rename `Experimental Design System` to `Experimental interface` in the
Developer section
- Remove legacy color palette from `DSColors`
- Remove legacy `Badge` component
- Remove legacy color references to old UI

### Changes due to API breaking changes
- Refactor `useHeaderFirstLevel` by accepting tuples
- Change the way IDP assets are rendered:
  - pagopa/io-app-design-system#403
- [Refactor `ModuleIDP` to accept only `ImageSourcePropType` per color
mode](pagopa/io-app-design-system@238a950)
- Remove the `size` prop from `Banner` instances
  - Related: pagopa/io-app-design-system#369
- Remove the `title` prop from `Alert` instances
  - Related: pagopa/io-app-design-system#370
- Change `Badge` variant names
  - Related: pagopa/io-app-design-system#372
- Replace `umbrellaNew` Pictogram name with just `umbrella`

### Preview


https://github.com/user-attachments/assets/b94f6024-6a50-41da-b701-a392d360ed03



## How to test
Run the app in the local environment. You should see the new UI by
default. Change the typeface by going to the new **Appearance** screen

---------

Co-authored-by: Jacopo Pompilii <[email protected]>
Co-authored-by: Andrea Piai <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Feb 25, 2025
…ngs` screen (#6695)

> [!caution]
> This PR depends on:
> * #6573

## Short description
This PR adds the new typeface selection banner to the **Settings**
screen.

## List of changes proposed in this pull request
- Add new selector for appearance banner
- Delete unsed banner and selector `showProfileBanner`
- Move logic to show banner from
`ts/features/profileSettings/store/selectors/index.ts` to
`ts/features/appearanceSettings/store/selectors/index.ts`
- Updated configurations for persistence
- Add the new locale strings for the new banner

### Preview

| Working of the selector | Flow |
| - | - | 
| <video
src="https://github.com/user-attachments/assets/b9a442ba-f9e1-4bd8-96fd-eed1cc89d721"/>
| <video
src="https://github.com/user-attachments/assets/d6a12762-c7ea-4fc4-bd52-da090f8ba706"/>


### Author(s)
@Ladirico @dmnplb 

## How to test
Run the application and test if everything works as you can see from the
preview section

---------

Co-authored-by: Jacopo Pompilii <[email protected]>
Co-authored-by: Alice Di Rico <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dark mode 🌝 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