-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Better build hist wrapping #1466
Conversation
983076c
to
122d12c
Compare
Grrr this is failing on CI and the failure looks to be unrelated to the changes I made (+ builds fine locally). Failure in current CI run:
|
Ad #1: I am skeptical if this is actually needed/desired. There are lot more criteria to group the build besides the day such as SCM revision, version of sut/dependency, parameter value, build state, etc. Ad #2: There is a tag for that: |
@olivergondza Thanks for the feedback. Re point 1: I think it is definitely needed as there are a number of issues raised in JIRA already relating to build history text overflow, including (but not only) JENKINS-25381. Sure there are lots of other parameters by which you might want to group runs, but the reason for introducing the date separator is not particularly for the purpose of "grouping" (as you suggest). The point of introducing the separator is to remove all that date info from the run rows themselves and so reducing the amount of repetition and potential overflowing on each row etc. The fact that it results in a form of grouping is kinda secondary. Re point 2: Thanks for flagging that. I'll look into it wrt the particular entity being used in this case. |
What does this look like for a regular old "nightly build" job with at most one build per day? Seems wasteful in that case. While the date info is redundant, another option would be to make display name, date/time, and badges into three block elements that are wrapped as needed. Would something like the following be possible?
The advantage here is that display names can be fairly long before they need to be broken. |
@daniel-beck Thanks Daniel. From what I know of html+css, getting those block elements to flow/wrap nicely could be a serious pain in the head. As well as that, I think it would complicate things in terms of what we'd need to do in terms of visual queues to clearly show where the blocks for one build stop and another start - atm it's clear that each run is on a line of its own. There's a UI/CSS guru in house at CloudBees. I'll ask him what we could do.. As for what does it look like when you have just one build per day... |
Using zero-width spaces to break words over a configured len
122d12c
to
23c0e09
Compare
Hmmm... build passes CI now :) |
Based on what @daniel-beck suggests above, what if we did something like this .... And then add the zero-space breaks to both the build and description to force them to overflow/wrap nicely. |
Created another version of this on a branch called single-multi-line-buildhist. It's along the lines of what @daniel-beck suggested. It puts all build details on a single line so long as none of the fields in the row overflow. If any of them overflow, it converts the row to be "multi-line", where each field is changed into a block element (one field per line) and indented appropriately. I also fixed it such that the left sidepanel is fixed width for screens wider than 768px. |
2 commits that try make text wrapping in the build history widget a bit nicer: