pollination-react-io 1.57.1 → 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.
@@ -1,4 +1,4 @@
1
- import { Run, UserPrivate } from '@pollination-solutions/pollination-sdk';
1
+ import { Run } from '@pollination-solutions/pollination-sdk';
2
2
  import { CSSProperties } from 'react';
3
3
  import { APIClient } from '../hooks';
4
4
  import { FileCardProps } from './Cards/FileCard';
@@ -18,7 +18,6 @@ export interface RunDetailsProps {
18
18
  projectName: string;
19
19
  run?: Run | LocalRun;
20
20
  runId?: string;
21
- authUser?: UserPrivate;
22
21
  client?: APIClient;
23
22
  style?: CSSProperties;
24
23
  getFileCard?: (card: FileCardProps) => any;
@@ -44751,7 +44751,7 @@ var CreateStudy = function (_a) {
44751
44751
  var jobName_1 = toUnixPath(projectJobInfo.studyId).split('/').reverse()[0];
44752
44752
  // Path is the full path of the local machine where the run input/output are
44753
44753
  setTimeout(function () {
44754
- window.location.href = "http://localhost:3000/".concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId);
44754
+ window.location.href = "".concat(basePath, "/").concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId);
44755
44755
  }, 3000);
44756
44756
  }
44757
44757
  };
@@ -49571,8 +49571,8 @@ var RunContent = function (_a) {
49571
49571
 
49572
49572
  var RunDetails = function (_a) {
49573
49573
  var projectName = _a.projectName, projectOwner = _a.projectOwner, run = _a.run, // Cloud and Local
49574
- runId = _a.runId; // TODO: delete it if RUN JSON has the field
49575
- _a.authUser; var client = _a.client, style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
49574
+ runId = _a.runId, // TODO: delete it if RUN JSON has the field
49575
+ client = _a.client, style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
49576
49576
  var _b = useState([]), extraInputs = _b[0], setExtraInputs = _b[1];
49577
49577
  var _c = useState([]), recipeInputs = _c[0], setRecipeInputs = _c[1];
49578
49578
  var _d = useState([]), outputs = _d[0], setOutputs = _d[1];
@@ -49586,6 +49586,7 @@ var RunDetails = function (_a) {
49586
49586
  var outputs = [];
49587
49587
  var recipeInputs = [];
49588
49588
  var extraInputs = [];
49589
+ // If cloud
49589
49590
  if (run.status) {
49590
49591
  run.status.inputs.forEach(function (i) {
49591
49592
  if (recipeInputNames.includes(i.name)) {
@@ -50278,7 +50279,7 @@ styleInject(css_248z);
50278
50279
 
50279
50280
  var RunRow = function (_a) {
50280
50281
  var _b, _c;
50281
- var projectOwner = _a.projectOwner, projectName = _a.projectName, run = _a.run, index = _a.index, client = _a.client, authUser = _a.authUser, style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
50282
+ 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;
50282
50283
  var statusMap = useRuns(client).statusMap;
50283
50284
  var _d = useState(false), open = _d[0], setOpen = _d[1];
50284
50285
  /*
@@ -50378,7 +50379,7 @@ var RunRow = function (_a) {
50378
50379
  : hover.debugOver ? '#40a9ff'
50379
50380
  : '#000') } }))),
50380
50381
  open && React__default.createElement("div", { className: 'run-details' },
50381
- React__default.createElement(RunDetails, { projectOwner: projectOwner, projectName: projectName, run: run, authUser: authUser, client: client, getFileCard: getFileCard, getFolderCard: getFolderCard, style: style })));
50382
+ React__default.createElement(RunDetails, { projectOwner: projectOwner, projectName: projectName, run: run, client: client, getFileCard: getFileCard, getFolderCard: getFolderCard, style: style })));
50382
50383
  };
50383
50384
 
50384
50385
  var RunTable = function (_a) {