Use jenkins cards over bootstrap cards#422
Conversation
|
The content looks fine! It produces a lot of duplication, though. See my comment in #420
An ideal UX would be: the info and error panels would fill the whole page (both 50% of the non-header area). Then one could scroll the content of each of these 50% views, but the side panel would stay unchanged. This is one of the annoying "features" in Jenkins that the side panel navigation is not fixed and scrolls away when the current page is scrolled. But I tried so many times to get this working without success. |
| <st:adjunct includes="io.jenkins.plugins.bootstrap5"/> | ||
| <l:app-bar title="${title}"/> | ||
|
|
||
| <div class="${class}"> |
There was a problem hiding this comment.
When we would merge #420 then your code would be much shorter:
<bs:page it="${it}">
<j:if test="${size(it.errorMessages) > 0}">
<l:card title="${%Error Messages}">
<div class="bs5-console-output">
<pre id="errors">
<j:forEach var="message" items="${it.errorMessages}">
<div>
${message}
</div>
</j:forEach>
</div>
</l:card>
</j:if>
</bs>
```
|
Ok, I merged #420. Can you please rebase or merge using the |
Yeah, I won't be able to get round to it today, but I'll get it done tomorrow 🙂 |
Signed-off-by: Lewis Birks <22620804+lewisbirks@users.noreply.github.com>
18cdff5 to
27bb83f
Compare
Gave it a go but wasn't able to get anything working, but then again styling isn't my strong point so maybe someone else will manage it eventually |
A follow up for jenkinsci/warnings-ng-plugin#2067 (review)
The main difference between this and the implementation in the jenkinsci/warnings-ng-plugin#2067 is that I haven't restricted the height of the card as this is for a page that is dedicated to these messages. That can be changed if wanted.
Testing done
Tested against the projects provided in https://github.com/uhafner/warnings-ng-plugin-devenv
Submitter checklist