- Issue created by @marcus_johansson
- 🇩🇪Germany marcus_johansson
Setting to postponed for now - we might find a way to have just one plugin. Will re-open if I fail.
NOTE - IMPORTANT: This is a parent issue, if you want to start working on a specific widget and automator combination, please create a child issue using the template below.
The Field Widget Action module is merged into 1.2.x, together with currently three widgets in the AI Automators:
In this process also the following have been made to make development/testing faster going forward:
Now we need the communities help to start pushing out a lot of Field Widget Actions for all the different field form displays that the field types that the Automators supports.
This means a combination of one or many Automator Types, that can be found under src/Plugin/AiAutomatorType and one or many form display types that will work the same.
So for instance you can decide to do the "llm_link" automator type, that maps to "link" field and the "link_default" form display type, but not the "linkit".
To be able to start on such an issue, you should:
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
The Field Widget Action module is merged into 1.2.x, however we need to start adding Automators plugins to it. The parent issue [#] is a parent issue for all the implementations of the Automators plugins. Read more in the parent issue.
This is the implementation of the Field Widget Action(s) [field_widget_actions] for the AI Automator Type(s) [ai_automator_types].
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<ul>
<li>In the AI Automators module, create a new Field Widget Action plugin under src/Plugin/FieldWidgetAction.</li>
<li>Call it [fieldWidgetActionsAiAutomatorType].php</li>
<li>Use the FieldWidgetAction attribute and connect it to the correct widget_types and field_types</li>
<li>At minimum, set up the first part of the aiAutomatorsAjax, where it picks the correct components, and if it should clearEntity and the formElementProperty. clearEntity, means that it removes the enities, to recreate them for the Automators, this should not be set if its a subfield.</li>
<li>Manually test that its working and record a video of it working and upload to the feature (could be done by a reviewer).</li>
<li>(optional, can be removed) Write at least a kernel test of the ajax function</li>
<li>(optional, can be removed) Even better Function Javascript tests, but that is optional.</li>
</ul>
Active
1.2
AI Automators
Setting to postponed for now - we might find a way to have just one plugin. Will re-open if I fail.