Skip to content

Commit

Permalink
fix(protocol-designer): fix labware tools filtering and expand/collap…
Browse files Browse the repository at this point in the history
…se behavior

This PR addresses several functional issues with our LabwareTools component, produced when adding
labware to the starting deck state. Here, I add filtering to populated expanded categories, allow
independent expand/collapse toggling for multiple categories simultaneously, and auto
expand/collapse all categories based on the state of the current search term.

Closes RQA-3590
  • Loading branch information
ncdiehl11 committed Nov 19, 2024
1 parent 44a80fb commit 402b2df
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 149 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function ListButtonAccordionContainer(
const { id, children } = props

return (
<Flex key={id} flexDirection={DIRECTION_COLUMN}>
<Flex key={id} flexDirection={DIRECTION_COLUMN} width="100%">
{children}
</Flex>
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"adapter_compatible_lab": "Adapter compatible labware",
"adapter": "Adapter",
"adapter": "Adapters",
"add_fixture": "Add a fixture",
"add_hardware_labware": "Add hardware/labware",
"add_hw_lw": "Add hardware/labware",
Expand All @@ -9,7 +9,7 @@
"add_module": "Add a module",
"add_rest": "Add labware and liquids to complete deck setup",
"alter_pause": "You may also need to alter the time you pause while your magnet is engaged.",
"aluminumBlock": "Aluminum block",
"aluminumBlock": "Aluminum blocks",
"clear_labware": "Clear labware",
"clear_slot": "Clear slot",
"clear": "Clear",
Expand Down Expand Up @@ -47,16 +47,16 @@
"protocol_starting_deck": "Protocol starting deck",
"read_more_gen1_gen2": "Read more about the differences between GEN1 and GEN2 Magnetic Modules",
"rename_lab": "Rename labware",
"reservoir": "Reservoir",
"reservoir": "Reservoirs",
"shift_click_to_select_all": "Shift + Click to select all",
"starting_deck_state": "Starting deck state",
"tc_slots_occupied_flex": "The Thermocycler needs slots A1 and B1. Slot A1 is occupied",
"tc_slots_occupied_ot2": "The Thermocycler needs slots 7, 8, 10, and 11. One or more of those slots is occupied",
"tipRack": "Tip rack",
"tipRack": "Tip racks",
"trash_required": "A trash bin or waste chute is required",
"tubeRack": "Tube rack",
"tubeRack": "Tube racks",
"untitled_protocol": "Untitled protocol",
"upload_custom_labware": "Upload custom labware",
"we_added_hardware": "We've added your deck hardware!",
"wellPlate": "Well plate"
"wellPlate": "Well plates"
}
Loading

0 comments on commit 402b2df

Please sign in to comment.