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

Open
#2,623 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
nextjs, typescript
Domain
frontend

Research direction

Start at the Rules V3 new-rule route shown in the issue URL and reproduce the flow by clicking “Create a new rule.” Compare the limited-field screen and branch used on save with the expected full editor and main-branch flow. Done means all acceptance criteria pass, including creation of a new PR without saving to an unrelated branch.

Written by the indexing model from the issue text.

Description

Needs Refinement 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

Dominant language
TypeScript
Stars
26
Forks
17
Avg merge
14h 39m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SSWConsulting/SSW.Rules

All issues in SSWConsulting/SSW.Rules

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.