Skip to content

Commit

Permalink
fix(protocol-designer): add slot clips to deck map views (#16688)
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader authored Nov 5, 2024
1 parent 2a1470f commit ddbf5dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const OT2_STANDARD_DECK_VIEW_LAYER_BLOCK_LIST: string[] = [
'fixedTrash',
]
export const lightFill = COLORS.grey35
const darkFill = COLORS.grey60

export function DeckSetupContainer(props: DeckSetupTabType): JSX.Element {
const { tab } = props
Expand Down Expand Up @@ -213,6 +214,7 @@ export function DeckSetupContainer(props: DeckSetupTabType): JSX.Element {
key={addressableArea.id}
cutoutId={cutoutId}
deckDefinition={deckDef}
slotClipColor={darkFill}
showExpansion={cutoutId === 'cutoutA1'}
fixtureBaseColor={lightFill}
/>
Expand All @@ -228,6 +230,7 @@ export function DeckSetupContainer(props: DeckSetupTabType): JSX.Element {
key={fixture.id}
cutoutId={fixture.location as StagingAreaLocation}
deckDefinition={deckDef}
slotClipColor={darkFill}
fixtureBaseColor={lightFill}
/>
)
Expand Down Expand Up @@ -284,6 +287,7 @@ export function DeckSetupContainer(props: DeckSetupTabType): JSX.Element {
fixture.location as typeof WASTE_CHUTE_CUTOUT
}
deckDefinition={deckDef}
slotClipColor={darkFill}
fixtureBaseColor={lightFill}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const OT2_STANDARD_DECK_VIEW_LAYER_BLOCK_LIST: string[] = [
]

const lightFill = COLORS.grey35
const darkFill = COLORS.grey60

interface DeckThumbnailProps {
hoverSlot: DeckSlotId | null
Expand Down Expand Up @@ -140,6 +141,7 @@ export function DeckThumbnail(props: DeckThumbnailProps): JSX.Element {
deckDefinition={deckDef}
showExpansion={cutoutId === 'cutoutA1'}
fixtureBaseColor={lightFill}
slotClipColor={darkFill}
/>
) : null
})}
Expand All @@ -149,6 +151,7 @@ export function DeckThumbnail(props: DeckThumbnailProps): JSX.Element {
cutoutId={fixture.location as StagingAreaLocation}
deckDefinition={deckDef}
fixtureBaseColor={lightFill}
slotClipColor={darkFill}
/>
))}
{trash != null
Expand Down Expand Up @@ -185,6 +188,7 @@ export function DeckThumbnail(props: DeckThumbnailProps): JSX.Element {
cutoutId={fixture.location as typeof WASTE_CHUTE_CUTOUT}
deckDefinition={deckDef}
fixtureBaseColor={lightFill}
slotClipColor={darkFill}
/>
))}
</>
Expand Down

0 comments on commit ddbf5dd

Please sign in to comment.