Area: Cross-cutting infra (audit p14) · Surface: /admin/legal/{slug}/edit (AdminLegalController@edit) · Dimension: ui-law · Severity: enhancement
Engineering Law 8 expects an AI wand on nearly every config option where it fits. Legal copy (Terms of Service, Privacy Policy, Community Guidelines, Marketplace Rules) is long-form prose — a textbook fit for an AI rewrite/tighten/plain-language wand. The sibling Site Pages editor already ships the shared formatting toolbar (which includes the gated AI tone-shift wand), but the Legal editor is a plain textarea with neither toolbar nor wand, an inconsistent and lower-quality surface for the most legally-sensitive content in the admin.
Evidence
platform/templates/admin/legal/edit.php renders a bare textarea (line 128: `<textarea name="body_md" id="body_md" class="lg-field__textarea lg-field__textarea--code" rows="28" required ...>`) with no post-toolbar include and no ai-assist button — `grep -c 'ai-assist|post-toolbar|wand-magic' admin/legal/edit.php` = 0. The structurally identical Site Pages editor DOES include the toolbar+AI wand: platform/templates/admin/site-pages/edit.php:147 `<?php $editorTargetId = 'spBody'; include BASE_PATH . '/templates/partials/post-toolbar.php'; ?>` and textarea has `data-wysiwyg="1"` (line 150); that toolbar carries the mobieusAI tone-shift wand (partials/post-toolbar.php:139-153). Many other admin content editors include it too (broadcast.php, editorial/form.php, courses/form.php, branding/index.php, email/digest.php).
Suggested fix. Reuse the same `include partials/post-toolbar.php` + `data-wysiwyg="1"` treatment the Site Pages editor uses on the Legal body textarea, so legal pages get the formatting toolbar plus the gated mobieusAI wand for free and the two editors stay consistent.
Filed by the automated tenant-app audit and adversarially evidence-verified. Status: verified. Open — not yet actioned.
Patrick Bass
@mobieus