-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat: Add Betterbugs SDK support #41532
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
Changes from 8 commits
6cd81b2
6da149b
6da0006
044b58e
509ed48
b60bee8
3242f83
9a9320a
5cb8dd0
fcd7288
f70f563
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,8 +39,11 @@ import { getInstanceId } from "ee/selectors/organizationSelectors"; | |
| import { updateIntercomConsent, updateUserDetails } from "actions/userActions"; | ||
| import { getIsAiAgentApp } from "ee/selectors/aiAgentSelectors"; | ||
| import { DOCS_AI_BASE_URL } from "constants/ThirdPartyConstants"; | ||
| import BetterbugsUtil from "utils/Analytics/betterbugs"; | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| import { isAirgapped } from "ee/utils/airgapHelpers"; | ||
|
|
||
| const { appVersion, cloudHosting, intercomAppID } = getAppsmithConfigs(); | ||
| const { appVersion, betterbugs, cloudHosting, intercomAppID } = | ||
| getAppsmithConfigs(); | ||
|
|
||
| const HelpFooter = styled.div` | ||
| display: flex; | ||
|
|
@@ -87,6 +90,14 @@ let HELP_MENU_ITEMS: HelpItem[] = [ | |
| }, | ||
| ]; | ||
|
|
||
| if (betterbugs.enabled && !isAirgapped()) { | ||
| HELP_MENU_ITEMS.push({ | ||
| icon: "support", | ||
| label: "Send support info", | ||
| id: "betterbugs-trigger", | ||
| }); | ||
| } | ||
|
|
||
| if (intercomAppID && window.Intercom) { | ||
| HELP_MENU_ITEMS.push({ | ||
| icon: "chat-help", | ||
|
|
@@ -292,6 +303,11 @@ function HelpButton() { | |
| } | ||
| } | ||
| } | ||
|
|
||
| if (item.id === "betterbugs-trigger") { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @subrata71 Right now this
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we should otherwise it will just remain as half-baked solution. |
||
| e?.preventDefault(); | ||
| BetterbugsUtil.show(user); | ||
| } | ||
| }} | ||
| startIcon={item.icon} | ||
| > | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.