Skip to content
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): implement useCalibrationTaskList hook #11894

Merged
merged 16 commits into from
Jan 5, 2023

Conversation

jgbowser
Copy link
Contributor

@jgbowser jgbowser commented Dec 15, 2022

Overview

Adds a useCalibrationTaskList hook that can be used alongside the TaskList component in the Calibration Dashboard to generate a task list of calibrations that are passed in to the TaskList component.

closes RAUT-291

Changelog

  • Adds the useCalibrationTaskList hook (cta onClick functionality is currently placeholder, that implementation is part of a separate ticket)
  • adds new text to robot_calibration.json
  • some minor typing updates to either fix some discrepancies or refactor for reuse

Review requests

Still getting familiar with a lot of these hooks and the calibrations they relate to, please ensure that the logic here is sound both when locating desired calibration data, and when building out the task list object

Risk assessment

low, the hook isn't being used anywhere yet

useGenerateTaskList is a hook that aggregates deck calibrations and tip length and offset
calibrations for attached pipettes then builds the taskList object that is passed to the TaskList
component as props

closes RAUT-291
@jgbowser
Copy link
Contributor Author

@b-cooper @ewagoner I've got this in draft while I work through the testing. Figured I'd ping you two to get some early 👀 on this if you have the time

@jgbowser jgbowser changed the title Raut 291 gen calibration task list feat(app): implement useGenerateTaskList hook Dec 15, 2022
@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #11894 (31a9b10) into edge (0ad2f2f) will increase coverage by 0.02%.
The diff coverage is 97.40%.

Impacted file tree graph

@@            Coverage Diff             @@
##             edge   #11894      +/-   ##
==========================================
+ Coverage   74.24%   74.26%   +0.02%     
==========================================
  Files        2167     2168       +1     
  Lines       60016    60093      +77     
  Branches     6307     6322      +15     
==========================================
+ Hits        44556    44631      +75     
  Misses      13972    13972              
- Partials     1488     1490       +2     
Flag Coverage Δ
app 73.31% <97.40%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
app/src/organisms/TaskList/index.tsx 0.00% <ø> (ø)
.../organisms/Devices/hooks/useCalibrationTaskList.ts 97.40% <97.40%> (ø)

@jgbowser jgbowser force-pushed the raut-291-gen-calibration-task-list branch from be7458f to e684a6e Compare December 15, 2022 18:43
@jgbowser
Copy link
Contributor Author

@b-cooper @ewagoner Quick demonstration of it in action. Seems to be working, though I had to do some pretty wonky stuff with ApiHostProvider to get the useAttachedPipettes hook to work correctly in the useGenerateTaskList hook (not seen in this PR, local temp changes just to test out the hook and component).

Screen.Recording.2022-12-15.at.11.41.21.AM.mov

@jgbowser jgbowser marked this pull request as ready for review December 16, 2022 15:50
@jgbowser jgbowser requested a review from a team as a code owner December 16, 2022 15:50
@jgbowser jgbowser requested review from TamarZanzouri and a team and removed request for a team and TamarZanzouri December 16, 2022 15:50
@jgbowser jgbowser force-pushed the raut-291-gen-calibration-task-list branch from 4bad6e1 to 8668fda Compare December 19, 2022 18:03
@jgbowser jgbowser force-pushed the raut-291-gen-calibration-task-list branch from 8668fda to 551408e Compare December 19, 2022 18:07
@jgbowser jgbowser changed the title feat(app): implement useGenerateTaskList hook feat(app): implement useCalibrationTaskList hook Jan 5, 2023
Copy link
Contributor

@b-cooper b-cooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logic looks sound to me! 👍

@jgbowser jgbowser merged commit d1660b5 into edge Jan 5, 2023
@jgbowser jgbowser deleted the raut-291-gen-calibration-task-list branch January 5, 2023 20:23
y3rsh added a commit that referenced this pull request Jan 6, 2023
* origin/edge: (34 commits)
  refactor(app): update desktop robot settings calibration section for OT-3 (#11942)
  feat(hardware): add CAN message to update motor position from encoders (#11868)
  ci(monorepo): upgrade windows versions on github workflows (#11940)
  feat(app): implement useCalibrationTaskList hook (#11894)
  feat(app, app-shell, app-shell-odd): create node layer for ODD (#11944)
  refactor(app): Remove recalibrate option from POC and TLC overflow menus [RAUT-93] (#11915)
  fix(api): home z should home gripper z too (#11950)
  refactor(shared-data): gripper use force polynomial function  (#11946)
  refactor(api): move `ModuleGeometry` to legacy protocol core module (#11939)
  refactor(api): deprecate `ModuleContext.geometry` (#11938)
  chore(usb-bridge): add usb-bridge tests to test-py, add restart to push-ot3 (#11937)
  Revert "feat(app-shell-odd): create node layer for ODD (#11852)" (#11941)
  feat(app-shell-odd): create node layer for ODD (#11852)
  feature(hardware): add a warning style to can_mon and an "estop_released" error id (#11924)
  fix(hardware): Remove while loop and rely on  number_of_messages when parsing motor position response.  (#11929)
  fix(hardware): save can_comm / can_mon logs to read-write location (#11933)
  feat(api): Support 96 channel in the hardware controller (#11866)
  refactor(app): revert run a protocol from devices pages (#11909)
  refactor(app): remove warnings (#11922)
  refactor(app): remove invalid type warnings for strings from atoms (#11918)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants