forked from pagopa/io-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: [IAI-231] Add
eslint-plugin-react-native
to detect unused st…
…yle and/or bad practices (pagopa#4081) * Delete NativeBase `View` component, replace with native one * Remove broken link to Invision * Remove unused variable in the theme variables' file * Improve visual appearance of colors in UI showroom * Add IOColorGradients object, add relative UI Showroom Item to display it * Add all the gradients used in the app * Add all remaining color values from generic `variables` object and other code blocks * Replace white `brandPrimaryInverted` color with `white` * Replace `colorWhite` references with new ones from the `IOColors` object * Restore `View` from `native-base` to avoid a worse view of UI showroom page * Resolve lint errors * Resolve TS compilation errors * Remove `brandGray` color reference * Remove `brandLightGray` color reference * Remove `lightGray` color reference, replaced with `grey` * Remove `brandDarkGray` color reference, replaced with `bluegrey` * Remove variables found in the JEST tests from `IOColors`, because they're dynamically generated * Remove `brandDarkestGray` color reference, replaced with new `textColorDark` variable and `bluegreyDark` * Remove `darkerGrey`, replace it with similar `bluegrey` tone * Move `milderGray` color from `variables.ts` to `IOColors` object * Add `colorSkeleton` variable, remove `brandMildGray`, update `itemSeparator` value * Remove `lightestGray`, update `HeaderIcon…` values with specific `IOColors` values * Update `btnLightBorderColor` value * Add custom arrow to make comments more eloquent * Remove `greyUltralight` in favour of `brandGray`, also renamed into `greyUltraLight` * Remove `lighterGray` from `variables.ts`, move it into `IOColors` * Replace `optCodeComponent` color value with `bluegreyLight` * Replace `lighterGray` color value with similar `bluegreyLight` * Remove references of `colorBlack` in `variables.ts` * Add new `cardShadow` alias token, remove `featuredCardShadow` value from `IOColors` * Remove unused import from `GoBackButton` * Remove redundant values of `blue`, rename `brandPrimary` into `colorPrimary` * Rename secondary colors with a reference to the tone, not the function * Restore `brandPrimary` color value to avoid visual glitches in the loading screen * Delete similar tone of `aqua` * Remove `badgeYellow` from `variables.ts`, rarely used * Rename `brandSuccess` into `colorSuccess` * Remove various shades of `red` and `green`, rename `brandDanger` into `colorDanger` * Change tone of green, according to the design project * Remove `blueDark` (also known as Italia colour), fix style of loading views accordingly * Update reference to white value in `variables.ts` * Remove deprecated yellow gradient * Add reference to `grey` gradient in the `DarkLayout` component, remove hardcoded values * Make `IOColorGradients` the single source of truth for all the gradients (except `appLaunch` and `appIcon`) * Add `eslint-plugin-react-native` to detect unused styles or bad practices * Remove unused styles of the `wallet` components * Remove unused styles from the `services` and `showroom` components * Remove unused styles from the `profile` components * Remove unused styles from the `onboarding` and `modal` components * Remove unused styles from the `authentication`, `ingress` and `messages` components * Remove single element style arrays with automatic fix option of the `eslint` command * Remove all the left unused styles * Remove hardcoded color values after check with `eslint` * Fix tsc compile errors after the useless code's removal * Add `hexToRgba` function to convert color values, replace all the hardcoded RGBa values * Replace all the left RGBa hardcoded values * Resolve prettier check fail * Remove hardcoded color value from PN message timeline * Restore original variables names for success and error state because related to NativeBase * Update Jest snaphots * Update CustomBadge Jest snapshot * Add more explicit condition to CheckBox (ingress variant) Co-authored-by: Emilio Pavia <[email protected]> * Move `getGradientColorValues` into `IOColors.ts` file * Use the new `getGradientColorValues` function to get colours in `DarkLayout` * Fixes after merge * Replace RBG reference with value from IOColors, using `hexToRgba`Update ts/components/LoadingSpinnerOverlay.tsx Co-authored-by: Cristiano Tofani <[email protected]> * Remove repeated stylesheet property from `ServiceDetailsScreen` * Fix lint errors surfaced from previous work done after the PR * Fix `tsc` compilation errors * Fix snapshot tests Co-authored-by: Emilio Pavia <[email protected]> Co-authored-by: Cristiano Tofani <[email protected]>
- Loading branch information
1 parent
8838f7d
commit cfa7198
Showing
156 changed files
with
333 additions
and
757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.