-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
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
Use CSS animation for console progress #5871
Conversation
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.
Love it, I've added videos to the description for others
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.
Pretty nice visual effect :)
(not tested manually, thanks Tim for the video)
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.
Looks much better than the existing animation, thanks!
One side note: this animation cannot be embedded into a button (see https://getbootstrap.com/docs/5.1/components/spinners/#buttons for an example) but I think we do not use such animations anyway right now (even though it might make sense in lengthy operations like in #5862 or in the update manager refresh).
Additionally, this animation is not consistent with our spinning build status icons. So we have three different progress animations on the build page now. But this is no blocker for this PR.
I think I've seen progress animations in dropdown fields, does that count? This is a great idea, and the spinner has been terrible for a while so I'm all for replacing it. 👍 That said, my first reaction when I saw the new design is that the "before" is doing something, while the "after" is just waiting. For the agent log that seems fine, but for build logs I expect confusion. Is that just me? If so I'll just get used to it 😉 |
There are some places in the forms where spinner.gif is still referenced. I think it would make sense to replace those with the new spinning wheel (like build status, just without the checkmark). For the console I thought a horizontal animation would fit better the lines being added incrementally. If there is a consensus to use spinning wheels everywhere I can do that of course. |
I've had a branch in the works for a few days to resolve this funnily enough - I've just opened a PR here #5876 Would love to hear your thoughts on it. Thanks |
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.
Code LGTM
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.
This is really nice ! Thanks
@janfaracik your PR looks great. I'm wondering if having a different animation for dropdown/search loading and console would be a feature or just an undesired inconsistency. The reason I used the dots is to use more space horizontally, somehow the left-aligned spinner in console didn't feel right. Any thoughts? If you think there's some value in different animations I can rebase this PR on yours, otherwise I'll just drop it. |
I think both animations can have their place. The three dots feels right for the console, while the spinner I feel it's better for more traditional uses. |
d14e57f
to
2b08e74
Compare
@janfaracik this is now rebased on #5876 . |
I haven't yet seen #5878 in my local instance yet so I can compare it only to the current state. From your video it looks like your animation would fit better for the console log (while the other progress animation looks better for the other use cases). So I am fine with using two different ones, this one for the console and #5878 for the other ones (especially if there is not much space available). |
@zbynek could you rebase on master? |
2b08e74
to
58a35cd
Compare
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
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.
Fine with me. CSS animation is also a good practice for such cases from what I know
Hello. I updated to a version of Jenkins which contains this change and while I love the idea (I am using a dark screen, and a CSS animation is an excellent choice for a replacement), I think that the new design is way too distracting. Am I the only one who has this problem? |
Can you provide a gif showing the issue? Better to post in https://gitter.im/jenkinsci/ux-sig or create an issue on issues.jenkins.io labelled |
It's not an issue, it's just too big and too distracting (gifs are already at the top of this issue). I'm asking if it's just my sensibility to movement on the screen or if other people think the same. |
@Camusensei are you setting the "prefers reduced motion" option in your OS? It would be probably good if the animation reflected this setting (via media query https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion ). |
No I didn't. And I expect lots of animations to be lost if I do. But enough about me, I can manage with a custom CSS stylesheet to hide it or reduce it. Also, when I use dark mode, it's not that, the contrast is small so it's fine, it's really for the light version that I can't focus at all. |
The current spinner gif doesn't look great in dark theme or on high-res screens.
Before
old-css-animation.mov
old-animation-dark-theme.mov
After
new-spinner-animation.mov
new-animation-dark-theme.mov
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@timja
Screen captures
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).