feat: Validate `code: application/json` settings on UI

Merged
KE
4mo ago
+200-12

Proposed changes (including videos or screenshots)

Issue(s)

https://rocketchat.atlassian.net/browse/CORE-2361

Steps to test or reproduce

Further comments

https://github.com/user-attachments/assets/caefb6bd-c998-4f09-a5d6-f64877b80193

Summary by CodeRabbit

  • New Features
    • Added inline validation feedback for JSON-based admin settings, including localized β€œInvalid JSON” messaging in the editor and blocking invalid saves.
    • Extended LDAP-related settings so JSON-typed fields are correctly treated as code content.
  • Bug Fixes
    • Save is disabled whenever edits include invalid JSON (not just when nothing changed).
    • Improved editor accessibility by associating validation errors with the input.
  • Tests
    • Added/updated tests for JSON detection and admin setting validation behavior.
  • Documentation / Chores
    • Added a release/version bump entry for affected packages.