-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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] introduce pill for storage_kind
tag across UI
#22031
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @benpankow and the rest of your teammates on Graphite |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
super excited about this, but I think we should make sure the storage kind tags have parity with compute kind. IMO this means that I can:
LMK if you need some UI mocks for this. but I think in most cases we can just show the two tags side by side and provide a tooltip to help users discern Compute Kind vs Storage kind. I think the hover state is important because some assets might have Snowflake as both compute and storage kinds. |
8a11115
to
6f93b35
Compare
3e66e26
to
9b62740
Compare
6f93b35
to
cf9c1cc
Compare
9b62740
to
2853f83
Compare
Updated to cover the major places where we display compute kind & added tooltips. Stacked a PR to add filtering. |
cf9c1cc
to
c75613b
Compare
2853f83
to
24e7ff7
Compare
c75613b
to
c64b984
Compare
24e7ff7
to
4241620
Compare
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit 88deca2. |
c64b984
to
a7a7df5
Compare
4241620
to
b69358a
Compare
a7a7df5
to
3526bd4
Compare
b69358a
to
5a459bd
Compare
@@ -63,7 +68,18 @@ export const AssetNode = React.memo(({definition, selected}: Props) => { | |||
<AssetNodeChecksRow definition={definition} liveData={liveData} /> | |||
)} | |||
</AssetNodeBox> | |||
<AssetComputeKindTag definition={definition} style={{right: -2, paddingTop: 7}} /> | |||
<Box style={{right: -2}} flex={{direction: 'row-reverse', gap: 8}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the negative thing is weird? Does it even do anything? I would assume it doesn't since this element isnt positioned absolutely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah good call idt it does anything
window.requestAnimationFrame(() => | ||
document.dispatchEvent(new Event('show-kind-info')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like a race condition waiting to happen but its an existing issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is in use anyway, will remove for storage kind.
When you say "catalog page", do you mean the asset details page or the catalog overview page that includes the search bar? I don't see a screenshot for the latter, and I think we should make sure to include a section on that page. Or is that in a different repo? |
3526bd4
to
869c7d6
Compare
5a459bd
to
486a2b3
Compare
869c7d6
to
48743b8
Compare
486a2b3
to
06b0c88
Compare
a0e5621
to
e48701c
Compare
06b0c88
to
df7fad4
Compare
That's in the internal repo, will put up a PR for it - https://github.com/dagster-io/internal/pull/9902 |
storage_kind
tag across UI
775f524
to
b1d13cb
Compare
Merge activity
|
b1d13cb
to
88deca2
Compare
## Summary Implements a very basic visual tag for `storage_kind` on assets. Right now, this special rendering only displays on the catalog page, asset list, and asset graph. A stacked PR handles adding the filtering. Uses the same iconset as compute kind. <img width="304" alt="Screenshot 2024-05-22 at 2 09 55 PM" src="https://github.com/dagster-io/dagster/assets/10215173/7988910f-642d-4f00-9753-3b0a156079a3"> <img width="391" alt="Screenshot 2024-05-22 at 1 33 08 PM" src="https://github.com/dagster-io/dagster/assets/10215173/0845ce88-e198-4dfb-a347-9cd7a949ea08"> <img width="1449" alt="Screenshot 2024-05-22 at 1 33 04 PM" src="https://github.com/dagster-io/dagster/assets/10215173/1e255c51-a5f1-4365-9b96-16121247a648"> <img width="258" alt="Screenshot 2024-05-22 at 2 09 43 PM" src="https://github.com/dagster-io/dagster/assets/10215173/8918e281-2bc0-48fb-ae03-748ef7a92fce"> ## Test Plan Tested locally.
Summary
Implements a very basic visual tag for
storage_kind
on assets. Right now, this special rendering only displays on the catalog page, asset list, and asset graph. A stacked PR handles adding the filtering.Uses the same iconset as compute kind.
Test Plan
Tested locally.