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

Sergei / 67781 / live chat color #7619

Merged

Conversation

sergei-deriv
Copy link
Contributor

@sergei-deriv sergei-deriv commented Feb 16, 2023

Changes:

Please include a summary of the change and which issue is fixed below:

  • add dark mode as query parameter for live-chat

When you need to add unit test

  • If this change disrupt current flow
  • If this change is adding new flow

When you need to add integration test

  • If components from external libraries are being used to define the flow, e.g. @deriv/components
  • If it relies on a very specific set of props with no default behavior for the current component.

Test coverage checklist (for reviewer)

  • Ensure utility / function has a test case
  • Ensure all the tests are passing

Type of change

  • Bug fix
  • New feature
  • Update feature
  • Refactor code
  • Translation to code
  • Translation to crowdin
  • Script configuration
  • Improve performance
  • Style only
  • Dependency update
  • Documentation update
  • Release

@vercel
Copy link

vercel bot commented Feb 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2023 11:44am

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/7619](https://github.com/binary-com/deriv-app/pull/7619)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-sergei-deriv-sergei-67781live-chat-color.binary.sx?qa_server=frontend.binaryws.com&app_id=31477
    - **Original**: https://deriv-app-git-fork-sergei-deriv-sergei-67781live-chat-color.binary.sx
- **App ID**: `31477`

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 21
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-sergei-deriv-sergei-67781live-chat-color.binary.sx/

mahdiyeh-deriv
mahdiyeh-deriv previously approved these changes Feb 23, 2023
packages/core/src/App/Containers/Routes/routes.jsx Outdated Show resolved Hide resolved
packages/shared/src/utils/url/url.ts Outdated Show resolved Hide resolved
packages/shared/src/utils/url/url.ts Show resolved Hide resolved
packages/shared/src/utils/url/url.ts Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Feb 24, 2023

Codecov Report

Merging #7619 (9f52a18) into master (9ecfe42) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #7619      +/-   ##
==========================================
- Coverage   20.73%   20.72%   -0.01%     
==========================================
  Files        1539     1539              
  Lines       35916    35925       +9     
  Branches     7012     7012              
==========================================
  Hits         7447     7447              
- Misses      27749    27758       +9     
  Partials      720      720              
Impacted Files Coverage Δ
...c/App/Components/Elements/LiveChat/use-livechat.ts 0.00% <0.00%> (ø)
packages/core/src/App/Containers/Routes/routes.jsx 0.00% <0.00%> (ø)
packages/shared/src/utils/url/url.ts 29.34% <0.00%> (-3.19%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@sergei-deriv sergei-deriv changed the base branch from develop to master March 9, 2023 10:06
@sergei-deriv sergei-deriv dismissed mahdiyeh-deriv’s stale review March 9, 2023 10:06

The base branch was changed.

eduard-deriv
eduard-deriv previously approved these changes Mar 13, 2023
@eduard-deriv
Copy link
Contributor

Lgtm!

eduard-deriv
eduard-deriv previously approved these changes Mar 13, 2023
@@ -101,6 +102,10 @@ const useLiveChat = (has_cookie_account = false) => {
});
};

useEffect(() => {
onHistoryChange();
}, [search_params, onHistoryChange]);
Copy link
Contributor

Choose a reason for hiding this comment

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

i dont think useEffect will run on window.location.search since this is managed externally, outside of react. Can you replace with things in react-router?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yashim-deriv I can change, no problem, but I've tested it and it works with window.location.search.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@yashim-deriv Changed to useParams(), pls check when you have time

mahdiyeh-deriv
mahdiyeh-deriv previously approved these changes Mar 29, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.6% 1.6% Duplication

@github-actions
Copy link
Contributor

github-actions bot commented Apr 7, 2023

Generating Lighthouse report...

@sandeep-deriv sandeep-deriv merged commit 37e0d18 into binary-com:master May 3, 2023
hirad-deriv added a commit that referenced this pull request May 5, 2023
hirad-deriv added a commit that referenced this pull request May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants