- src/Controllers/EntityBrowserController.php: Added a status_messages...
-
src/Controllers/EntityBrowserController.php: Added a status_messages render element to the form before opening the dialog, so validation errors set during a rebuild are visible inside the modal.
- tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php: Extended the existing edit-dialog test to clear the required title, submit, and assert that an error message is rendered inside the open dialog before the successful "Alpaca" submit.
I deliberately scoped this narrow vs. patch #25:
- No show_messages widget setting — validation errors should always be visible; making it opt-in adds config surface without UX justification.
- No second "messages" modal on success — that was the UX wart called out in comment #27. Queued success messages still flow through the messenger to the next page render via the standard mechanism.
- No FileBrowserWidget changes — the controller is the single chokepoint; both widgets route their edit button through it, so the fix covers both.
- No query-string show_messages plumbing — closes the leaky-abstraction concern from #27.