-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add new selection syntax to job op graphs #26836
Conversation
Deploy preview for dagit-core-storybook ready! ✅ Preview Built with commit c1aaa62. |
ec095cb
to
c1aaa62
Compare
const names = new Set<string>(); | ||
items.forEach((item) => { | ||
names.add(item.name); | ||
}); |
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.
⛳
const names = new Set(items.map(({name}) => name));
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 like having the for loop for the future in case we add more attributes and to be consistent with all the other inputs.
|
||
const Wrapper = styled.div` | ||
${InputDiv} { | ||
width: 24vw; |
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.
Does this need a min or max width to keep it looking sane in narrow or wide viewports?
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 is the existing width
<Menu style={{width: props.width || '24vw'}}> |
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.
Meant to link here
width: props.width || '24vw', |
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.
Sounds reasonable, just figured I'd point it out in case it would look nicer with some upper/lower bounds.
Summary & Motivation
flagOpSelectionSyntax
intoflagSelectionSyntax
How I Tested These Changes