Skip to content
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

Merged
merged 2 commits into from
Feb 28, 2022
Merged

web: make build event logs sticky #5539

merged 2 commits into from
Feb 28, 2022

Conversation

nicks
Copy link
Member

@nicks nicks commented Feb 25, 2022

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:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@nicks nicks requested review from hyu and lizzthabet February 25, 2022 00:39
@shortcut-integration
Copy link

Copy link
Contributor

@lizzthabet lizzthabet left a 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}`
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}
.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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitely not a merge-blocker, but i still see the 8px of padding when i scroll all the way to the top of the log pane.

2022-02-25 12 21 46

fiddling around in the browser, i was able to remove it by setting the log pane padding to 0 0 8px 0 and then this can be set to 0.

Copy link
Member Author

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")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh, interesting! nevermind then.

Copy link
Member Author

@nicks nicks left a 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}`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nicks nicks merged commit 4ba5ed0 into master Feb 28, 2022
@nicks nicks deleted the nicks/ch13284 branch February 28, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants