ghost tasks: switch from flow=None to graphDepth=0 - #2585
ghost tasks: switch from flow=None to graphDepth=0#2585ChrisPaulBennett wants to merge 4 commits into
Conversation
| opacity: 0.6; | ||
| // Dim nodes that are outside the n=0 (active) window, i.e. n != 0. | ||
| .dimmed { | ||
| opacity: 0.5; |
There was a problem hiding this comment.
The dimming didn't seem to be that visible on my display. So I've cranked it up a notch
There was a problem hiding this comment.
Pull request overview
Updates the UI “ghost task” dimming logic to use graphDepth (n-window) rather than flow=None, aligning dimming with the concept of “active” (n=0) vs non-active (n≠0) nodes across views.
Changes:
- Replace
flow=None-based dimming withgraphDepth-based dimming via newisN0(graphDepth)utility. - Update GraphQL fragments to request
graphDepthfor task/family proxies where needed. - Update unit/e2e tests, docs copy, styling, and mock workflow data to reflect the new dimming semantics.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/utils/tasks.spec.js | Updates unit tests from isFlowNone to isN0 behavior. |
| tests/e2e/specs/tree.cy.js | Updates selectors/expectations from .flow-none to .dimmed in Tree view. |
| tests/e2e/specs/table.cy.js | Updates selectors/expectations from .flow-none to .dimmed in Table view. |
| tests/e2e/specs/graph.cy.js | Updates selectors/expectations from .flow-none to .dimmed in Graph view. |
| src/views/Tree.vue | Adds graphDepth to family/task proxy fragments for Tree view data. |
| src/views/Table.vue | Adds graphDepth to task proxy fragment for Table view data. |
| src/views/Guide.vue | Updates Guide example + text to describe/reflect n-window dimming via graphDepth. |
| src/views/Graph.vue | Switches Graph node dimming to graphDepth and updates Graph task proxy fragment accordingly. |
| src/utils/tasks.js | Replaces isFlowNone with isN0(graphDepth) and updates related docs. |
| src/styles/index.scss | Renames .flow-none styling to .dimmed and adjusts opacity. |
| src/services/mock/json/workflows/one.json | Adds graphDepth values to mock task nodes for e2e/dev data. |
| src/components/cylc/tree/TreeItem.vue | Applies .dimmed class to tree node data based on graphDepth (including families). |
| src/components/cylc/table/Table.vue | Applies .dimmed class to table rows based on graphDepth. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
(only assign two reviewers - ovbs copilot don't count) |
| @@ -175,6 +175,7 @@ fragment TaskProxyData on TaskProxy { | |||
| meanElapsedTime | |||
| } | |||
| flowNums | |||
There was a problem hiding this comment.
Is flowNums used by this view any more?
Run through the modified queries and check usage. Note the field might be used by a component used by the view rather than in the view code itself.
If happy the field is not being used, remove it from the query.
There was a problem hiding this comment.
Look up at the co pilot suggestion
Oof, trying to avoid too much dimming (accessibility issue), yes, we could feasibly make this configurable (though would rather just cut the compromise right). I think the graph view edge styling would require more data interfaces. We've currently got the family collapsing branch (slow progress) in play, so don't want to go messing with the Graph view too much until we're able to get that in. Have linked this comment into #133 (comment) |
|
OK, agreed ideally edge styling would reflect graph depth too, but that might be harder to implement. In the meantime, how about these ideas:
|
We could certainly make the edges grey-er without little work and without creating difficult conflicts. Might not go quite as light as the n!=0 task grey for visibility reasons, but can fiddle to taste.
See this issue #470 (suggested groupings - point 4). Do-able, and a worthwhile feature, but something to consider for the future IMO. |

Closes #2420.
Alters the logic so that all tasks that are not N=0 (N!=0) are dimmed to make it clearer what is currently active
Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.