-
Notifications
You must be signed in to change notification settings - Fork 106
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
Conversation
Affected stories
|
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
* Temp overlay created to avoid ambiguity when test cgn versions are released. | ||
* @constructor | ||
*/ | ||
export const CgnTestOverlay: React.FunctionComponent = () => ( |
There was a problem hiding this comment.
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>
cc @fabriziofff
Short description
This PR introduces the CGN Test Overlay