Transformations: Fix group by field transformation field name text-overflow #74173
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this feature?
This fixes an issue where a very long field name would be hard to read due to text overflowing.
![image](https://private-user-images.githubusercontent.com/468940/264633048-eee34aec-9d9d-4511-8487-203551293b5b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzMDMyNzksIm5iZiI6MTcyNTMwMjk3OSwicGF0aCI6Ii80Njg5NDAvMjY0NjMzMDQ4LWVlZTM0YWVjLTlkOWQtNDUxMS04NDg3LTIwMzU1MTI5M2I1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMlQxODQ5MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MTRlZDU4ZGJjZTgzNjUwZDIwM2M0ZjdmNTg0ZjhlZmE1M2E0ZWNiYTM1MjA3ZjRlYjMwYmFhMzJhN2JiMjUzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.-kPPruk2brNSoaVRmm7yNPL_dujRNQ6ykhfJwy3b6fk)
Before:
After:
![image](https://private-user-images.githubusercontent.com/468940/264633710-5ed58f6e-ad3f-4fc8-a30b-cc25c0cc9963.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUzMDMyNzksIm5iZiI6MTcyNTMwMjk3OSwicGF0aCI6Ii80Njg5NDAvMjY0NjMzNzEwLTVlZDU4ZjZlLWFkM2YtNGZjOC1hMzBiLWNjMjVjMGNjOTk2My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwMlQxODQ5MzlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mOGM0MTYyYjkyMzY1YzQ3N2EwMWUzNGI4ODg4ODJjOTY5ODNmMmRkOGFlYTMyMTJlZjJjOTNhOTE3ZTI3ODkzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ZQjpLS9JDq0_HeaaseIEsLZn95EYBYA5u5fgddZ6-l4)
In the event that there is a very long field name, the label will grow to accommodate the whole name. Optimally the other labels would grow to the same length as the longest field, but this would require a new solution to how we tackle forms. Since this problem should be an outlier, this solution seems good enough for now.
Fixes: https://github.com/grafana/support-escalations/issues/7266
Special notes for your reviewer:
Please check that: