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] Implement new asset Automation page #26765

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Dec 31, 2024

Summary & Motivation

Update the Automation tab on assets to bring the page closer to @braunjj's design changes. Some polish is likely to be needed.

This change also includes @OwenKephart's #26170, which ended up needing a handful of changes to make the evaluations table work for both assets and asset checks.

Non-partitioned asset:

Screenshot 2024-12-31 at 09 48 26

Partitioned asset:

Screenshot 2024-12-31 at 09 48 48

How I Tested These Changes

View assets that use automation conditions. Verify that the conditions and evaluation info dialog render correctly on the asset page.

Changelog

[ui] Update asset Automations tab.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

github-actions bot commented Dec 31, 2024

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-3psfsbfv3-elementl.vercel.app
https://dish-automation-changes.components-storybook.dagster-docs.io

Built with commit 710632a.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag force-pushed the dish/automation-changes branch from a486dcf to 8654307 Compare December 31, 2024 16:26
Copy link

github-actions bot commented Dec 31, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-auhtkeh3l-elementl.vercel.app
https://dish-automation-changes.core-storybook.dagster-docs.io

Built with commit 710632a.
This pull request is being automatically deployed with vercel-action

@hellendag hellendag changed the title Add graphql endpoints for querying asset check automation history [ui] Implement new asset Automation page Dec 31, 2024
@hellendag hellendag marked this pull request as ready for review December 31, 2024 16:30
@@ -4,6 +4,7 @@ import {Button} from './Button';
import {Icon} from './Icon';

export interface CursorPaginationProps {
cursor?: string;
Copy link
Member Author

Choose a reason for hiding this comment

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

Added this so that the parent component can determine when the cursor has changed, and reset scroll position accordingly.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ahh I think I did this on the new RunsFeed page as well, but a bit differently. That version watches for the state to transition to loading and then back to ready (RunsFeedTable.tsx::84), but maybe that should be switched to this more direct approach too..

I think one issue I was running in to was that it looks a bit janky to scroll to the top before the data has loaded -- watching the state transition was the best way I could find to scroll only once the new data was available.

I wonder if we could have useCursorPaginatedQuery return the cursor that matches the data it loaded, and not the cursor that is is is loading, so that it behaves that way?

zIndex: 1,
boxShadow: `inset 0 -1px 0 ${Colors.keylineDefault()}`,
}}
>
Copy link
Member Author

Choose a reason for hiding this comment

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

Sticky header while scrolling.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should go ahead and switch this out for a virtualized list? We have the HeaderRow for that one... With the row component this table already feels pretty close to our standard virtualized one.

    <HeaderRow templateColumns={TEMPLATE_COLUMNS} sticky>

Copy link
Member Author

Choose a reason for hiding this comment

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

It probably could be virtualized, it just seemed a bit overkill for a table with a maximum of 25-30 items.

@hellendag hellendag force-pushed the dish/automation-changes branch from 8654307 to 958bf49 Compare December 31, 2024 16:34
@hellendag hellendag force-pushed the dish/automation-changes branch from 958bf49 to a56285f Compare January 3, 2025 14:56
Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

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

This looks great! Added a few inline comments but nothing blocking 🙌

@@ -4,6 +4,7 @@ import {Button} from './Button';
import {Icon} from './Icon';

export interface CursorPaginationProps {
cursor?: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ahh I think I did this on the new RunsFeed page as well, but a bit differently. That version watches for the state to transition to loading and then back to ready (RunsFeedTable.tsx::84), but maybe that should be switched to this more direct approach too..

I think one issue I was running in to was that it looks a bit janky to scroll to the top before the data has loaded -- watching the state transition was the best way I could find to scroll only once the new data was available.

I wonder if we could have useCursorPaginatedQuery return the cursor that matches the data it loaded, and not the cursor that is is is loading, so that it behaves that way?

zIndex: 1,
boxShadow: `inset 0 -1px 0 ${Colors.keylineDefault()}`,
}}
>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we should go ahead and switch this out for a virtualized list? We have the HeaderRow for that one... With the row component this table already feels pretty close to our standard virtualized one.

    <HeaderRow templateColumns={TEMPLATE_COLUMNS} sticky>

Copy link
Member Author

hellendag commented Jan 3, 2025

Merge activity

  • Jan 3, 12:22 PM CST: A user started a stack merge that includes this pull request via Graphite.
  • Jan 3, 12:23 PM CST: Graphite rebased this pull request as part of a merge.
  • Jan 3, 12:25 PM CST: Graphite rebased this pull request as part of a merge.
  • Jan 3, 12:27 PM CST: Graphite rebased this pull request as part of a merge.
  • Jan 3, 12:29 PM CST: A user merged this pull request with Graphite.

@hellendag hellendag force-pushed the dish/automation-changes branch 2 times, most recently from 0b347b6 to c6a3416 Compare January 3, 2025 18:24
@hellendag hellendag force-pushed the dish/automation-changes branch from c6a3416 to 710632a Compare January 3, 2025 18:27
@hellendag hellendag merged commit 94554e7 into master Jan 3, 2025
2 of 3 checks passed
@hellendag hellendag deleted the dish/automation-changes branch January 3, 2025 18:29
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.

4 participants