This will allow us to have multiple selections on the plate. We can also add a selectionId prop to the PlateSelection object to identify the selection for convenience.
We will need to update the rendering logic to support multiple selections. We can use the selectionId to identify the selection. We will need a dropdown to change the current selection. Finally, we will need to update the PlateSelection component to correctly update the selection.
After opening a PR, create a new story in the Plate.stories.tsx file to demonstrate the new functionality. Then, add the new functionality to the Plate component.
Plate Selection improvements
Right now our plate component takes the following props
We want to support multiple selections. so we need to change the
selection
prop to be a map ofPlateSelection
objects.This will allow us to have multiple selections on the plate. We can also add a
selectionId
prop to thePlateSelection
object to identify the selection for convenience.We will need to update the rendering logic to support multiple selections. We can use the
selectionId
to identify the selection. We will need a dropdown to change the current selection. Finally, we will need to update the PlateSelection component to correctly update the selection.After opening a PR, create a new story in the
Plate.stories.tsx
file to demonstrate the new functionality. Then, add the new functionality to thePlate
component.