-
Notifications
You must be signed in to change notification settings - Fork 49k
[Flight] Make it more obvious what the short name in the I/O description represents #33944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
65efc84
to
d2f1717
Compare
// Include the slash to make it more obvious what we trimmed. | ||
desc = ' (…' + description.slice(slashIdx, queryIdx) + ')'; | ||
} else { | ||
// cut out the middle to not exceed the max length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure this is better. The max length is assuming that most things will be either below the limit or excluded all together. This makes it so that much more is always the exact limit which is large. Making it much noisier.
Additionally, Chrome will insert its own ellipsis in the middle when it's collapsed which can lead to two.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to just elide it if it's long or increase the limit and let Chrome insert the ellipsis in the middle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, Chrome will insert its own ellipsis in the middle when it's collapsed which can lead to two.
I guess the original idea was that we don't want to make the track too busy so a limit does make sense. The double ellipsis is unfortunate. Eliding the value felt pretty bad. It looked like some information was missing.
d2f1717
to
6b10c6a
Compare
Going to experiment if that feels better. Eliding the description on long values was confusing. |
This hopefully makes it more obvious what
fetch (todos)
means.