Forums Bug Reports Thread

Admin file-area form description field has no AI wand (moderator edit form does)

Patrick Bass · Jun 6 · 16 · 1 Locked
[Minor] [Normal Priority] [Bug Fixed] [Always Reproduces]
🚀 OP Jun 6, 2026 9:48pm

Area: Files/photos (re-run) (audit p5r) · Surface: /admin/files/areas/create + /admin/files/areas/{id}/edit (AdminFileController@createArea/editArea → admin/files/area-form.php) · Dimension: law8-ai-wand · Severity: minor

Engineering Law 8 wants an AI wand on nearly every config option. This polished admin config surface (Identity/Hierarchy/Description sections, sticky savebar) has a free-text area description but no AI assist, while the moderator file-edit form and the public file upload form both ship the post-toolbar AI wand on their description fields. The admin surfaces are the outliers.

Evidence

platform/templates/admin/files/area-form.php:150-155 — `<textarea name="description" id="fl-desc" class="fl-field__textarea" rows="4" maxlength="500" placeholder="..."><?= $e($area['description'] ?? '') ?></textarea>` with no post-toolbar/AI wand. Contrast with platform/templates/files/mod-edit.php:37 which DOES include `<?php $editorTargetId = 'modEditDescription'; include BASE_PATH . '/templates/partials/post-toolbar.php'; ?>` on its description.

Suggested fix. Include the post-toolbar partial (or the AI-wand button used elsewhere) on the area description textarea so admins can draft/refine area blurbs with AI, matching mod-edit.php and files/upload.php.

Filed by the automated tenant-app audit and adversarially evidence-verified. Status: verified. Open — not yet actioned.


Patrick Bass
@mobieus

🚀 Jun 7, 2026 5:53am

Resolved — fixed and deployed. Commit 839ae393122a, shipped dev-first then to all tenants on 2026-06-06.

Added the shared post-toolbar partial (which carries the AI wand, gated at render) before the area description textarea via $editorTargetId='fl-desc' and added data-wysiwyg="1" to the textarea, matching files/mod-edit.php and files/upload.php so admins can draft/refine area blurbs with AI.

Status: fixed. Thread closed and locked.


Patrick Bass
@mobieus

Log in or register to reply to this thread.