Skip to content

Conversation

Kiryous
Copy link
Contributor

@Kiryous Kiryous commented Apr 9, 2025

Closes #4478

Screenshot 2025-04-09 at 17 56 21

Copy link

vercel bot commented Apr 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
keep ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 9, 2025 7:36pm

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. Feature A new feature UI User interface related issues labels Apr 9, 2025
@Kiryous
Copy link
Contributor Author

Kiryous commented Apr 9, 2025

@greptileai

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Apr 9, 2025
Copy link
Member

@talboren talboren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 9, 2025
@Kiryous Kiryous merged commit 8c2b41f into main Apr 10, 2025
18 checks passed
@Kiryous Kiryous deleted the feat/4478-mustache-yaml-validation branch April 10, 2025 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature A new feature lgtm This PR has been approved by a maintainer size:XXL This PR changes 1000+ lines, ignoring generated files. UI User interface related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[➕ Feature]: validate {{mustache}} variables in Workflow YAML

2 participants