ai_ckeditor: Add option to show or hide the "AI Writer" status information
## Summary When enabling the ai_ckeditor submodule and enabling the plugin for the text format, a status information such as "AI Writer: Idle" is shown on every editor. This is provided in a hardcoded way by the AiNetworkStatus.js file. Some users may not want to see this status information. Therefore, it would be great being able to conveniently show or hide this information via configuration. ## Problem Making this status information optional improves general UX. ## Proposed solution *(optional)* Add a configuration option into `ai_ckeditor.settings` and expose it via UI. ## Workaround *(optional)* Right now I only see a way to hide this information by either patching or adding some custom CSS that hides the div container with a `display: none`. ## Affected modules / components *(optional)* This affects only ai_ckeditor sub-module, as far as I'm aware of. <details> <summary>Contextual information for getting started</summary> ## Context The **ai_ckeditor** submodule adds AI tools to CKEditor 5 text formats. When the plugin is enabled for a format, every editor instance renders a hardcoded status indicator (e.g. "AI Writer: Idle") drawn by `AiNetworkStatus.js`. There is currently no way to turn this off short of custom CSS or a patch. Your change adds a configuration flag to `ai_ckeditor.settings` (with its schema), a checkbox on the settings form, and wiring that passes the value through to `AiNetworkStatus.js` so the indicator renders only when enabled. ## Why does this matter The status text is always-on and unavoidable, cluttering the editor for sites that don't want it. Making it optional is a pure UX improvement and removes the need for the CSS/patch workaround editors currently rely on. ## How to test Preconditions: an AI provider and a Chat model are configured, and the **ai_ckeditor** submodule is enabled. Because the JS isn't committed on branches, build the assets first: from `modules/ai_ckeditor` run `npm ci && npm run build` (see the module's [development notes](https://git.drupalcode.org/project/ai/-/blob/1.2.x/docs/modules/ai_ckeditor/index.md#development)). The **observation point** is the editor toolbar/status area on a content form: the "AI Writer: …" text either appears or it doesn't. 1. **Reproduce / baseline:** At `/admin/config/content/formats`, configure a format (e.g. Basic HTML), add the AI Stars ✨ widget to the toolbar, and enable an AI tool. Edit a node using that format — confirm the "AI Writer: Idle" status currently shows on the editor. 2. **Apply your change** and clear caches (`drush cr`). Open the new option on the ai_ckeditor settings form and **disable** the status display. Save. 3. **Re-check:** Reload the node edit form — the "AI Writer" status should no longer render. Inspect the DOM to confirm the indicator element is absent (not just visually hidden). 4. **Normal path / no regression:** Re-enable the option, save, reload — the status reappears and the AI tools still function. Confirm the default (fresh install / unset config) matches the intended out-of-the-box behaviour. Further reading: [AI CKEditor integration](https://git.drupalcode.org/project/ai/-/blob/1.2.x/docs/modules/ai_ckeditor/index.md). ## Acceptance After the change, an admin can toggle the AI Writer status indicator from the ai_ckeditor configuration UI: disabling it removes the indicator from every editor, and enabling it restores it. With the option enabled (and on the default), behaviour is unchanged from today and all existing AI CKEditor tools keep working. Worth flagging in the MR: confirm the chosen default preserves the current always-shown behaviour for existing sites on upgrade, and that the config schema is in place so settings export/import works cleanly. </details>
issue