-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: validate mustache variable in workflow YAML #4485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This pull request introduces structured mustache variable validation in workflow YAML, updating error types and enhancing error handling and UI feedback throughout the workflow editor and store.
- Refactored mustache validation logic in /keep-ui/entities/workflows/lib/validation.ts, including fixing a template literal interpolation issue.
- Updated error and type definitions in /keep-ui/entities/workflows/model/types.ts and integrated structured errors.
- Modified workflow store in /keep-ui/entities/workflows/model/workflow-store.ts to filter and process tuple-based validation errors.
- Enhanced node error display in /keep-ui/features/workflows/builder/ui/WorkflowNode.tsx with dynamic styling.
- Added the useYamlValidation hook and supporting toolbar in /keep-ui/shared/ui/WorkflowYAMLEditor/lib/useYamlValidation.ts and ...Toolbar.tsx.
13 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile
keep-ui/shared/ui/WorkflowYAMLEditor/ui/WorkflowYAMLValidationErrors.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes #4478