[ES|QL] Better handling of long fields in the editor (#223222)

## Summary

Small change to help with long field names



![image](https://github.com/user-attachments/assets/c719fbc2-8c22-4797-86ff-61f28f7ce658)
This commit is contained in:
Stratoula Kalafateli 2025-06-12 09:53:41 +02:00 committed by GitHub
parent e77f54de04
commit 8577ff35fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,7 +210,8 @@ export const buildFieldsDefinitionsWithMetadata = (
getVariables?: () => ESQLControlVariable[] | undefined
): SuggestionRawDefinition[] => {
const fieldsSuggestions = fields.map((field) => {
const titleCaseType = field.type.charAt(0).toUpperCase() + field.type.slice(1);
const fieldType = field.type.charAt(0).toUpperCase() + field.type.slice(1);
const titleCaseType = `${field.name} (${fieldType})`;
return {
label: field.name,
text: