@opencloning/ui 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @opencloning/ui
|
|
2
2
|
|
|
3
|
+
## 1.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#620](https://github.com/manulera/OpenCloning_frontend/pull/620) [`1c2dbef`](https://github.com/manulera/OpenCloning_frontend/commit/1c2dbef236d54b4980599cd6acc4fdabced13f1d) Thanks [@manulera](https://github.com/manulera)! - Fix assembler using BsaI by default always
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @opencloning/store@1.4.2
|
|
11
|
+
- @opencloning/utils@1.4.2
|
|
12
|
+
|
|
3
13
|
## 1.4.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opencloning/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@emotion/styled": "^11.14.0",
|
|
26
26
|
"@mui/icons-material": "^5.15.17",
|
|
27
27
|
"@mui/material": "^5.15.17",
|
|
28
|
-
"@opencloning/store": "1.4.
|
|
29
|
-
"@opencloning/utils": "1.4.
|
|
28
|
+
"@opencloning/store": "1.4.2",
|
|
29
|
+
"@opencloning/utils": "1.4.2",
|
|
30
30
|
"@teselagen/bio-parsers": "^0.4.34",
|
|
31
31
|
"@teselagen/ove": "^0.8.34",
|
|
32
32
|
"@teselagen/range-utils": "^0.3.20",
|
|
@@ -96,6 +96,7 @@ describe('<AssemblerComponent />', () => {
|
|
|
96
96
|
<AssemblerComponent
|
|
97
97
|
plasmids={mockPlasmids}
|
|
98
98
|
categories={mockCategories}
|
|
99
|
+
assemblyEnzyme="assembly_enzyme"
|
|
99
100
|
/>
|
|
100
101
|
</ConfigProvider>,
|
|
101
102
|
);
|
|
@@ -209,9 +210,15 @@ describe('<AssemblerComponent />', () => {
|
|
|
209
210
|
body: dummyResponse,
|
|
210
211
|
}).as('fetchSourceSuccess');
|
|
211
212
|
// Mock assembly request
|
|
212
|
-
cy.intercept('POST', 'http://localhost:8000/restriction_and_ligation*', {
|
|
213
|
-
|
|
214
|
-
body
|
|
213
|
+
cy.intercept('POST', 'http://localhost:8000/restriction_and_ligation*', (req) => {
|
|
214
|
+
// Check that the value of the enzyme was set in the request body
|
|
215
|
+
expect(req.body).to.have.property('source');
|
|
216
|
+
expect(req.body.source).to.have.property('restriction_enzymes');
|
|
217
|
+
expect(req.body.source.restriction_enzymes).to.include('assembly_enzyme');
|
|
218
|
+
req.reply({
|
|
219
|
+
statusCode: 200,
|
|
220
|
+
body: dummyResponse,
|
|
221
|
+
});
|
|
215
222
|
}).as('assemblySuccess');
|
|
216
223
|
|
|
217
224
|
// Click submit button
|
|
@@ -122,7 +122,7 @@ function AssemblerBox({ item, index, setCategory, setId, categories, plasmids, a
|
|
|
122
122
|
)
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
export function AssemblerComponent({ plasmids, categories }) {
|
|
125
|
+
export function AssemblerComponent({ plasmids, categories, assemblyEnzyme }) {
|
|
126
126
|
|
|
127
127
|
const [requestedAssemblies, setRequestedAssemblies] = React.useState([])
|
|
128
128
|
const [errorMessage, setErrorMessage] = React.useState('')
|
|
@@ -146,7 +146,7 @@ export function AssemblerComponent({ plasmids, categories }) {
|
|
|
146
146
|
const resp = await requestSources(selectedPlasmids)
|
|
147
147
|
errorMessage = 'Error assembling sequences'
|
|
148
148
|
setLoadingMessage('Assembling...')
|
|
149
|
-
const assemblies = await requestAssemblies(resp)
|
|
149
|
+
const assemblies = await requestAssemblies(resp, assemblyEnzyme)
|
|
150
150
|
setRequestedAssemblies(assemblies)
|
|
151
151
|
} catch (e) {
|
|
152
152
|
if (e.assembly) {
|
|
@@ -292,7 +292,7 @@ function Assembler() {
|
|
|
292
292
|
{syntax && <UploadPlasmidsButton addPlasmids={addPlasmids} syntax={syntax} />}
|
|
293
293
|
{syntax && <Button color="error" onClick={clearPlasmids}>Remove uploaded plasmids</Button>}
|
|
294
294
|
</ButtonGroup>
|
|
295
|
-
{syntax && <AssemblerComponent plasmids={plasmids} syntax={syntax} categories={categories} />}
|
|
295
|
+
{syntax && <AssemblerComponent plasmids={plasmids} syntax={syntax} categories={categories} assemblyEnzyme={syntax.assemblyEnzyme} />}
|
|
296
296
|
</>
|
|
297
297
|
)
|
|
298
298
|
}
|
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Version placeholder - replaced at publish time via prepack script
|
|
2
|
-
export const version = "1.4.
|
|
2
|
+
export const version = "1.4.2";
|