Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app, step-generation): visualize the step timeline and deck state of a protocol #15491

Merged
merged 73 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
5e6d034
construct invariant context from runtime commands
b-cooper Jun 9, 2022
66bb15b
start creating timeline from run commands
b-cooper Jun 9, 2022
5cb0f21
organize module state constants
b-cooper Jun 10, 2022
809add2
POC for static deck setup in protocol timeline scrubber component
b-cooper Jun 10, 2022
46a29f3
add slider
b-cooper Jun 10, 2022
758f290
proof of concept with liquid and tip tracking
b-cooper Jun 14, 2022
d9bbfab
add display color and liquid entities
b-cooper Jun 14, 2022
9f2096e
get tip liquid state down to tip side view
b-cooper Jun 19, 2022
61117e7
add longer liquidless protocol example
b-cooper Jun 19, 2022
de26876
alignment and empty state for pipette viz
b-cooper Jun 20, 2022
99f78e2
multi channel support
b-cooper Jun 20, 2022
c474a52
jump to command
b-cooper Jun 20, 2022
930f121
add to new timeline route
b-cooper Jun 20, 2022
40333fa
Merge branch 'edge' into step-generation_get-timeline-from-commands
b-cooper Jul 21, 2022
f628f8e
add support for all commands in step generation as pass through
b-cooper Jul 21, 2022
5088edf
map initial aspirate and dispense commands
b-cooper Jul 21, 2022
2d1bd0a
window timeline scrubber and fix air in tips rendering
b-cooper Jul 21, 2022
26efb76
Merge branch 'edge' into step-generation_get-timeline-from-commands
b-cooper Jul 12, 2023
796abb5
make changes to things that were moved around
b-cooper Jul 12, 2023
e5b9576
begin modernizing scrubber
b-cooper Jul 12, 2023
098f5f0
modernize constants in scrubber
b-cooper Jul 19, 2023
98bcf17
visual adjustment
b-cooper Sep 8, 2023
9b5053c
Merge branch 'chore_release-7.0.0' into step-generation_get-timeline-…
b-cooper Sep 8, 2023
7a50537
update to current values
b-cooper Sep 8, 2023
dd845a8
feat(shared-data): json protocol schema 8
sfoster1 Oct 25, 2023
f248da7
add enum to annotations and structure types for commands etc
b-cooper Oct 25, 2023
d2c84e4
Merge branch 'edge' into step-generation_get-timeline-from-commands
b-cooper Oct 25, 2023
279363c
account for robot type
b-cooper Oct 26, 2023
fecc2ba
fix up ts config for protocol types
b-cooper Oct 26, 2023
2c96e76
Hackishly expose commandAnnotations in protocol analysis output.
SyntaxColoring Oct 17, 2023
57dd41d
command list from annotations
b-cooper Oct 19, 2023
c5b1ae5
prelim collapsible grouping
b-cooper Oct 20, 2023
2de8fc2
positioning of annotated group
b-cooper Oct 23, 2023
60edcc3
fix up type export
b-cooper Oct 26, 2023
644694b
Merge branch 'skunk_v8-command-annotations-in-analysis-output' into s…
b-cooper Oct 26, 2023
f05c50a
annotated steps
b-cooper Oct 26, 2023
cecefec
current parent node treatment
b-cooper Oct 27, 2023
a73f7aa
proof of concept new window
b-cooper Oct 27, 2023
c2e2078
Merge branch 'edge' into skunk_grouped-steps-timeline-scrubber-pd-window
b-cooper Nov 9, 2023
fa84d3d
Merge branch 'edge' into skunk_grouped-steps-timeline-scrubber-pd-window
b-cooper May 2, 2024
d09864e
remote global to pd
b-cooper May 6, 2024
71e0364
add temporary open file action to remove
b-cooper May 7, 2024
cca0b72
remove temporary changes
b-cooper May 7, 2024
288673d
cleanup grouping in annotated steps
b-cooper May 8, 2024
fe792e1
other viz commented out
b-cooper Jun 14, 2024
06d2fc3
Merge branch 'edge' into skunk_grouped-steps-timeline-scrubber-pd-window
b-cooper Jun 21, 2024
bdf5f95
fix up command text in scrubber
b-cooper Jun 21, 2024
363c5cc
remove merge cruft command text utils
b-cooper Jun 21, 2024
3d3da25
remove unnecessary changes
b-cooper Jun 21, 2024
3c6fa17
remove log statements
b-cooper Jun 21, 2024
41cbf02
revert spurious yarn change
b-cooper Jun 21, 2024
ca98807
split out annotation api changes
b-cooper Jun 21, 2024
610b1f9
split out app shell pd changes
b-cooper Jun 21, 2024
5b21330
remove unnecessary lint warning fix
b-cooper Jun 21, 2024
f9a2d48
remove pd changes
b-cooper Jun 21, 2024
0344070
remove last of unrelated code
b-cooper Jun 21, 2024
0604088
feat(app): visualize the step timeline and deck state of a protocol
b-cooper Jun 21, 2024
6eb6e96
Merge branch 'edge' into skunk_grouped-steps-timeline-scrubber-pd-window
jerader Jun 24, 2024
9876f87
begin to fix check errors and clean up
jerader Jun 24, 2024
fdb87c4
delete unused fixtures
jerader Jun 24, 2024
454f109
clean up step-generation tests
jerader Jun 25, 2024
1df838a
Merge branch 'edge' into skunk_grouped-steps-timeline-scrubber-pd-window
jerader Jun 26, 2024
8b35d5c
clean up more
jerader Jun 26, 2024
c353cac
remove some more unnecessary file changes
jerader Jun 26, 2024
a05004d
fix labware on adapter and add play button
jerader Jun 26, 2024
29a62f4
clean up lint
jerader Jun 26, 2024
956ec61
support for updating liquidState
jerader Jun 26, 2024
599a996
add comment support
jerader Jul 1, 2024
3af2e44
address feedbacl
jerader Jul 1, 2024
2c84516
add test to desktopApp
jerader Jul 1, 2024
68fa459
change size of deck map
jerader Jul 1, 2024
de5610c
address more feedback and fix the error in console
jerader Jul 1, 2024
13127bd
fix lint
jerader Jul 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
Merge branch 'edge' into step-generation_get-timeline-from-commands
  • Loading branch information
b-cooper committed Jul 12, 2023
commit 26efb76e9d0d26228a85aae9432f8d5f783ff7c3
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ ignore:
- '**/node_modules'
- 'protocol-library-kludge'
- 'webpack-config'
- 'hardware-testing'
- '**/*.md'
- '**/*.yaml'
- '**/Makefile'
- '**/*.in'
- '**/*.json'
- '**/*.config.js'
- '**/*.mk'
- '**/*.stories.tsx'

comment:
# add flags to `layout` configuration to show up in the PR comment
Expand All @@ -17,3 +19,10 @@ comment:
flag_management:
default_rules:
carryforward: true

coverage:
status:
project:
default:
target: auto
threshold: 10
12 changes: 5 additions & 7 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
**/node_modules/**
**/coverage/**
**/dist/**
**/dist/**/*
**/lib/**/*
**/build/**
**/venv/**
.opentrons_config

# typescript
app-shell/lib/**
discovery-client/lib/**
**/lib/**/*.d.ts
**/lib/**/*.json

# prettier
**/package.json
**/CHANGELOG.md
Expand All @@ -32,3 +27,6 @@ update-server/**
robot-server/**
notify-server/**
shared-data/python/**

# app-testing don't format the json protocols
app-testing/files
4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
root: true,

parserOptions: {
project: './tsconfig-eslint.json',
project: require('path').join(__dirname, 'tsconfig-eslint.json'),
},

extends: ['standard-with-typescript', 'plugin:react/recommended', 'prettier'],
Expand Down Expand Up @@ -88,7 +88,7 @@ module.exports = {
'@typescript-eslint/consistent-type-assertions': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',

'node/handle-callback-err': 'off',
// TODO(mc, 2021-01-29): fix these and remove warning overrides
'jest/no-deprecated-functions': 'warn',
'jest/valid-title': 'warn',
Expand Down
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# These files are binary and line endings should be left untouched
*.hex binary
*.bat binary
*.gltf binary
api/pypi-readme.rst text eol=lf
39 changes: 0 additions & 39 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

63 changes: 63 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms#top-level-syntax
name: Bug Report
description: File a bug
title: 'bug: '
labels: [bug]
body:
- type: markdown
attributes:
value: |
## Thanks for taking the time to file a bug!

> Please make sure you've read the "Opening Issues" section of our [Contributing Guide.](https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-issues)
- type: textarea
attributes:
label: Overview
description: |
Use this section to describe the bug at a high level.
Please include any issues you can find that may be related.
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce
description: |
List precise steps to reproduce the bug.
Please include screenshots, videos, and/or logs if possible.

Tip: You can attach files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Current behavior
description: Describe how the software currently behaves and how that differs from how you think the software should behave.
validations:
required: false
- type: textarea
attributes:
label: Expected behavior
description: |
Describe how you think the software should behave.
validations:
required: false
- type: dropdown
attributes:
label: Operating system
description: What operating system are you running the app on?
multiple: false
options:
- Mac
- Windows
- Linux
- type: textarea
attributes:
label: System and robot setup or anything else?
description: |
Please share

- App version
- How you are connecting to your robot (Wi-Fi or USB)
- Any other context that may help us understand the bug
validations:
required: false
39 changes: 0 additions & 39 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms#top-level-syntax
name: Feature request
description: Suggest a new feature
title: 'feat: '
labels: [feature-request]
body:
- type: markdown
attributes:
value: |
## Thanks for taking the time to file a feature request!

> Please make sure you've read the "Opening Issues" section of our [Contributing Guide.](https://github.com/Opentrons/opentrons/blob/edge/CONTRIBUTING.md#opening-issues)
- type: textarea
attributes:
label: Overview
description: |
Use this section to describe your idea at a high level.
Please include some context about why you want this feature.

- What would this feature allow you to accomplish?
- Are there any workarounds you use to partially achieve your goal?
- Are there any GitHub issues you could find that may be related?
validations:
required: true
- type: textarea
attributes:
label: Implementation details
description: |
List any implementation steps, specs, links to docs, or files here.

Tip: You can attach files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Design
description: |
Attach or link images and designs.

Tip: You can attach files by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Acceptance criteria
description: |
A checklist of requirements and/or testing steps that must be complete before this feature is considered complete.
This can also be used as a testing plan for associated PRs.
validations:
required: false
54 changes: 0 additions & 54 deletions .github/ISSUE_TEMPLATE/testing_feedback.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ To ensure your code is reviewed quickly and thoroughly, please fill out the sect
Use this section to describe your pull-request at a high level. If the PR addresses any open issues, please tag the issues here.
-->

# Test Plan

<!--
Use this section to describe the steps that you took to test your Pull Request.
If you did not perform any testing provide justification why.

OT-3 Developers: You should default to testing on actual physical hardware.
Once again, if you did not perform testing against hardware, justify why.

Note: It can be helpful to write a test plan before doing development

Example Test Plan (HTTP API Change)

- Verified that new optional argument `dance-party` causes the robot to flash its lights, move the pipettes,
then home.
- Verified that when you omit the `dance-party` option the robot homes normally
- Added protocol that uses `dance-party` argument to G-Code Testing Suite
- Ran protocol that did not use `dance-party` argument and everything was successful
- Added unit tests to validate that changes to pydantic model are correct

-->

# Changelog

<!--
Expand Down
12 changes: 10 additions & 2 deletions .github/actions/python/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ inputs:
python-version:
description: "What Python version to use to create the project's virtual environment"
required: false
default: "false"
runs:
using: 'composite'
steps:
Expand All @@ -16,9 +17,16 @@ runs:
sudo apt-get update
sudo apt-get install -y --no-install-recommends libsystemd-dev
fi
- name: Set the OT_PYTHON env variable
shell: bash
run: echo "OT_PYTHON=$(which python)" >> $GITHUB_ENV
- name: If provided set the OT_VIRTUALENV_VERSION env variable
shell : bash
if: ${{ inputs.python-version != 'false' }}
run: echo "OT_VIRTUALENV_VERSION=${{ inputs.python-version }}" >> $GITHUB_ENV
- shell: bash
run: |
npm install --global [email protected]
pip install pipenv==2021.5.29
$OT_PYTHON -m pip install pipenv==2021.5.29
- shell: bash
run: 'make -C ${{ inputs.project }} setup OT_VIRTUALENV_VERSION=${{ inputs.python-version }}'
run: 'make -C ${{ inputs.project }} setup'
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.