-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable fullstory only for cloud (#7298)
- Loading branch information
Showing
13 changed files
with
87 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
airbyte-webapp/src/packages/cloud/services/IntercomProvider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import { IntercomProvider as IntercomProviderCore } from "react-use-intercom"; | ||
import { useConfig } from "packages/cloud/services/config"; | ||
|
||
const IntercomProvider: React.FC = ({ children }) => { | ||
const config = useConfig(); | ||
|
||
return ( | ||
<IntercomProviderCore appId={config.intercom.appId}> | ||
{children} | ||
</IntercomProviderCore> | ||
); | ||
}; | ||
|
||
export { IntercomProvider }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
airbyte-webapp/src/packages/cloud/services/config/types.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
import { Config } from "config"; | ||
import * as Fullstory from "@fullstory/browser"; | ||
|
||
declare global { | ||
interface Window { | ||
// Cloud specific params that should be moved to cloud repo | ||
FULLSTORY?: string; | ||
FIREBASE_API_KEY?: string; | ||
FIREBASE_AUTH_DOMAIN?: string; | ||
CLOUD_API_URL?: string; | ||
} | ||
} | ||
|
||
export type CloudConfigExtension = { | ||
cloudApiUrl: string; | ||
fullstory: Fullstory.SnippetOptions & { enabled: boolean }; | ||
firebase: { | ||
apiKey: string; | ||
authDomain: string; | ||
}; | ||
intercom: { | ||
appId: string; | ||
}; | ||
}; | ||
|
||
export type CloudConfig = Config & CloudConfigExtension; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters