Skip to content

Conversation

@MetRonnie
Copy link
Member

@MetRonnie MetRonnie commented Oct 6, 2025

Supersedes #1050
Partially addresses #2313

Old (left), new (right):

image image

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Tests are included.
  • Changelog entry included if this is a change that can affect users
  • Docs screenshots updated at Update for UI sidebar task state badges cylc-doc#882

@MetRonnie MetRonnie added this to the 2.11.0 milestone Oct 6, 2025
@MetRonnie MetRonnie self-assigned this Oct 6, 2025
@MetRonnie MetRonnie added the UX/UI User experience and interface improvements label Oct 6, 2025
@oliver-sanders oliver-sanders added the question Flag this as a question for the next Cylc project meeting. label Oct 6, 2025
@oliver-sanders oliver-sanders removed the question Flag this as a question for the next Cylc project meeting. label Oct 14, 2025
@oliver-sanders
Copy link
Member

LGTM. A nice hybrid of the job icons (which are better for monitoring) and the task icons (which are truer to the meaning of the data). Some small comments:

  1. Can we remove the "succeeded" badge.

    • This number wasn't displayed before as it isn't particularly useful in the n-window system.
    • Note: Mid to long-term, I suspect we might rationalise this down to submitted, running and incomplete depending on what we decide regards task state.
  2. It would be good if we could also include "preparing" tasks in with the "submitted" ones.

    • remote-init can take a while during which time the workflow looks inactive (no tasks in submitted state).
    • Which can make the workflow appear inactive when it isn't.
    • No clear reason why we would want a dedicated preparing badge/column, so merging this into submitted makes sense.
  3. We should keep the icon dimensions constant irrespective of the number within them.

    • In order to maintain an easy to read grid structure.
    • Will get tricky to read if the grid is disrupted.
    • Maybe replace 99+ with just +?

@MetRonnie
Copy link
Member Author

MetRonnie commented Oct 14, 2025

  1. Can we remove the "succeeded" badge.

There is a disparity between the offline/mock mode and real life as succeeded tasks do not show in the sidebar in real life

  1. We should keep the icon dimensions constant irrespective of the number within them.

I tend to disagree - these are badges not necessarily circles (though aesthetically they should be circles when at minimum width). E.g. see https://vuetifyjs.com/en/components/badges (though we couldn't use this as the colour blind theme relies on outlines which are not supported by v-badge)

@oliver-sanders
Copy link
Member

We should keep the icon dimensions constant irrespective of the number within them.

I tend to disagree

Two reasons they should be circles:

  • Analogy to task icons.
  • To maintain a grid of status icons, it would become very hard to read if the grid was disrupted and the icons jumped around.

@MetRonnie
Copy link
Member Author

MetRonnie commented Oct 14, 2025

I have copied the deltas from the current parallel suite and this is what it would look like. IMO easier to read as I have got rid of empty states

Edit: moved screenshots to OP

@oliver-sanders
Copy link
Member

oliver-sanders commented Oct 14, 2025

Aah, so you've also removed the empty states. Not so sure about that. The grid has monitoring and accessibility advantages.

@MetRonnie MetRonnie marked this pull request as ready for review October 17, 2025 17:04
@hjoliver
Copy link
Member

hjoliver commented Oct 19, 2025

Agreed this is a nice compromise between the status quo and what I tried to do on #1050. I don't like the fact that we chose to use job state icons for task states in the sidebar. This colours look good, but it definitely confuses users sometimes: "there's a bug in the GUI: my tree view has red failed tasks [jobs!] but the side bar is not highlighting them!". The monochromatic task state icons would not work for this kind of visual simplification though, and the badges on this branch are at least not identical to the job icons which makes it more legit to say they represent task states not job states.

I really like what @MetRonnie has done in the screen shot above - it is clean and simple, and only shows the important info. I don't think we should retain the grid - it is busy and cluttered by comparison. And ditching the grid allows badges that expand with the number of digits - which is more appealing than fat badges that likely have only single digits most of the time.

Parsing (by eye) the grid on the left is definitely more difficult. I don't see any great advantage to aligning all the states like that, when most of them are inactive most of the time.

Summary: IMO this PR is a clear win as-is.

@dwsutherland
Copy link
Member

dwsutherland commented Oct 20, 2025

I was going to comment last week; having the number/count at a glance is a welcome improvement..

One thing, which is hinted by Hilary's 1050 proposal, and then skipped over with

Parsing (by eye) the grid on the left is definitely more difficult. I don't see any great advantage to aligning all the states like that, when most of them are inactive most of the time.

Is that; aligning had the advantage of being workable by those who aren't good/capable with colours (because you knew/learnt which column was associated with what state).

So, I don't know if it's something we need to consider, if it's not too difficult to make it optional then maybe we should?

Perhaps not square, if like the old/left, but at minimum invisible margins using the new and/or a faded/translucent circles with zero or no number (when no tasks of associated state)?

faded/translucent circles with zero or no number

Maybe this would be an easy win, so the ordered empty placeholders are always present (optionally).

@hjoliver
Copy link
Member

hjoliver commented Oct 21, 2025

IMO a rather unwieldy grid is not well justified by accessibility concerns for a small minority of users. Having to remember the column number of each state is pretty dire!

Better to make something clear and clean, and figure out how to tweak that for color-blindness - so how about exactly what @MetRonnie has done here, but (for color-blind theming) replace the job-state-color badges with task state icons with the number beside (or above, or partially overlapping, or whatever) instead of inside?

@oliver-sanders
Copy link
Member

oliver-sanders commented Oct 21, 2025

Not sure I get the issue with the grid, and colourblindness aside, I find the grid layout helpful.

But happy to be outvoted.

I don't think any docs changes are needed, however, it would be good to add a changes article for this.

@hjoliver
Copy link
Member

Thanks @oliver-sanders :-)

@dwsutherland
Copy link
Member

dwsutherland commented Oct 23, 2025

Having to remember the column number of each state is pretty dire!

Well, there's only 4 columns, so it'd be fairly automatic if you were used to looking at it this way.. But point taken.

It's not a big gripe, and doesn't effect our operational team

@hjoliver
Copy link
Member

Consider this approved from a conceptual and functional perspective, but I haven't had a chance to look at the code yet...

Copy link
Contributor

@ChrisPaulBennett ChrisPaulBennett left a comment

Choose a reason for hiding this comment

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

LGTM, no notes.

@MetRonnie
Copy link
Member Author

Note these task state badges follow the colour theme set in the user profile settings, just like job icons. So colour blindness has been taken care of.

@oliver-sanders
Copy link
Member

Given @hjoliver's approval in principle, I'll take over as technical reviewer as we could really do with getting this into use.

@oliver-sanders oliver-sanders removed the request for review from hjoliver November 5, 2025 11:29
Copy link
Member

@oliver-sanders oliver-sanders left a comment

Choose a reason for hiding this comment

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

LGTM.

We didn't get agreement to remove the "latest tasks" content in the tooltip and this PR doesn't add any alternative functionality to fill the gap. So I think we need to back out of this change (or come up with a better solution).

oliver-sanders added a commit to oliver-sanders/cylc-ui that referenced this pull request Nov 10, 2025
* This, in combination with cylc#2331,
  resolves one point of cylc#2313
MetRonnie pushed a commit that referenced this pull request Nov 10, 2025
* This, in combination with #2331,
  resolves one point of #2313
@MetRonnie MetRonnie marked this pull request as draft November 11, 2025 15:50
@MetRonnie MetRonnie marked this pull request as ready for review November 12, 2025 11:49
@MetRonnie MetRonnie marked this pull request as draft November 12, 2025 11:52
We cannot show the true latest tasks for groups, and it is unclear what workflow each task belongs to
@MetRonnie MetRonnie marked this pull request as ready for review November 12, 2025 12:18
@oliver-sanders oliver-sanders merged commit 197d8c0 into cylc:master Nov 12, 2025
7 checks passed
@MetRonnie MetRonnie deleted the task-states branch November 12, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UX/UI User experience and interface improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants