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

[1/2] AMP Timeline scaffold + Tick Timeline component #17046

Merged
merged 9 commits into from
Oct 9, 2023

Conversation

salazarm
Copy link
Contributor

@salazarm salazarm commented Oct 5, 2023

Summary & Motivation

Scaffold for AMP Timeline, feature gated with a context that Cloud will use to enable the feature.

  • Implements new tick timeline component
  • tick detail dialog with virtualized table (this is half complete, still need to hook up a new field daniel is adding
  • Run history table (Next PR)
  • Evaluation history table (Next PR)

How I Tested These Changes

locally + shadow dagit

Screenshot 2023-10-05 at 3 37 43 PM Screenshot 2023-10-05 at 3 42 14 PM Screenshot 2023-10-05 at 3 42 02 PM Screenshot 2023-10-05 at 3 42 40 PM Screenshot 2023-10-05 at 3 42 44 PM

@github-actions
Copy link

github-actions bot commented Oct 5, 2023

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-9uj8p9liw-elementl.vercel.app
https://salazarm-amp-timeline.core-storybook.dagster-docs.io

Built with commit 1ceb3ac.
This pull request is being automatically deployed with vercel-action

@salazarm salazarm force-pushed the salazarm/amp-timeline branch from b6892cc to c6be0af Compare October 6, 2023 01:48
@salazarm salazarm changed the title [1/n] AMP Timeline scaffold + Tick Timeline component [1/2] AMP Timeline scaffold + Tick Timeline component Oct 6, 2023
Copy link
Member

@hellendag hellendag left a comment

Choose a reason for hiding this comment

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

I notice that the content alignment in the dialog rows is a little bit off, and not vertically centered. I think the dialog could also be a bit wider -- especially since the group name will also need to be truncated pretty often.

Requesting changes mostly for the date-time thing, which I think can be discussed separately.

</Box>
{!queryResult.data ? (
<Box padding={{vertical: 48}}>
<Spinner purpose="page" />
Copy link
Member

Choose a reason for hiding this comment

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

I'm such a hater of the page spinner

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we need a page shimmer

Copy link
Member

@hellendag hellendag left a comment

Choose a reason for hiding this comment

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

I made the mistake of reviewing this within Graphite. 😆

Copy link
Contributor

@sryza sryza left a comment

Choose a reason for hiding this comment

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

I haven't read through this PR yet, but wanted to chime in with a general comment that may or may not be relevant here: ideally we would end up in a state where, when we make a change to either the sensor page or the auto-materialize page, we're forced to consider the implications to the other one (vs. needing to remember to duplicate the change across two places).

@salazarm salazarm requested a review from hellendag October 6, 2023 14:53
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-6rd526d9k-elementl.vercel.app
https://salazarm-amp-timeline.components-storybook.dagster-docs.io

Built with commit 1ceb3ac.
This pull request is being automatically deployed with vercel-action

@salazarm salazarm force-pushed the salazarm/amp-timeline branch from 660ad2a to cc70012 Compare October 6, 2023 19:44
Comment on lines +1 to +3
export function ifPlural(count: number | undefined | null, string: string) {
return count === 1 ? '' : string;
}
Copy link
Member

Choose a reason for hiding this comment

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

This is okay, though it might not really help if the verb disagrees. I tend to just go with writing out the entire string, since I find it easier to comprehend the copy if I don't have to mentally add an s (or whatever the declension is) to the noun:

count === 1 ? '1 run requested' : `${count} runs requested`

Doesn't matter a ton for now anyway, as long as we're providing appropriate strings, until the point in the future when we decide to internationalize the app.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah yeah I guess I should make you pass in both versions of the string instead

Comment on lines +35 to +38
const MINUTE = 60 * 1000;
const THREE_MINUTES = 3 * MINUTE;
const FIVE_MINUTES = 5 * MINUTE;
const TWENTY_MINUTES = 20 * MINUTE;
Copy link
Member

Choose a reason for hiding this comment

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

🙏

@salazarm salazarm merged commit 741c4d3 into master Oct 9, 2023
@salazarm salazarm deleted the salazarm/amp-timeline branch October 9, 2023 15:44
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.

3 participants