pollination-react-io 1.57.0 → 1.57.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/build/RunDetails/RunDetails.types.d.ts +8 -5
- package/build/index.esm.js +12 -13
- package/build/index.esm.js.map +1 -1
- package/build/index.js +12 -13
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -44777,7 +44777,7 @@ var CreateStudy = function (_a) {
|
|
44777
44777
|
var jobName_1 = toUnixPath(projectJobInfo.studyId).split('/').reverse()[0];
|
44778
44778
|
// Path is the full path of the local machine where the run input/output are
|
44779
44779
|
setTimeout(function () {
|
44780
|
-
window.location.href = "
|
44780
|
+
window.location.href = "".concat(basePath, "/").concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId);
|
44781
44781
|
}, 3000);
|
44782
44782
|
}
|
44783
44783
|
};
|
@@ -49597,25 +49597,24 @@ var RunContent = function (_a) {
|
|
49597
49597
|
|
49598
49598
|
var RunDetails = function (_a) {
|
49599
49599
|
var projectName = _a.projectName, projectOwner = _a.projectOwner, run = _a.run, // Cloud and Local
|
49600
|
-
runId = _a.runId
|
49601
|
-
|
49600
|
+
runId = _a.runId, // TODO: delete it if RUN JSON has the field
|
49601
|
+
client = _a.client, style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
|
49602
49602
|
var _b = React.useState([]), extraInputs = _b[0], setExtraInputs = _b[1];
|
49603
49603
|
var _c = React.useState([]), recipeInputs = _c[0], setRecipeInputs = _c[1];
|
49604
49604
|
var _d = React.useState([]), outputs = _d[0], setOutputs = _d[1];
|
49605
|
-
var _e = React.useState(), currRun = _e[0], setCurrRun = _e[1];
|
49606
|
-
React.useEffect(function () { return setCurrRun(run); }, [run]);
|
49607
49605
|
React.useEffect(function () {
|
49608
|
-
if (!
|
49606
|
+
if (!run)
|
49609
49607
|
return;
|
49610
49608
|
var recipeInputNames = [];
|
49611
|
-
if (
|
49612
|
-
recipeInputNames =
|
49609
|
+
if (run.recipe && run.recipe.inputs) {
|
49610
|
+
recipeInputNames = run.recipe.inputs.map(function (i) { return i.name; });
|
49613
49611
|
}
|
49614
49612
|
var outputs = [];
|
49615
49613
|
var recipeInputs = [];
|
49616
49614
|
var extraInputs = [];
|
49615
|
+
// If cloud
|
49617
49616
|
if (run.status) {
|
49618
|
-
|
49617
|
+
run.status.inputs.forEach(function (i) {
|
49619
49618
|
if (recipeInputNames.includes(i.name)) {
|
49620
49619
|
recipeInputs.push(i);
|
49621
49620
|
}
|
@@ -49623,12 +49622,12 @@ var RunDetails = function (_a) {
|
|
49623
49622
|
extraInputs.push(i);
|
49624
49623
|
}
|
49625
49624
|
});
|
49626
|
-
|
49625
|
+
run.status.outputs.map(function (o) { return outputs.push(o); });
|
49627
49626
|
}
|
49628
49627
|
setExtraInputs(extraInputs);
|
49629
49628
|
setRecipeInputs(recipeInputs);
|
49630
49629
|
setOutputs(outputs);
|
49631
|
-
}, [
|
49630
|
+
}, [run]);
|
49632
49631
|
return (React__default["default"].createElement("div", null,
|
49633
49632
|
outputs &&
|
49634
49633
|
React__default["default"].createElement(RunContent, { title: 'Outputs', inputData: outputs, projectName: projectName, projectOwner: projectOwner, studyId: run.status.job_id, runId: run.id || runId, client: client, style: style, getFileCard: getFileCard, getFolderCard: getFolderCard }),
|
@@ -50306,7 +50305,7 @@ styleInject(css_248z);
|
|
50306
50305
|
|
50307
50306
|
var RunRow = function (_a) {
|
50308
50307
|
var _b, _c;
|
50309
|
-
var projectOwner = _a.projectOwner, projectName = _a.projectName, run = _a.run, index = _a.index, client = _a.client
|
50308
|
+
var projectOwner = _a.projectOwner, projectName = _a.projectName, run = _a.run, index = _a.index, client = _a.client; _a.authUser; var style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
|
50310
50309
|
var statusMap = useRuns(client).statusMap;
|
50311
50310
|
var _d = React.useState(false), open = _d[0], setOpen = _d[1];
|
50312
50311
|
/*
|
@@ -50406,7 +50405,7 @@ var RunRow = function (_a) {
|
|
50406
50405
|
: hover.debugOver ? '#40a9ff'
|
50407
50406
|
: '#000') } }))),
|
50408
50407
|
open && React__default["default"].createElement("div", { className: 'run-details' },
|
50409
|
-
React__default["default"].createElement(RunDetails, { projectOwner: projectOwner, projectName: projectName, run: run,
|
50408
|
+
React__default["default"].createElement(RunDetails, { projectOwner: projectOwner, projectName: projectName, run: run, client: client, getFileCard: getFileCard, getFolderCard: getFolderCard, style: style })));
|
50410
50409
|
};
|
50411
50410
|
|
50412
50411
|
var RunTable = function (_a) {
|