Implement triggerField helper across all trigger modules

- Standardize virtual field creation using triggerField helper
- Simplify field definitions by removing repetitive virtual field boilerplate
- Use consistent naming pattern: '__trigger_' + fieldName instead of '__builtin_'
- Preserve existing field conditions while adding parameter storage logic
- Update all trigger field modules to use Field type consistently
This commit is contained in:
2025-09-10 13:35:48 +02:00
parent 8f0ee4bcef
commit 9a3b94ef60
6 changed files with 91 additions and 139 deletions

View File

@@ -0,0 +1,6 @@
import type {Field} from "payload"
export type Trigger = {
slug: string
fields: Field[]
}