FWA for Text-to-Image doesn't show preview correctly
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3576535. --> Reported by: [marcus_johansson](https://www.drupal.org/user/385947) Related to !1270 >>> <p>[Tracker]<br> <strong>Update Summary: </strong>[One-line status update for stakeholders]<br> <strong>Short Description: </strong>[One-line issue summary for stakeholders]<br> <strong>Check-in Date: </strong>MM/DD/YYYY<br> <em>Metadata is used by the <a href="https://www.drupalstarforge.ai/" title="AI Tracker">AI Tracker.</a> Docs and additional fields <a href="https://www.drupalstarforge.ai/ai-dashboard/docs" title="AI Issue Tracker Documentation">here</a>.</em><br> [/Tracker]</p> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The preview for the iamge doesn't show up correctly.</p> <h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4> <p>1. Make sure that AI Automators and Field Widget Action modules are enabled.<br> 2. Create a content type under <a href="https://drupal11-test.ddev.site/admin/structure/types/add">https://drupal11-test.ddev.site/admin/structure/types/add</a><br> 3. In label set "Image Creation"<br> 4. Click "Save and manage fields"<br> 5. Click "Create a new field"<br> 6. Pick "File upload"<br> 7. Set the label to "Created Image"<br> 8. Pick "Image" from the checkbox and click "Continue"<br> 9. Scroll down and check "Enable AI Automator"<br> 10. In the "Choose AI Automator Type" the "Image Generation"<br> 11. In "Automator Base Field" pick "Title"<br> 12. In Automator Prompt write "Create an image about {{ context }}"<br> 13. Open "Advanced Settings"<br> 14. Pick "Field Widget" under "Automator Worker"<br> 15. Click Save.<br> 16. Goto form display for the content type: <a href="https://drupal11-test.ddev.site/admin/structure/types/manage/image_creation/form-display">https://drupal11-test.ddev.site/admin/structure/types/manage/image_creation/form-display</a><br> 17. On Created Image, click the cogwheel to edit the field settings.<br> 18. Open "Field Widget Actions"<br> 19. Under "Add new action" choose Text to Image and click "Add action"<br> 20. Check "Enable Automators"<br> 21. Open "Enable an Automator and click "Created Image Default"<br> 22. Click "Update"<br> 23. Click "Save"<br> 24. Go to Create Image Creation under <a href="https://drupal11-test.ddev.site/node/add/image_creation">https://drupal11-test.ddev.site/node/add/image_creation</a><br> 25. In the title write "A cat playing chess"<br> 26. Click "Text to Image" button - this might take a while.<br> 27. <strong>Expected</strong>: You should see that an image is generated and attached to the Created Image field.<br> 28. <strong>Instead</strong>: You do not see the image or the buttons anymore. If you save, it is there, but you can't preview it.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3>Optional: Other details as applicable (e.g., User interface changes, API changes, Data model changes)</h3> <h3 id="summary-ai-usage">AI usage (if applicable)</h3> <p>[ ] AI Assisted Issue<br> This issue was generated with AI assistance, but was reviewed and refined by the creator.</p> <p>[ ] AI Assisted Code<br> This code was mainly generated by a human, with AI autocompleting or parts AI generated, but under full human supervision.</p> <p>[ ] AI Generated Code<br> This code was mainly generated by an AI with human guidance, and reviewed, tested, and refined by a human.</p> <p>[ ] Vibe Coded<br> This code was generated by an AI and has only been functionally tested.</p>
issue