Skip to content

Commit 63cb24e

Browse files
authored
chore: add surveys for different envs (#905)
Add survey for uat and localdev too
1 parent d1c530c commit 63cb24e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

packages/frontend/src/components/Editor/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ export default function Editor(props: EditorProps): React.ReactElement {
324324
attributes={[
325325
`FlowId: ${flow.id}`,
326326
`UserEmail: ${currentUser?.email}`,
327-
...(appConfig.env !== 'prod' ? [`Env: ${appConfig.env}`] : []),
328327
]}
329328
onSubmit={onFlowConfigUpdate}
330329
onClose={onFlowConfigUpdate}

packages/frontend/src/config/app.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,15 @@ function getAppConfig(): AppConfig {
2626
lensSurveyClientKey: 'cm85ca2f300053ooz4vydrmyw',
2727
...commonEnv,
2828
}
29+
// UAT and staging differ for the lens survey client key only
2930
case 'uat':
31+
return {
32+
launchDarklyClientId: '65016ca0b45b7712e6c95703',
33+
sgidClientId: 'PLUMBERSTAGING-776896b1',
34+
isDev: false,
35+
lensSurveyClientKey: 'cm8fp8i030008zm2tbuc07xe5',
36+
...commonEnv,
37+
}
3038
case 'staging':
3139
return {
3240
launchDarklyClientId: '65016ca0b45b7712e6c95703',
@@ -40,7 +48,7 @@ function getAppConfig(): AppConfig {
4048
launchDarklyClientId: '64bf4b539077f112ef24e4ad',
4149
sgidClientId: 'PLUMBERLOCALDEV-dc1a72f7',
4250
isDev: true,
43-
lensSurveyClientKey: 'cm86psst900052orfqetz3gz5', // same as staging
51+
lensSurveyClientKey: 'cm8fpeah2000gzm2t572lhfti',
4452
...commonEnv,
4553
}
4654
}

0 commit comments

Comments
 (0)