MCPcopy Create free account
hub / github.com/ForgeAILab/forge / emptyRuleForm

Function emptyRuleForm

web/src/components/settings/ProjectHooksSection.tsx:160–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160function emptyRuleForm(): ProjectHookRuleFormState {
161 return {
162 id: '',
163 name: '',
164 enabled: false,
165 triggerType: 'project.all_work_completed',
166 actionType: 'dispatch_agent',
167 dispatchAgentId: '',
168 dispatchPrompt: '',
169 dispatchFollowUp: null,
170 createTaskTitle: '',
171 createTaskDescription: '',
172 createTaskPriority: '',
173 createTaskType: null,
174 addCommentTargetTaskId: '',
175 addCommentContent: '',
176 notifyTitle: '',
177 notifyMessage: '',
178 notifySeverity: '',
179 cooldownSeconds: '',
180 maxConcurrentRuns: '1',
181 filters: null,
182 }
183}
184
185function compactId(value: string | null | undefined): string {
186 if (!value) return '-'

Callers 5

formFromRuleFunction · 0.85
ProjectHooksSectionFunction · 0.85
openAddDialogFunction · 0.85
closeDialogFunction · 0.85
submitRuleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected