-
Notifications
You must be signed in to change notification settings - Fork 277
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
Nada/p2 ps 234/buy sell ads message #8273
Nada/p2 ps 234/buy sell ads message #8273
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-nada-deriv-nada-p2ps-234buy-sell-ads-message.binary.sx/ |
Codecov Report
@@ Coverage Diff @@
## master #8273 +/- ##
===========================================
+ Coverage 0.05% 20.73% +20.67%
===========================================
Files 117 1538 +1421
Lines 3425 35927 +32502
Branches 893 7029 +6136
===========================================
+ Hits 2 7449 +7447
- Misses 3423 27732 +24309
- Partials 0 746 +746
|
@@ -26,7 +33,9 @@ const NoAds = () => { | |||
size='s' | |||
weight='bold' | |||
> | |||
<Localize i18n_default_text='No ads for this currency 😞' /> | |||
<Localize | |||
i18n_default_text={is_ads_page ? 'You have no ads.' : 'No ads for this currency 😞'} |
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.
So just FYI you can't use ternaries wihin the localize as this will cause issues with translations, so make sure to separate it 👍
i18n_default_text={is_ads_page ? 'You have no ads.' : 'No ads for this currency 😞'} | |
{ is_ads_page ? | |
<Localize i18n_default_text='You have no ads.' /> | |
: <Localize i18n_default_text='No ads for this currency 😞' /> | |
} |
> | ||
<Localize i18n_default_text='Create ad' /> | ||
<Localize i18n_default_text={is_ads_page ? 'Create new ad' : 'Create ad'} /> |
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.
same here ☝️
</Button> | ||
</Empty> | ||
); | ||
return <NoAds is_ads_page={true} />; |
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.
Could you try this? Cause this usually works as well, if not, can ignore my comment
return <NoAds is_ads_page={true} />; | |
return <NoAds is_ads_page/>; |
Kudos, SonarCloud Quality Gate passed!
|
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.
LGTM
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
|
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
- | Generic High Entropy Secret | 837852c | packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx | View secret |
- | Generic High Entropy Secret | 837852c | packages/account/src/Components/currency-selector/tests/currency-selector.spec.tsx | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
Kudos, SonarCloud Quality Gate passed!
|
⏳ Generating Lighthouse report... |
useStores: jest.fn(() => mock_store_values), | ||
})); | ||
|
||
jest.mock('@sendbird/chat', () => ({ |
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.
Non-blocking: Can we update jest.config instead? So we dont need to refactor these test files in the future 🙏
Kudos, SonarCloud Quality Gate passed!
|
✨ PR has been merged by Paimon the Release Bot |
Changes:
Please include a summary of the change and which issue is fixed below:
When you need to add unit test
When you need to add integration test
Test coverage checklist (for reviewer)
Type of change