Remove unused plugin modules and their associated tests

- Delete `init-global-hooks.ts`, `init-step-tasks.ts`, `init-webhook.ts`, and `init-workflow-hooks.ts`
- Remove obsolete components: `TriggerWorkflowButton` and `WorkflowExecutionStatus`
- Clean up unused trigger files: `webhook-trigger.ts`
- Delete webhook-related integration tests: `webhook-triggers.spec.ts`
- Streamline related documentation and improve maintainability by eliminating deprecated code
This commit is contained in:
2025-09-10 18:08:25 +02:00
parent 0f741acf73
commit acdfa411e4
22 changed files with 228 additions and 1217 deletions

View File

@@ -1,7 +1,7 @@
import type {TriggerConfig} from '../plugin/config-types.js'
export const globalTrigger: TriggerConfig = () => ({
slug: 'global',
export const globalTrigger: TriggerConfig = ({globalTriggers}) => ({
slug: 'global-hook',
parameters: [
{
name: 'global',
@@ -9,16 +9,20 @@ export const globalTrigger: TriggerConfig = () => ({
admin: {
description: 'Global that triggers the workflow',
},
options: [], // Will be populated dynamically based on available globals
options: Object.keys(globalTriggers || {}),
},
{
name: 'globalOperation',
name: 'operation',
type: 'select',
admin: {
description: 'Global operation that triggers the workflow',
description: 'Global hook that triggers the workflow',
},
options: [
'update'
"afterChange",
"afterRead",
"beforeChange",
"beforeRead",
"beforeValidate"
],
}
]