Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): Implement two cols RadioButton controller (#15634)
<!-- Thanks for taking the time to open a pull request! Please make sure you've read the "Opening Pull Requests" section of our Contributing Guide: https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-pull-requests To ensure your code is reviewed quickly and thoroughly, please fill out the sections below to the best of your ability! --> # Overview <!-- Use this section to describe your pull-request at a high level. If the PR addresses any open issues, please tag the issues here. --> AUTH-521: Implementing functionality to control radio buttons in two columns for selecting a CSV file on robot or on USB. When users tabbed back button after they selected a file, updating parameters with file id and file name for a file selected on robot or with file path and file name for a file selected on USB. AUTH-558: Replacing the confirm selection button with an inline notification and updating back button control. # Test Plan <!-- Use this section to describe the steps that you took to test your Pull Request. If you did not perform any testing provide justification why. OT-3 Developers: You should default to testing on actual physical hardware. Once again, if you did not perform testing against hardware, justify why. Note: It can be helpful to write a test plan before doing development Example Test Plan (HTTP API Change) - Verified that new optional argument `dance-party` causes the robot to flash its lights, move the pipettes, then home. - Verified that when you omit the `dance-party` option the robot homes normally - Added protocol that uses `dance-party` argument to G-Code Testing Suite - Ran protocol that did not use `dance-party` argument and everything was successful - Added unit tests to validate that changes to pydantic model are correct --> - Clicked/tabbed on the radio buttons with file name to see if it's being selected (changing background color) - Printed out the file name in the console to check if the csv file information (id/filePath and fileName) being correctly pass back to the parameters when tabbed back button on the Choose CSV File screen. - Redirected to Parameters screen when tabbed on the back button <img width="839" alt="Screenshot 2024-07-15 at 9 56 42 AM" src="https://github.com/user-attachments/assets/2c6ffd93-78d8-4eef-830c-3c04ebc29439"> # Changelog <!-- List out the changes to the code in this PR. Please try your best to categorize your changes and describe what has changed and why. Example changelog: - Fixed app crash when trying to calibrate an illegal pipette - Added state to API to track pipette usage - Updated API docs to mention only two pipettes are supported IMPORTANT: MAKE SURE ANY BREAKING CHANGES ARE PROPERLY COMMUNICATED --> - Added a state with type CsvFileFileType to store csv file information - Replaced the small button element with an inline notification element inside child navigation - Updated the parameter's value type to { boolean | string | number | CsvFileFileType } where CsvFileFileType contains id, file, file path, and file name - Removed csvFileInfo and setcsvFileInfo state in both chooseCsvFile and protocolSetupParameters/index files - Updated tests # Review requests <!-- Describe any requests for your reviewers here. --> # Risk assessment <!-- Carefully go over your pull request and look at the other parts of the codebase it may affect. Look for the possibility, even if you think it's small, that your change may affect some other part of the system - for instance, changing return tip behavior in protocol may also change the behavior of labware calibration. Identify the other parts of the system your codebase may affect, so that in addition to your own review and testing, other people who may not have the system internalized as much as you can focus their attention and testing there. --> --------- Co-authored-by: shiyaochen <[email protected]> Co-authored-by: Max Marrone <[email protected]> Co-authored-by: Caila Marashaj <[email protected]> Co-authored-by: Ryan Howard <[email protected]> Co-authored-by: Seth Foster <[email protected]> Co-authored-by: aaron-kulkarni <[email protected]> Co-authored-by: Shlok Amin <[email protected]> Co-authored-by: koji <[email protected]> Co-authored-by: pmoegenburg <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: y3rsh <[email protected]> Co-authored-by: Josh McVey <[email protected]> Co-authored-by: Brayan Almonte <[email protected]> Co-authored-by: Derek Maggio <[email protected]> Co-authored-by: Nicholas Shiland <[email protected]> Co-authored-by: Brent Hagen <[email protected]> Co-authored-by: shiyaochen <[email protected]>
- Loading branch information