-
Notifications
You must be signed in to change notification settings - Fork 3
Quadrant Selection and a few other tweaks #1090
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
base: master
Are you sure you want to change the base?
Conversation
| <Radio.Button value={PlacementDirections.COLUMN}>Column</Radio.Button> | ||
| </Radio.Group> | ||
| </Flex> | ||
| <ButtonsWithSmallerPadding> |
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.
Maybe leave some padding ...The buttons are a bit too close ...
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.
DONE ;)
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 replied on the wrong comment. oops.
| theme={{ | ||
| components: { | ||
| Button: { | ||
| paddingInline: '0.5em', |
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.
Should we as much as possible use relative measures (ie %) for components and use absolute measures for text?
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.
em is already relative. Relative to parent font size.
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 but the padding of the button ... how much is it really related to font size ? Makes more sense to have it related to the parent container size.
| <ButtonsWithSmallerPadding> | ||
| <Flex justify={"space-between"} style={{ width: "100%" }}> | ||
| <Space size={"small"} style={{ border: 'solid', borderColor: 'lightgray', borderWidth: '1px', padding: '0.5em' }}> | ||
| <span>Selection:</span> |
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 space available for buttons is very limited ... might look better for more crowded screens (or smaller screens) to have these as small cards with Selection, Placement and Direction as title ... The buttons do spill over as soon as the menu is extended on the left which is the expected default UI.
|
I really like the new look ... much cleaner. |
|
Maybe we should have : |
|
Another thing that came to mind ... The tubes without parent should have the Selection Quadrant disabled and the Placement Quadrant Potentially activated... It is realistic to think maybe someone will want to place in quadrant samples that are unordered at first ... I see this would be an exception so maybe we can disable that too for now and ask Somayeh when we see her if this could be useful. |
| <Radio.Button key={PlacementType.SEQUENTIAL} value={PlacementType.SEQUENTIAL}>Sequentially</Radio.Button> | ||
| <Radio.Button key={PlacementType.SOURCE_PATTERN} value={PlacementType.SOURCE_PATTERN} disabled={activeSourceContainer.name === null}>as Source</Radio.Button> | ||
| <Radio.Button key={PlacementType.QUADRANT_PATTERN} value={PlacementType.QUADRANT_PATTERN} disabled={activeSourceContainer.name === null}>as Quadrant</Radio.Button> | ||
| <Radio.Button key={PlacementType.SEQUENTIAL} value={PlacementType.SEQUENTIAL}>Sequential</Radio.Button> |
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.
"Sequence" here
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.
DONE
| <Button onClick={transferAllSamples} disabled={!canTransferAllSamples} style={{ marginRight: '1em' }}>Place All Source</Button> | ||
| <Popconfirm | ||
| title={`Are you sure you want to undo selected samples? If there are no selected samples, it will undo all placements.`} | ||
| title={`Are you sure you want to undo |
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.
Reword it to put the question at the end ... "You are about to undo all placement. Do you want to proceed ?"
I would prefer for this warning to be specific to the situation ... if there is any selected placed samples, "You are about to undo X placements. Do you want to proceed ?"
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.
DONE
| <Button onClick={clearSelections}>None</Button> | ||
| <Button onClick={invertSelections}>Invert</Button> | ||
| <Dropdown menu={quadrantSelectionMenu} disabled={activeSourceContainer.name === null}> | ||
| <Button>Quandrant</Button> |
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.
Quandrant
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.
DONE
| return (state: RootState) => selector(selectPlacementState(state)) | ||
| } | ||
|
|
||
| window.placement = (containerID: ParentContainerIdentifier | undefined) => { |
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.
Place behind a debug mode test if you really need this in the code ...
| // not considered serializable. | ||
| middleware: (getDefaultMiddleware) => getDefaultMiddleware({immutableCheck: false, serializableCheck: false}).concat(logger).concat(notificationError) | ||
| }) | ||
| window.store = store // for debugging |
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.
Place behind a debug mode test if you really need this in the code ...
|
Might be worth adding a space container around the destination buttons (even without any additional text) to align the tables on both sides. |
No description provided.