Missing field_types and widget_types in automator_text field widget action
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3541931. -->
Reported by: [brunodbo](https://www.drupal.org/user/33235)
Related to !841
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>I was trying out the new field widget action buttons in the 1.2.x branch with a long plain text field, and was unable to configure the <code>automator_text</code> field widget action on the node form display. After I added <code>string_textarea</code> to <code>wiget_types</code> and <code>string_long</code> to <code>field_types</code> in <code>ai_automators/src/Plugin/FieldWidgetAction/Text.php</code>'s annotation, I was able to configure the automator on the form display.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>- Add a long plain text field to a node.<br>
- Configure a field widget action on the field (see <a href="https://git.drupalcode.org/project/ai/-/blob/1.2.x/docs/modules/field_widget_actions/automators.md?ref_type=heads">https://git.drupalcode.org/project/ai/-/blob/1.2.x/docs/modules/field_widget_actions/automators.md?ref_type=heads</a>, note that the example in the docs is for a taxonomy tags field)<br>
- In the second step, where you configure the automator on the form display, there is no option to configure the automator for the field.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Enable the automator_text field widget action automator for long text fields:</p>
<pre>#[FieldWidgetAction(<br> id: 'automator_text',<br> label: new TranslatableMarkup('Automator Text Suggestion'),<br> widget_types: ['string_textfield', 'string_textarea', 'text_textfield'],<br> field_types: ['string', 'string_long', 'text'],<br> category: new TranslatableMarkup('AI Automators'),<br>)]</pre><h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>Before opening an MR, I was wondering if we should add all the available text and widgets to the plugin annotation?</p>
issue