-
Notifications
You must be signed in to change notification settings - Fork 179
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
feat(app): allow custom labware dir to be opened and reset to default #4918
Conversation
Codecov Report
@@ Coverage Diff @@
## edge #4918 +/- ##
==========================================
- Coverage 67.59% 67.33% -0.27%
==========================================
Files 1056 1065 +9
Lines 35499 36266 +767
==========================================
+ Hits 23997 24419 +422
- Misses 11502 11847 +345
Continue to review full report at Codecov.
|
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.
LGTM, mostly really small comments. 🌮
]} | ||
> | ||
<p>{CLICK_RESET_SOURCE_TO_RESET_YOUR_CUSTOM_LABWARE_DIRECTORY}</p> | ||
<p>{LABWARE_FILES_IN_YOUR_CURRENT_DIRECTORY_WILL_NOT_BE_MOVED}</p> |
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.
very explicit 😂
app/src/components/AddLabwareCard/__tests__/ConfirmResetPathModal.test.js
Outdated
Show resolved
Hide resolved
app/src/components/AddLabwareCard/__tests__/ConfirmResetPathModal.test.js
Outdated
Show resolved
Hide resolved
const addFailure = useSelector(getAddLabwareFailure) | ||
const labwarePath = config.labware.directory | ||
const handleOpenPath = () => dispatch(openCustomLabwareDirectory()) | ||
const handleResetPath = () => dispatch(resetCustomLabwareDirectory()) | ||
const handleChangePath = () => dispatch(changeCustomLabwareDirectory()) | ||
const handleAddLabware = () => dispatch(addCustomLabware()) |
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.
obvi not for in this PR but I wonder if prefixing with dispatch
makes more sense instead of handle
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.
Nice! Looks really good.
@@ -0,0 +1,65 @@ | |||
// @flow |
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.
nice!
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.
✅ Tested on macOS
overview
This PR adds CTA's to the custom labware source directory UI to allow the user to:
Closes #4878, closes #4879
changelog
review requests
ACs copied from tickets
reset directory
open directory