Skip to content

🐛 Bug - Creating a new rule does not open full rule editing mode or create a new PR from main #2623

@ssw-yakshaver

Description

@ssw-yakshaver

Requested by: @tiagov8 via YakShaver.ai 🦬
cc: @tiagov8, @Marxoz, @PothieuG, @Freego1783

Hi Team!

  🟥  Watch the video (1 min 30 sec)

  Url from screen share: https://ssw.com.au/rules/admin/index.html#/collections/new/rule/

Pain

In Rules V3 (TinaCMS), the flow for creating a new rule has changed unexpectedly. When clicking "Create a new rule", the user is now presented with only Title, URL, and File Name fields instead of being taken to the full rule editing mode. Saving from this screen commits changes to an existing branch, which is confusing and risky, especially when the branch is related to a different rule. Previously, creating a new rule opened the full rule editor, and saving created a new PR based on the main branch. The previous experience should be restored.

Acceptance Criteria

  1. Clicking "Create a new rule" opens the full rule editing view with all rule content fields available
  2. The new rule creation flow always starts from the main branch
  3. Saving a newly created rule results in a new PR being created
  4. The user is not able to accidentally save a new rule to an unrelated existing branch
  5. The behavior matches the previous expected new rule creation experience

Reproduce Steps

  1. Navigate to Rules V3 (TinaCMS)
  2. Click on "Create a new rule"
  3. Observe that only Title, URL, and File Name fields are shown
  4. Fill in the fields and save
  5. Notice that the change is saved to an existing branch instead of creating a new PR from main

Screenshot

Screenshot
Figure: New rule creation shows limited fields and saves to an existing branch instead of opening the full rule editor with a new PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions