-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sensors] Show targeted assets (#19674)
## Summary & Motivation Use the `assetSelectionString` from the backend to describe the targeted assets and show a full list of the targeted assets in a modal. ## How I Tested These Changes <img width="841" alt="Screenshot 2024-02-13 at 10 46 27 AM" src="https://github.com/dagster-io/dagster/assets/2286579/38e55b04-85b4-4cfb-bdd1-849d3d90d99b"> <img width="834" alt="Screenshot 2024-02-08 at 10 14 40 AM" src="https://github.com/dagster-io/dagster/assets/2286579/611951b9-5ed2-4dce-aa98-fe1932b22869"> <img width="667" alt="Screenshot 2024-02-08 at 10 14 30 AM" src="https://github.com/dagster-io/dagster/assets/2286579/c0baeb53-85cb-405d-971e-f6e0713ac664"> <img width="533" alt="Screenshot 2024-02-08 at 10 14 21 AM" src="https://github.com/dagster-io/dagster/assets/2286579/383d8b3f-e6f9-4ee7-9a40-7b88c628931d">
- Loading branch information
Showing
10 changed files
with
414 additions
and
40 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
js_modules/dagster-ui/packages/ui-components/src/components/DisclosureTriangleButton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import {Icon} from './Icon'; | ||
import {UnstyledButton} from './UnstyledButton'; | ||
|
||
type Props = { | ||
isOpen: boolean; | ||
onToggle: (e: React.MouseEvent<HTMLButtonElement>) => void; | ||
}; | ||
export const DisclosureTriangleButton = ({isOpen, onToggle}: Props) => { | ||
return ( | ||
<UnstyledButton | ||
onClick={(e) => { | ||
onToggle(e); | ||
}} | ||
style={{cursor: 'pointer', width: 18}} | ||
> | ||
<Icon | ||
name="arrow_drop_down" | ||
style={{transform: isOpen ? 'rotate(0deg)' : 'rotate(-90deg)'}} | ||
/> | ||
</UnstyledButton> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
45423fe
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.
Deploy preview for dagit-storybook ready!
✅ Preview
https://dagit-storybook-86kam76lp-elementl.vercel.app
Built with commit 45423fe.
This pull request is being automatically deployed with vercel-action
45423fe
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.
Deploy preview for dagit-core-storybook ready!
✅ Preview
https://dagit-core-storybook-6t9v4jcma-elementl.vercel.app
Built with commit 45423fe.
This pull request is being automatically deployed with vercel-action