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(Carta Giovani Nazionale): [#177461712] Introduces the CGN Test overlay information #2934

Merged
merged 4 commits into from
Mar 24, 2021

Conversation

CrisTofani
Copy link
Contributor

Short description

This PR introduces the CGN Test Overlay

image

@pagopa-github-bot pagopa-github-bot changed the title [#177461712] Introduces the CGN Test overlay information chore(Carta Giovani Nazionale): [#177461712] Introduces the CGN Test overlay information Mar 23, 2021
@pagopa-github-bot
Copy link
Collaborator

pagopa-github-bot commented Mar 23, 2021

Affected stories

  • ⚙️ #177461712: Come BETA Tester voglio vedere un overlay che mi fa capire che la versione di beta supporta la CGN

Generated by 🚫 dangerJS against d57edee

@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #2934 (d57edee) into master (9fef7d8) will decrease coverage by 0.36%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2934      +/-   ##
==========================================
- Coverage   58.49%   58.12%   -0.37%     
==========================================
  Files         902      861      -41     
  Lines       24737    23739     -998     
  Branches     4556     4420     -136     
==========================================
- Hits        14469    13798     -671     
+ Misses      10175     9848     -327     
  Partials       93       93              
Impacted Files Coverage Δ
ts/config.ts 100.00% <100.00%> (ø)
...rding/cobadge/screens/start/CoBadgeStartScreen.tsx 45.09% <0.00%> (-54.91%) ⬇️
...oarding/cobadge/store/reducers/abiConfiguration.ts 48.00% <0.00%> (-52.00%) ⬇️
...es/bonus/cgn/components/detail/CgnStatusDetail.tsx 54.16% <0.00%> (-45.84%) ⬇️
ts/store/reducers/identification.ts 57.14% <0.00%> (-42.86%) ⬇️
...oarding/common/searchBank/SearchStartComponent.tsx 41.93% <0.00%> (-41.94%) ⬇️
ts/screens/wallet/AddCardScreen.tsx 46.15% <0.00%> (-41.54%) ⬇️
ts/features/wallet/onboarding/store/abi.ts 55.26% <0.00%> (-34.22%) ⬇️
...reducers/entities/services/readStateByServiceId.ts 61.90% <0.00%> (-28.58%) ⬇️
.../cobadge/screens/start/CoBadgeChosenBankScreen.tsx 57.69% <0.00%> (-26.93%) ⬇️
... and 51 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9fef7d8...d57edee. Read the comment docs.

* Temp overlay created to avoid ambiguity when test cgn versions are released.
* @constructor
*/
export const CgnTestOverlay: React.FunctionComponent = () => (
Copy link
Contributor

Choose a reason for hiding this comment

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

This PR lgtm
What do you think about a refactoring?
Since CGN e BPD use two custom components for the same scope, could it be only one instead?

something like this
<BetaTestingOverlay title="🛠️ CGN TEST VERSION 🛠️" body="some body"/>

We should always show the app version so that component should include it as a footer.
body prop could be an optional string

<View style={styles.versionContainer} pointerEvents="box-none">
    <Label style={styles.versionText}>{`TITLE`}</Label>
    <Body style={styles.versionText}>{"optional body"}</Body>
    <H5 style={styles.versionText}>{`${getAppVersion()}`}</H5>
  </View>

Schermata 2021-03-24 alle 14 54 28

cc @fabriziofff

@CrisTofani CrisTofani requested a review from Undermaken March 24, 2021 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants