https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41452 Bug ID: 41452 Summary: Add optional “Beautify” formatting for CodeMirror SQL / JS / CSS editors Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Staff interface Assignee: koha-bugs@lists.koha-community.org Reporter: saiful@semanticconsulting.com QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com Koha uses CodeMirror for editing SQL (Reports) and custom JS/CSS. While syntax highlighting is available, there is no way to format existing content. Even a short SQL query (4–5 lines) quickly becomes hard to read and error-prone when pasted or modified over time. A simple "Beautify" action, similar to what tools like Postman provide, would significantly improve readability and maintainability. Expected behavior: Provide an optional, client-side “Beautify” button for CodeMirror editors that: * Formats SQL in the Reports module * Formats JS/CSS in relevant system preference editors * Runs client-side only and is explicitly triggered This would not affect query execution or validation, and would only improve editor readability. Widely used open-source client-side formatters (e.g. Prettier for JS/CSS and sql-formatter for SQL) could be integrated and loaded only on relevant pages. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.