A module function that's attached to a querychat instance that:
- Shows the SQL code in with highlighting
- The SQL code is editable
- Edits update the query being applied
- Even better: update the query in the tool history (update dashboard tool)
- Even even better: Update the query and result and regenerate (query tool)
Prior art:
- I used Prism Code Editor for light-weight code editing in the brand.yml example app
- That could easily be turned into a module here in querychat that we use for editable code blocks