Skip to content

Bespoke Rule editor: visual condition + action builder #833

Description

@rubenvdlinde

The legacy src/modals/Rule/EditRule.vue (1888 LoC — largest legacy modal, deleted in #827) was a visual condition-and-action builder for openconnector Rules:

  • Condition tree (AND/OR groups + leaf predicates)
  • Action selector with parameter form
  • Optional ordering + timing fields

#828 covered name + description + action/timing/type via CnFormDialog includeFields. The visual condition/action builder is a major bespoke UX piece — JSON manifest is not expressive enough.

Recommended approach: custom RuleDetailPage component that wraps CnDetailPage and renders a #conditions-builder + #action-config widget pair. The detail page route already exists; flip it to type: custom + register the component.

Reference: git show <pre-#827>:src/modals/Rule/EditRule.vue (1888 LoC).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions