-
Notifications
You must be signed in to change notification settings - Fork 310
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
web: make build event logs sticky #5539
Conversation
This pull request has been linked to Shortcut Story #13284: As a user, I see the log stream divider sticky at top of page. |
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.
🎉
@@ -85,6 +85,14 @@ function newLineEl( | |||
if (buildEvent === "init") { | |||
classes.push("is-buildEvent") | |||
classes.push("is-buildEvent-init") | |||
|
|||
if (showManifestPrefix) { | |||
text += ` • ${line.manifestName}` |
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.
(nit) it'd be nice to have a short comment here that explains the reason for suffixing with the manifest name.
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.
done
web/src/LogLine.scss
Outdated
} | ||
.LogLine:not(.is-buildEvent) + .LogLine.is-buildEvent.is-sticky, | ||
.LogLine.is-buildEvent.is-sticky:first-child { | ||
top: -8px; // For position:sticky with padding on LogPane |
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.
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.
oh that's intentional! that's what it looks like at head (go here https://storybook.tilt.dev/?path=/story/new-ui-overviewresourcepane--ten-resources-with-log-store and click "all resources")
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.
ahh, interesting! nevermind then.
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 fiddled with the top padding in a way that i hope will make this look a bit nicer!
@@ -85,6 +85,14 @@ function newLineEl( | |||
if (buildEvent === "init") { | |||
classes.push("is-buildEvent") | |||
classes.push("is-buildEvent-init") | |||
|
|||
if (showManifestPrefix) { | |||
text += ` • ${line.manifestName}` |
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.
done
Hello @hyu, @lizzthabet,
Please review the following commits I made in branch nicks/ch13284:
fc1623a (2022-02-24 19:38:56 -0500)
web: make build event logs sticky
Code review reminders, by giving a LGTM you attest that: