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

CSIT-1563/Prince/ initial implementation of freshchat #390

Merged
merged 13 commits into from
Nov 6, 2024

Conversation

prince-deriv
Copy link
Contributor

@prince-deriv prince-deriv commented Oct 25, 2024

  • Initial implementation of Freshchat
  • Updated growthbook config
  • Client's country is standardized via cloudflare for proper trigger of growthbook flag

Note: I need help for initial review, this is awaiting for the new hooks coming from deriv-app to properly handle the toggle of the current active chat widget.

Copy link

github-actions bot commented Oct 25, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
npm/@deriv-com/analytics 1.26.1 UnknownUnknown
npm/@deriv-com/analytics 1.23.2 UnknownUnknown
npm/@deriv-com/analytics ^1.26.1 UnknownUnknown
npm/@deriv-com/analytics ^1.23.2 UnknownUnknown

Scanned Manifest Files

package-lock.json
  • @deriv-com/analytics@1.26.1
  • @deriv-com/analytics@1.23.2
package.json
  • @deriv-com/analytics@^1.26.1
  • @deriv-com/analytics@^1.23.2

@prince-deriv prince-deriv changed the title Prince/ initial implementation of freshchat CSIT-1563/Prince/ initial implementation of freshchat Oct 25, 2024
@coveralls
Copy link

coveralls commented Oct 27, 2024

Pull Request Test Coverage Report for Build 11698013878

Details

  • 96 of 119 (80.67%) changed or added relevant lines in 17 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.05%) to 85.615%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/AppHeader/MobileMenu/MobileMenuConfig.tsx 5 6 83.33%
src/components/BlockedScenarios/BlockedScenarios.tsx 1 2 50.0%
src/components/Modals/AdErrorTooltipModal/AdErrorTooltipModal.tsx 1 2 50.0%
src/components/Modals/OrderDetailsComplainModal/OrderDetailsComplainModal.tsx 2 3 66.67%
src/pages/guide/screens/Awareness/Awareness.tsx 1 2 50.0%
src/pages/guide/screens/FAQs/FAQs.tsx 1 2 50.0%
src/pages/guide/screens/GettingStarted/GettingStarted.tsx 1 2 50.0%
src/hooks/custom-hooks/useGrowthbookGetFeatureValue.tsx 11 13 84.62%
src/components/AppFooter/Livechat.tsx 10 13 76.92%
src/utils/get-featureflag.ts 27 31 87.1%
Files with Coverage Reduction New Missed Lines %
src/components/AppFooter/Livechat.tsx 1 73.33%
Totals Coverage Status
Change from base Build 11625064898: 0.05%
Covered Lines: 6584
Relevant Lines: 7151

💛 - Coveralls

}, 10);

if (!isGBLoaded || (isFreshChatEnabled && !freshChat?.isReady)) {
return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't we return livechat by default?

Copy link

github-actions bot commented Nov 6, 2024

Preview Link: https://freshchat-implementa.p2p-standalone.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@nada-deriv nada-deriv merged commit a786e0f into master Nov 6, 2024
3 checks passed
@nada-deriv nada-deriv deleted the freshchat-implementation branch November 6, 2024 10:31
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.

5 participants