Skip to content

🐛 Bug - Rule editor preview shows incorrect validation error on non-main branches #11758

@0xharkirat

Description

@0xharkirat

Requested by: @0xharkirat via YakShaver.ai 🦬
cc: @0xharkirat, @joshbermanssw, @adamcogan, @tiagov8

Hi Team!

  🟥  Watch the video (1 min 18 sec)

  Url from screen share: https://ssw.com.au/rules/admin#/-/rules/prefix-job-title

Pain

When editing a rule in the Rules (Content) project, the preview shows a validation error on non-main branches stating that an "End Intro Embed component" is missing, even though the component already exists. This issue does not occur on the main branch and appears when switching to another branch without making related content changes, suggesting the preview validation or branch-specific rendering is incorrect.

Acceptance Criteria

  1. Rule preview does not show a validation error when the End Intro Embed component already exists
  2. Behavior is consistent between main and non-main branches
  3. Validation messages accurately reflect the actual missing or misconfigured components
  4. Switching branches does not introduce false preview errors

Reproduce Steps

  1. Open the Rules (Content) project
  2. Navigate to the rule "Do you include the company name in your job title"
  3. Switch to a non-main branch
  4. Edit or open the rule in the editor
  5. Observe the preview showing an error about a missing End Intro Embed component
  6. Switch back to the main branch and confirm the error is no longer present

Screenshot

Screenshot
Figure: Preview error appears only on feature branch despite required component being present

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions