File tree Expand file tree Collapse file tree 5 files changed +2
-29
lines changed
frontend/src/components/FlowRow Expand file tree Collapse file tree 5 files changed +2
-29
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ const duplicateFlow: MutationResolvers['duplicateFlow'] = async (
9090
9191 // duplicate the flow with the previous config (only keep notification frequency)
9292 delete prevConfig [ 'duplicateCount' ]
93- delete prevConfig [ 'demoConfig' ]
9493 delete prevConfig [ 'templateConfig' ]
94+ delete prevConfig [ 'showSurvey' ]
9595
9696 const duplicatedFlow = await context . currentUser
9797 . $relatedQuery ( 'flows' , trx )
Original file line number Diff line number Diff line change 1- import type {
2- IFlowConfig ,
3- IFlowDemoConfig ,
4- IFlowErrorConfig ,
5- } from '@plumber/types'
1+ import type { IFlowConfig , IFlowErrorConfig } from '@plumber/types'
62
73import Context from '@/types/express/context'
84
95type Params = {
106 input : {
117 id : string
128 notificationFrequency : IFlowErrorConfig [ 'notificationFrequency' ]
13- hasLoadedOnce : IFlowDemoConfig [ 'hasLoadedOnce' ]
149 showSurvey : boolean
1510 }
1611}
@@ -38,14 +33,6 @@ const updateFlowConfig = async (
3833 }
3934 }
4035
41- // TODO (mal): remove demo config
42- // if (params.input.hasLoadedOnce !== undefined) {
43- // newConfig.demoConfig = {
44- // ...newConfig.demoConfig, // If ever undefined (should never be), it gets set to an empty object first
45- // hasLoadedOnce: params.input.hasLoadedOnce,
46- // }
47- // }
48-
4936 if ( params . input . showSurvey !== undefined ) {
5037 newConfig . showSurvey = params . input . showSurvey
5138 }
Original file line number Diff line number Diff line change @@ -357,7 +357,6 @@ type Flow {
357357type FlowConfig {
358358 errorConfig : FlowErrorConfig
359359 duplicateCount : Int
360- demoConfig : FlowDemoConfig
361360 templateConfig : FlowTemplateConfig
362361 showSurvey : Boolean
363362}
@@ -366,11 +365,6 @@ type FlowErrorConfig {
366365 notificationFrequency : NotificationFrequency !
367366}
368367
369- type FlowDemoConfig {
370- hasLoadedOnce : Boolean !
371- videoId : String !
372- }
373-
374368type FlowTemplateConfig {
375369 templateId : String !
376370 formId : String
@@ -449,7 +443,6 @@ enum NotificationFrequency {
449443input UpdateFlowConfigInput {
450444 id : String !
451445 notificationFrequency : NotificationFrequency
452- hasLoadedOnce : Boolean
453446 showSurvey : Boolean
454447}
455448
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ interface DemoFlowModalProps {
1212
1313export default function DemoFlowModal ( props : DemoFlowModalProps ) : ReactElement {
1414 const { onClose, demoVideoDetails } = props
15- // fallback to default demo video to display for GGWP v1
1615 const { url, title } = demoVideoDetails ?? { }
1716
1817 return (
Original file line number Diff line number Diff line change @@ -172,7 +172,6 @@ export interface IFlowConfig {
172172 rejectIfOverMaxQps ?: boolean
173173 errorConfig ?: IFlowErrorConfig
174174 duplicateCount ?: number
175- demoConfig ?: IFlowDemoConfig
176175 templateConfig ?: IFlowTemplateConfig
177176 showSurvey ?: boolean
178177}
@@ -181,11 +180,6 @@ export interface IFlowErrorConfig {
181180 notificationFrequency : 'once_per_day' | 'always'
182181}
183182
184- export interface IFlowDemoConfig {
185- hasLoadedOnce : boolean
186- videoId : string
187- }
188-
189183export interface IFlowTemplateConfig {
190184 templateId : string
191185 formId ?: string
You can’t perform that action at this time.
0 commit comments