Skip to content

Commit

Permalink
Merge branch 'edge' into feat_AUTH-1224
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Jan 17, 2025
2 parents a9564ea + b2a4c56 commit dd6ad76
Show file tree
Hide file tree
Showing 158 changed files with 8,379 additions and 328 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/app-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ jobs:
- name: 'upload github artifact'
if: matrix.target == 'desktop'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'opentrons-${{matrix.variant}}-${{ matrix.os }}'
path: app-shell/dist/publish
Expand All @@ -392,7 +392,7 @@ jobs:
if: contains(fromJSON(needs.determine-build-type.outputs.variants), 'release') || contains(fromJSON(needs.determine-build-type.outputs.variants), 'internal-release')
steps:
- name: 'download run app builds'
uses: 'actions/download-artifact@v3'
uses: 'actions/download-artifact@v4'
with:
path: ./artifacts
- name: 'separate release and internal-release artifacts'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/components-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
- name: 'build components'
run: make -C components
- name: 'upload github artifact'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'components-artifact'
path: storybook-static
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`)
buildComplexEnvVars(core, context)
- name: 'download components build'
uses: 'actions/download-artifact@v3'
uses: 'actions/download-artifact@v4'
with:
name: components-artifact
path: ./dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ll-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ jobs:
run: |
make -C labware-library
- name: 'upload github artifact'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: 'll-artifact'
path: labware-library/dist
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
const { buildComplexEnvVars } = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/utils.js`)
buildComplexEnvVars(core, context)
- name: 'download LL build'
uses: 'actions/download-artifact@v3'
uses: 'actions/download-artifact@v4'
with:
name: ll-artifact
path: ./dist
Expand Down
10 changes: 5 additions & 5 deletions app/src/assets/localization/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import anonymous from './anonymous.json'
import app_settings from './app_settings.json'
import branded from './branded.json'
import change_pipette from './change_pipette.json'
import protocol_command_text from './protocol_command_text.json'
import device_details from './device_details.json'
import device_settings from './device_settings.json'
import devices_landing from './devices_landing.json'
Expand All @@ -28,27 +27,29 @@ import run_details from './run_details.json'
import top_navigation from './top_navigation.json'
import error_recovery from './error_recovery.json'
import incompatible_modules from './incompatible_modules.json'
import protocol_command_text from './protocol_command_text.json'

export const en = {
shared,
anonymous,
app_settings,
branded,
change_pipette,
protocol_command_text,
device_details,
device_settings,
devices_landing,
drop_tip_wizard,
error_recovery,
firmware_update,
gripper_wizard_flows,
heater_shaker,
incompatible_modules,
instruments_dashboard,
labware_details,
labware_landing,
labware_position_check,
module_wizard_flows,
pipette_wizard_flows,
protocol_command_text,
protocol_details,
protocol_info,
protocol_list,
Expand All @@ -57,7 +58,6 @@ export const en = {
robot_calibration,
robot_controls,
run_details,
shared,
top_navigation,
error_recovery,
incompatible_modules,
}
10 changes: 5 additions & 5 deletions app/src/assets/localization/zh/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import anonymous from './anonymous.json'
import app_settings from './app_settings.json'
import branded from './branded.json'
import change_pipette from './change_pipette.json'
import protocol_command_text from './protocol_command_text.json'
import device_details from './device_details.json'
import device_settings from './device_settings.json'
import devices_landing from './devices_landing.json'
Expand All @@ -28,27 +27,29 @@ import run_details from './run_details.json'
import top_navigation from './top_navigation.json'
import error_recovery from './error_recovery.json'
import incompatible_modules from './incompatible_modules.json'
import protocol_command_text from './protocol_command_text.json'

export const zh = {
shared,
anonymous,
app_settings,
branded,
change_pipette,
protocol_command_text,
device_details,
device_settings,
devices_landing,
drop_tip_wizard,
error_recovery,
firmware_update,
gripper_wizard_flows,
heater_shaker,
incompatible_modules,
instruments_dashboard,
labware_details,
labware_landing,
labware_position_check,
module_wizard_flows,
pipette_wizard_flows,
protocol_command_text,
protocol_details,
protocol_info,
protocol_list,
Expand All @@ -57,7 +58,6 @@ export const zh = {
robot_calibration,
robot_controls,
run_details,
shared,
top_navigation,
error_recovery,
incompatible_modules,
}
4 changes: 2 additions & 2 deletions app/src/local-resources/commands/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export { useCommandTextString } from './useCommandTextString'
export { useCommandTextString } from '@opentrons/components'

export type {
UseCommandTextStringParams,
GetCommandText,
GetCommandTextResult,
GetTCRunExtendedProfileCommandTextResult,
GetTCRunProfileCommandTextResult,
} from './useCommandTextString'
} from '@opentrons/components'

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions app/src/local-resources/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
export * from './hooks'
export * from './utils'

export * from './types'
20 changes: 0 additions & 20 deletions app/src/local-resources/commands/utils/getCommandTextData.ts

This file was deleted.

1 change: 0 additions & 1 deletion app/src/local-resources/commands/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './getCommandTextData'
export * from './lastRunCommandPromptedErrorRecovery'
3 changes: 0 additions & 3 deletions app/src/local-resources/instruments/types.ts

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/local-resources/instruments/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import type { LoadedPipette } from '@opentrons/shared-data'
import type { LoadedPipettes } from '/app/local-resources/instruments/types'

export interface IsPartialTipConfigParams {
channel: 1 | 8 | 96
activeNozzleCount: number
Expand All @@ -19,13 +16,3 @@ export function isPartialTipConfig({
return activeNozzleCount !== 96
}
}

export function getLoadedPipette(
loadedPipettes: LoadedPipettes,
mount: string
): LoadedPipette | undefined {
// NOTE: old analysis contains a object dictionary of pipette entities by id, this case is supported for backwards compatibility purposes
return Array.isArray(loadedPipettes)
? loadedPipettes.find(l => l.mount === mount)
: loadedPipettes[mount]
}
5 changes: 0 additions & 5 deletions app/src/local-resources/labware/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
export * from './getAllDefinitions'
export * from './labwareImages'
export * from './getAllDefs'
export * from './getLabwareDefinitionsFromCommands'
export * from './getLabwareName'
export * from './getLoadedLabware'
export * from './getLabwareDisplayLocation'
export * from './getLabwareLocation'
2 changes: 0 additions & 2 deletions app/src/local-resources/modules/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
export * from './utils'

export * from './types'
3 changes: 0 additions & 3 deletions app/src/local-resources/modules/types.ts

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/local-resources/modules/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
export * from './getLoadedModule'
export * from './getModuleDisplayLocation'
export * from './getModuleImage'
export * from './getModuleModel'
export * from './getModulePrepCommands'
4 changes: 2 additions & 2 deletions app/src/molecules/Command/Command.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import uniq from 'lodash/uniq'
import { Command as CommandComponent } from '.'
import type { CommandState } from './Command'
import * as Fixtures from './__fixtures__'
import type { CommandState } from './Command'
import { customViewports } from '../../../../.storybook/preview'
import type { Meta, StoryObj } from '@storybook/react'
import type { RunTimeCommand } from '@opentrons/shared-data'
import { uniq } from 'lodash'

type CommandType = RunTimeCommand['commandType']

Expand Down
5 changes: 2 additions & 3 deletions app/src/molecules/Command/Command.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import {
BORDERS,
SPACING,
RESPONSIVENESS,
CommandText,
} from '@opentrons/components'

import { CommandText } from './CommandText'
import { CommandIcon } from './CommandIcon'
import { Skeleton } from '/app/atoms/Skeleton'

Expand All @@ -20,8 +20,7 @@ import type {
RobotType,
RunTimeCommand,
} from '@opentrons/shared-data'
import type { CommandTextData } from '/app/local-resources/commands'
import type { StyleProps } from '@opentrons/components'
import type { CommandTextData, StyleProps } from '@opentrons/components'

export type CommandState = NonSkeletonCommandState | 'loading'
export type NonSkeletonCommandState = 'current' | 'failed' | 'future'
Expand Down
2 changes: 1 addition & 1 deletion app/src/molecules/Command/__fixtures__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import robotSideAnalysis from './mockRobotSideAnalysis.json'
import doItAllAnalysis from './doItAllV10.json'
import qiaseqAnalysis from './analysis_QIAseqFX24xv4_8.json'
import type { CompletedProtocolAnalysis } from '@opentrons/shared-data'
import type { CommandTextData } from '/app/local-resources/commands'
import type { CommandTextData } from '@opentrons/components'

export const mockRobotSideAnalysis: CompletedProtocolAnalysis = robotSideAnalysis as CompletedProtocolAnalysis
export const mockDoItAllAnalysis: CompletedProtocolAnalysis = doItAllAnalysis as CompletedProtocolAnalysis
Expand Down
1 change: 0 additions & 1 deletion app/src/molecules/Command/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from './CommandText'
export * from './Command'
export * from './CommandIcon'
export * from './CommandIndex'
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import {

import { Command, CommandIndex } from '../Command'

import type { CommandTextData } from '/app/local-resources/commands'
import type { NonSkeletonCommandState } from '../Command'
import type {
LabwareDefinition2,
RobotType,
RunTimeCommand,
} from '@opentrons/shared-data'
import type { CommandTextData } from '@opentrons/components'
import type { NonSkeletonCommandState } from '../Command'

export interface CommandWithIndex {
index: number | undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import {
SPACING,
LegacyStyledText,
TYPOGRAPHY,
getLabwareDefinitionsFromCommands,
} from '@opentrons/components'

import { getIsLabwareOffsetCodeSnippetsOn } from '/app/redux/config'
import { LabwareOffsetTabs } from '/app/organisms/LabwareOffsetTabs'
import { OffsetVector } from '/app/molecules/OffsetVector'
import { PythonLabwareOffsetSnippet } from '/app/molecules/PythonLabwareOffsetSnippet'
import { getDisplayLocation } from '/app/organisms/LegacyLabwarePositionCheck/utils/getDisplayLocation'
import { getLabwareDefinitionsFromCommands } from '/app/local-resources/labware'
import type { LabwareOffset } from '@opentrons/api-client'
import type {
RunTimeCommand,
Expand Down
5 changes: 3 additions & 2 deletions app/src/organisms/Desktop/Devices/RunPreview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
ALIGN_CENTER,
BORDERS,
COLORS,
CommandText,
DIRECTION_COLUMN,
DISPLAY_FLEX,
DISPLAY_NONE,
Expand All @@ -18,6 +19,7 @@ import {
POSITION_FIXED,
PrimaryButton,
SPACING,
getLabwareDefinitionsFromCommands,
TYPOGRAPHY,
} from '@opentrons/components'

Expand All @@ -28,10 +30,9 @@ import {
useMostRecentCompletedAnalysis,
useLastRunCommand,
} from '/app/resources/runs'
import { CommandText, CommandIcon } from '/app/molecules/Command'
import { CommandIcon } from '/app/molecules/Command'
import { Divider } from '/app/atoms/structure'
import { NAV_BAR_WIDTH } from '/app/App/constants'
import { getLabwareDefinitionsFromCommands } from '/app/local-resources/labware'

import type { ForwardedRef } from 'react'
import type { ViewportListRef } from 'react-viewport-list'
Expand Down
Loading

0 comments on commit dd6ad76

Please sign in to comment.