Skip to content
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

[ui] FIx backfill partition range coloring, clarify meaning of progress bars #26123

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

bengotow
Copy link
Collaborator

@bengotow bengotow commented Nov 25, 2024

Summary & Motivation

Related: https://linear.app/dagster-labs/issue/FE-689/backfill-ui-partition-range-display-issue

This is a handful of small fixes for the backfill partitions pages:

  • These tags were rendering full-width, and the terminology (succeeded vs completed) was inconsistent. Clicking it takes you to a view of Succeeded runs, so I changed both to succeeded:
    image

  • On this page, the two gray colors used in the bars were very similar, which was confusing - now using backgroundDisabled():

image
  • When viewing a backfill, there is a color bar that is not related to the color bars above - it indicates the success or failure of the subset of partitions you chose to backfill. This can be sorta confusing (why does this bar not have the gray bands from the previous screenshot?). I added a small caption: "100% complete" that clarifies that this bar relates to the backfill, not the partition set:
image
  • The centering of these two items looked odd - aligned them to the top text baseline:
image
  • Dates from previous years were wrapping in the new Runs Feed table - needed slightly more space:
image

How I Tested These Changes

I tested these changes manually using both op and asset backfills!

Copy link

github-actions bot commented Nov 25, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-6090oegb3-elementl.vercel.app
https://bengotow-2024-11-FE-689.core-storybook.dagster-docs.io

Built with commit 307de04.
This pull request is being automatically deployed with vercel-action

Comment on lines +313 to +327
const pctSucceeded = (100 * succeeded) / targeted;
const pctFailed = (100 * failed) / targeted;
const pctInProgress = (100 * inProgress) / targeted;
Copy link
Member

Choose a reason for hiding this comment

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

Worth truncating the decimal value so you don't end up with super long decimal values?

Copy link
Collaborator Author

@bengotow bengotow Nov 28, 2024

Choose a reason for hiding this comment

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

Ahh good call, I'll throw a .toFixed(2) on these when they're passed to the template grid CSS below just to keep it sane

@bengotow bengotow force-pushed the bengotow-2024-11/FE-689 branch 2 times, most recently from 1381288 to 6bf5582 Compare November 28, 2024 04:13
<div style={{background: Colors.accentRed()}} />
<div style={{background: Colors.accentBlue()}} />
</div>
<Caption color={Colors.textLight()}>{`${pctFinal}% completed`}</Caption>
Copy link

Choose a reason for hiding this comment

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

Earlier in this PR, the terminology was standardized from "completed" to "succeeded". To maintain this consistency, consider updating the caption text to:

<Caption color={Colors.textLight()}>{`${pctFinal}% succeeded`}</Caption>

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is subtle but this is actually the place we want to disambiguate apart from succeeded

@bengotow bengotow merged commit f7afa6a into master Nov 28, 2024
2 checks passed
@bengotow bengotow deleted the bengotow-2024-11/FE-689 branch November 28, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants