pollination-react-io 1.92.0 → 1.92.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/index.js CHANGED
@@ -38622,6 +38622,9 @@ var usePollinationPanel = function () {
38622
38622
  return;
38623
38623
  try {
38624
38624
  var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.status]);
38625
+ if (message.data === '') {
38626
+ console.log('[LOCAL RUN]: Status file not found');
38627
+ }
38625
38628
  var run = JSON.parse(message.data);
38626
38629
  return run;
38627
38630
  }
@@ -38640,6 +38643,9 @@ var usePollinationPanel = function () {
38640
38643
  return;
38641
38644
  try {
38642
38645
  var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.job]);
38646
+ if (message.data === '') {
38647
+ console.log('[LOCAL RUN]: Job file not found');
38648
+ }
38643
38649
  var localJob = JSON.parse(message.data);
38644
38650
  var job = (_a = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _a === void 0 ? void 0 : _a.Job;
38645
38651
  job['author'] = (_b = localJob === null || localJob === void 0 ? void 0 : localJob.LocalJob) === null || _b === void 0 ? void 0 : _b.JobAuthor;
@@ -38660,6 +38666,9 @@ var usePollinationPanel = function () {
38660
38666
  return;
38661
38667
  try {
38662
38668
  var message = panel.FetchSimulationFile(path, subfolder, SimulationFileType[SimulationFileType.logs]);
38669
+ if (message.data === '') {
38670
+ console.log('[LOCAL RUN]: Log file not found');
38671
+ }
38663
38672
  return message.data;
38664
38673
  }
38665
38674
  catch (error) {
@@ -47239,11 +47248,17 @@ var RecipeForm = function (_a) {
47239
47248
  };
47240
47249
  alias && inputInfo.useAlias && Object.keys(alias).forEach(function (key) {
47241
47250
  if (key in inputInfo) {
47242
- // if the alias is DAGGenericInputAlias
47251
+ // if alias is DAGGenericInputAlias keep native one
47252
+ // if alias is file and input is file keep native one
47253
+ // important for red messages if delete value
47243
47254
  if (key == 'type') {
47244
47255
  if (alias[key] === 'DAGGenericInputAlias') {
47245
47256
  return;
47246
47257
  }
47258
+ else if (alias[key] === 'DAGFileInputAlias'
47259
+ && inputInfo.type === 'DAGFileInput') {
47260
+ return;
47261
+ }
47247
47262
  }
47248
47263
  // if Linked Input keep the native name
47249
47264
  // Example, see mapping: from sim-par and sim_par
@@ -47530,8 +47545,8 @@ var RecipeForm = function (_a) {
47530
47545
  host !== 'web' && React__default["default"].createElement(Button, { type: 'submit', style: { width: '100%',
47531
47546
  margin: '10px 0 0 0',
47532
47547
  justifyContent: 'center' }, disabled: !localConfig.isLocalJob
47533
- ? !isValid || loading
47534
- : !isValid || loading || localConfig.localRunFolder == null, form: recipe.metadata.name, loading: loading }, "Create Study")));
47548
+ ? (Object.keys(errors).length !== 0) || loading
47549
+ : (Object.keys(errors).length !== 0) || loading || localConfig.localRunFolder == null, form: recipe.metadata.name, loading: loading }, "Create Study")));
47535
47550
  };
47536
47551
 
47537
47552
  var defaultStyle = {
@@ -56414,7 +56429,7 @@ var RunCard = function (_a) {
56414
56429
  if (run.status.finished_at)
56415
56430
  setStopRefresh(true);
56416
56431
  setIsReady(true);
56417
- },
56432
+ }
56418
56433
  }), run = _11.data, error = _11.error;
56419
56434
  var sendRun = React.useCallback(function (run) { return getValue(run); }, [getValue]);
56420
56435
  /**
@@ -56489,11 +56504,12 @@ var RunCard = function (_a) {
56489
56504
  setHover(__assign(__assign({}, emptyHover), (_a = {}, _a[defaultTab] = true, _a)));
56490
56505
  }, [defaultTab, emptyHover]);
56491
56506
  var localStudyURLname = React.useMemo(function () {
56507
+ var _a, _b;
56492
56508
  if (!localStudy)
56493
56509
  return;
56494
- return localStudy.name
56495
- .replace(/[^a-zA-Z0-9]/g, '')
56496
- .replace(/[ ()]/g, '');
56510
+ if (localStudy === null || localStudy === void 0 ? void 0 : localStudy.name)
56511
+ return 'hello';
56512
+ return (_b = (_a = localStudy === null || localStudy === void 0 ? void 0 : localStudy.name) === null || _a === void 0 ? void 0 : _a.replace(/[^a-zA-Z0-9]/g, '')) === null || _b === void 0 ? void 0 : _b.replace(/[ ()]/g, '');
56497
56513
  }, [localStudy]);
56498
56514
  /**
56499
56515
  * Rendering - if error