Overview

I was working with AI to generate a navigation. It added whole bunch of settings for text color, sign up links, etc. I asked it to remove those features from the navigation because I needed something more basic. It removed these from code but it kept the props intact.

Proposed resolution

AI should remove associated props when removing functionality from components.

User interface changes

Issue fork canvas-3551614

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lauriii created an issue. See original summary.

utkarsh_33 made their first commit to this issue’s fork.

kunal.sachdev’s picture

I attempted to reproduce this issue but was unable to do so.

Testing Steps:

  1. Created a new component for the user registration form with the prompt: "Create a fancy component for user registration form."
  2. Edited the component on the edit page with the prompt: "I don't want the phone number field." Result: The phone number field and its related prop were successfully removed.
  3. Attempted a subsequent, broader edit on the same component with the prompt: "Edit this component to make it a simple and short form." Result: Several fields were removed, and the associated props were correctly removed as well.
tim.plunkett’s picture

Assigned: Unassigned » lauriii
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs steps to reproduce