grafana / athena-datasource

Apache License 2.0
36 stars 12 forks source link

Make the query editor textarea resizable #323

Open jirislav opened 2 months ago

jirislav commented 2 months ago

Is your feature request related to a problem? Please describe.

When dealing with SQL with more than 12 lines, it is a struggle to edit the code within Grafana, as I have to scroll through a very tiny textarea as the default height of the editor is just 240px for some reason.

Describe the solution you'd like

Make the textarea resizable (see e.g. Influx editor).

Bonus points: Remember the preferred height in local storage and have that by default.

Describe alternatives you've considered

Alternative method would be to make it expandable (see e.g. Google BigQuery editor). But that's not very good UX, as you have to switch the context and cannot easily iterate on changes by running queries and immediately changing another line of code.

iwysiu commented 2 months ago

Hi @jirislav , thanks for the feature request! I'll add it to our backlog.