Overview

When a user uses the AI feature to edit a code component with a prop of type List:text, after a successful edit, the available value options for that prop become empty.

Steps To Reproduce

Scenario 1 :
Create a code component :

Create a dropdown component , with prop type as "List:text" and options as - Red , Blue , Green , Yellow

Observe options values for prop Selected Color is populated
Edit Code Component :

For code component "Color Dropdown" , Exactly below the dropdown add one more prop of type "Text" labeled as note

Observe options values for prop Selected Color is empty

Scenario 2 :
Make a testimonial card with only author name , author avatar and quote , where quote is aligned left to author avatar 

Add author role field below author name field to the above created component named as “Testimonial Card“

Proposed resolution

User interface changes

CommentFileSizeAuthor
editcomponent.mov11.22 MBneha_bawankar
5383.mov19.09 MBneha_bawankar

Issue fork canvas-3558182

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:

  • 3558182-canvas-ai- Comparecompare

Comments

neha_bawankar created an issue. See original summary.

penyaskito’s picture

Project: Experience Builder » Drupal Canvas

Is this still an issue? If it is, should be moved to the Canvas project.

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

utkarsh_33’s picture

Status: Active » Closed (duplicate)

I think this is duplicate of #3559298: Canvas AI : List Prop Error When Updating Component Using Canvas AI. I tried the prompts mentioned in https://www.drupal.org/project/canvas/issues/3559298#comment-16357869 an i can't reproduce this issue any more. I think it's safe to close this as duplicate.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.