forked from dagster-io/dagster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] Repair Polars logo for dark mode (dagster-io#21341)
## Summary & Motivation Resolves dagster-io#19261. Added an OpTags storybook example to show all of the possible tags. <img width="842" alt="Screenshot 2024-04-22 at 14 25 36" src="https://github.com/dagster-io/dagster/assets/2823852/76d42513-288a-466c-9a59-92d29f7d21c9"> <img width="847" alt="Screenshot 2024-04-22 at 14 25 29" src="https://github.com/dagster-io/dagster/assets/2823852/843e1e41-0094-4b12-84c5-4fdaadf88fbc"> ## How I Tested These Changes yarn storybook, switch between light/dark.
- Loading branch information
Showing
3 changed files
with
41 additions
and
6 deletions.
There are no files selected for viewing
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
18 changes: 18 additions & 0 deletions
18
js_modules/dagster-ui/packages/ui-core/src/graph/__stories__/OpTags.stories.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,18 @@ | ||
import {Meta} from '@storybook/react'; | ||
|
||
import {IOpTag, KNOWN_TAGS, OpTags} from '../OpTags'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default { | ||
title: 'OpTags', | ||
component: OpTags, | ||
} as Meta; | ||
|
||
export const AllTags = () => { | ||
const tags: IOpTag[] = Object.keys(KNOWN_TAGS).map((label) => ({label, onClick: () => {}})); | ||
return ( | ||
<div style={{height: '600px', position: 'relative'}}> | ||
<OpTags tags={tags} style={{flexWrap: 'wrap'}} /> | ||
</div> | ||
); | ||
}; |
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