[ES|QL] Adds "Prettify" button in the editor and removes the abiity to unwrap#228159
[ES|QL] Adds "Prettify" button in the editor and removes the abiity to unwrap#228159stratoula merged 18 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/kibana-esql (Team:ESQL) |
vadimkibana
left a comment
There was a problem hiding this comment.
Nice! Code changes LGTM.
src/platform/packages/shared/kbn-esql-utils/src/utils/query_parsing_helpers.ts
Show resolved
Hide resolved
|
"Prettify" is fun! But is "Format" easier to translate? |
Mmm I personally prefer Prettify but I am not a native speaker. @andreadelrio @florent-leborgne wdyt? We are talking about the tooltip |
|
@stratoula No strong opinion on my end. "Prettify query" is perfectly valid and even slightly more engaging than a classic "Format query" (which would be very fine too). It's slightly harder to translate without surrounding context though, if that is a concern 😅 |
|
I think "Prettify" is more fun. Maybe we go with that and change it if it raises eyebrows. |
|
@florent-leborgne you are right. I should have given you more context. We have this button in the editor which when the user clicks it the ES|QL query changes in order to be more readable. We add some indent, we are wrapping, we change the keywords from lowercase to uppercase etc |
|
@stratoula thanks for the added details. I was just saying that translators (or the machines that translate our content 🤔) might not correctly translate "prettify" if they translate it literally because they often lack that context :D (like in french it should be translated to "formatter" anyways because the literal translation of "prettify" would make no sense 😂). So in case there is a strong concern with how this could be translated, or if we're unable to make a note for the translator, "Format" is maybe a safer option. If not, let's keep "Prettify", because we all prefer this term :) |
|
Ah I see!! It is a good point! But as Drew said let's try Prettify (super cute) and if we have concerns we can always change it I could change the key to format to make it more clear for them |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Unknown metric groupsAPI count
References to deprecated APIs
History
|
…o unwrap (elastic#228159) ## Summary Closes elastic#223209 Removes the wrap button and inserts a prettify one instead. It is currently missing the icon. <img width="288" height="158" alt="image" src="https://github.com/user-attachments/assets/d9adbab2-abdb-4b3b-acd7-7cb3ece9aca7" /> --------- Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
Summary
Closes #223209
Removes the wrap button and inserts a prettify one instead. It is currently missing the icon.