Overview

It looks like currently AI is only able to create props for components. It should be able to do this both when it's asked explicitly, but also in scenarios where it's relevant. For example, if I ask it to create a container, section, grid, etc, without specifying that I need a slot, it should know that it needs to create slot.

Proposed resolution

It should be also able to create slots.

User interface changes

Issue fork canvas-3551615

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.

lauriii’s picture

Priority: Normal » Major

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

utkarsh_33’s picture

Assigned: Unassigned » utkarsh_33

utkarsh_33’s picture

Status: Active » Needs review
utkarsh_33’s picture

Assigned: utkarsh_33 » Unassigned
kunal.sachdev’s picture

Tested it and it works as expected.

Also I tried testing this case :-

  1. Create a container component - It creates a new component named 'Container' with a single slot
  2. Attempt to edit 'Container' component on component edit page using the prompt: Edit the 'Container' component to add one more slot - Gives error

This case currently doesn't work as the component editing not handled in this MR. Should component editing be handled in this MR, or is a follow-up issue preferred?