Skip to content

Commit

Permalink
fix ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Jul 22, 2024
1 parent 29d9f30 commit b1a30ae
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,11 @@ export const DraggableStepItems = (
border={BORDERS.lineBorder}
backgroundColor={COLORS.grey30}
>
<Flex justifyContent={JUSTIFY_SPACE_BETWEEN}>
<LegacyStyledText padding={SPACING.spacing8}>
{item.groupName}
</LegacyStyledText>
<Flex
justifyContent={JUSTIFY_SPACE_BETWEEN}
padding={SPACING.spacing8}
>
<LegacyStyledText as='h2SemiBold'>{item.groupName}</LegacyStyledText>
<PrimaryButton
onClick={() => {
dispatch(removeGroup({ groupName: item.groupName }))
Expand Down
2 changes: 1 addition & 1 deletion protocol-designer/src/containers/ConnectedStepItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const ConnectedStepItem = (
addStep(stepId)
}}
>
<Icon name={name} width="2rem" height="2rem" />
<Icon name={name} width="1rem" height="1rem" />
</Btn>
) : null}
<StepItem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
getInitialDeckSetup,
getOrderedStepIds,
getSavedStepForms,
getStepGroups,
getUnsavedGroup,
} from '../../step-forms/selectors'
import { selectors as labwareIngredSelectors } from '../../labware-ingred/selectors'
import { getErrorStepId, getSubsteps } from '../../file-data/selectors'
Expand All @@ -27,6 +29,7 @@ import {
getMultiSelectLastSelected,
getSelectedStepId,
} from '../../ui/steps'
import { getEnableStepGrouping } from '../../feature-flags/selectors'
import { getLabwareNicknamesById } from '../../ui/labware/selectors'
import { ConnectedStepItem } from '../ConnectedStepItem'
import type { LabwareDefinition2 } from '@opentrons/shared-data'
Expand All @@ -38,6 +41,7 @@ vi.mock('../../dismiss/selectors')
vi.mock('../../ui/steps')
vi.mock('../../labware-ingred/selectors')
vi.mock('../../ui/labware/selectors')
vi.mock('../../feature-flags/selectors')

const render = (props: React.ComponentProps<typeof ConnectedStepItem>) => {
return renderWithProviders(<ConnectedStepItem {...props} />, {
Expand All @@ -61,6 +65,9 @@ describe('ConnectedStepItem', () => {
stepNumber: 2,
onStepContextMenu: vi.fn(),
}
vi.mocked(getStepGroups).mockReturnValue({})
vi.mocked(getUnsavedGroup).mockReturnValue([])
vi.mocked(getEnableStepGrouping).mockReturnValue(true)
vi.mocked(getSavedStepForms).mockReturnValue({
[pauseStepId]: {
stepType: 'pause',
Expand Down
2 changes: 1 addition & 1 deletion protocol-designer/src/ui/steps/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const collapsedSteps: Reducer<CollapsedStepsState, any> = handleActions(
(acc: CollapsedStepsState, stepId) => ({ ...acc, [stepId]: true }),
{}
),
},
},
{}
)
export const SINGLE_STEP_SELECTION_TYPE: 'SINGLE_STEP_SELECTION_TYPE' =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def make_dummy_protocol_resource(protocol_id: str) -> ProtocolResource:
metadata={},
robot_type="OT-2 Standard",
content_hash="abc123",
command_annotations={},
),
protocol_key=None,
protocol_kind="standard",
Expand Down

0 comments on commit b1a30ae

Please sign in to comment.