-
Notifications
You must be signed in to change notification settings - Fork 300
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
feat: add a way to clean logs in container's log page #9528
base: main
Are you sure you want to change the base?
Conversation
fixes containers#8311 Signed-off-by: Florent Benoit <fbenoit@redhat.com>
before implementing I tried several approach and I found out that switching back and getting the logs again was allowing people to get back the log. about the overlap of the scrollbar, I can try to move it more to the left |
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.
Mac scrollbars are narrower so that bit wasn't an issue for me, but I noticed some other minor UI issues as noted.
The 'reappearing logs' were also a surprise to me, and rules out uses like 'clear logs, go do X, come back to see what logs were generated'. Instead of a timestamp would 'remove top X lines' be any simpler, or is it clearing it the issue?
} | ||
</script> | ||
|
||
<div class="absolute top-0 right-0 px-1 z-50 m-1 opacity-50 space-x-1"> |
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.
<div class="absolute top-0 right-0 px-1 z-50 m-1 opacity-50 space-x-1"> | ||
<button title="Clear logs" onclick={clear}> | ||
<Fa | ||
class="cursor-pointer rounded-full bg-[var(--pd-button-disabled)] min-h-8 w-8 p-1.5" |
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.
Missing a hover effect.
The icon isn't as bright as the actions on top, but if I remove the opacity it is too bright. I think it's missing a text- and regular opacity would help with the previous comment.
What does this PR do?
add a way to clear logs in container's logs
Screenshot / video of UI
Screen.Recording.2024-10-22.at.09.15.11.mov
What issues does this PR fix or reference?
fixes #8311
How to test this PR?
start a container, go to the logs and then click on the clear button