-
Notifications
You must be signed in to change notification settings - Fork 14
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
Logs Panel: move log panel options and add sort order #920
Logs Panel: move log panel options and add sort order #920
Conversation
…6/move-actions-into-panel-headers
sortOrder: (logsSortOrderFromLocalStorage | ||
? logsSortOrderFromLocalStorage | ||
: LogsSortOrder.Descending) as LogsSortOrder, | ||
wrapLogMessage: Boolean(getLogOption('wrapLogMessage')), |
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.
This is the breaking change for line wrap (renaming wrapLInes -> wrapLogMessage), not really necessary, but it's nice to have the options here consistent with the types in the panel.
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's fine to do.
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.
Left a few comments, especially the sorting on page refresh needs a fix, but I really like the UX of it and using the RadioGroups for all options is really slick.
sortOrder: (logsSortOrderFromLocalStorage | ||
? logsSortOrderFromLocalStorage | ||
: LogsSortOrder.Descending) as LogsSortOrder, | ||
wrapLogMessage: Boolean(getLogOption('wrapLogMessage')), |
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's fine to do.
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 this scrolling behavior is an issue with the logspanel itself, but worth calling out:
Screen.Recording.2024-11-26.at.17.22.33.mov
@svennergr yeah the panel tries to keep the same lines in the viewport for better or for worse. It's probably more annoying in a QA context then in a real life situation |
That's not the case in core Explore though, so somewhere is a disconnect, I think. |
oh, I didn't realize that! @matyax is this a bug in Explore, or Explore logs? |
I think this is the first time I see this behavior in the logs panel. Probably within LogsPanel or something about Scenes. |
Moving Log panel options to the panel header, and adding logs direction:
WARNING: Breaking change for existing log wrap setting in local storage!