pollination-react-io 1.35.1 → 1.35.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.esm.js +19 -16
- package/build/index.esm.js.map +1 -1
- package/build/index.js +19 -16
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -47276,7 +47276,23 @@ var StudyCard = function (_a) {
|
|
|
47276
47276
|
revalidateOnFocus: false,
|
|
47277
47277
|
refreshInterval: !_study || _study.status.finished_at ? undefined : 5000,
|
|
47278
47278
|
fallbackData: _study,
|
|
47279
|
-
errorRetryCount: 3
|
|
47279
|
+
errorRetryCount: 3,
|
|
47280
|
+
onSuccess: function (study, key, config) {
|
|
47281
|
+
var tot = study.status.runs_pending +
|
|
47282
|
+
study.status.runs_running +
|
|
47283
|
+
study.status.runs_failed +
|
|
47284
|
+
study.status.runs_completed +
|
|
47285
|
+
study.status.runs_cancelled;
|
|
47286
|
+
if (tot > 1) {
|
|
47287
|
+
setSingleRun(undefined);
|
|
47288
|
+
return;
|
|
47289
|
+
}
|
|
47290
|
+
listRuns(projectOwner, projectName, [study.id])
|
|
47291
|
+
.then(function (d) {
|
|
47292
|
+
setSingleRun(d.resources[0]);
|
|
47293
|
+
})
|
|
47294
|
+
.catch(function () { setSingleRun(undefined); });
|
|
47295
|
+
}
|
|
47280
47296
|
}), study = _k.data; _k.error; _k.isValidating;
|
|
47281
47297
|
var total = useMemo(function () {
|
|
47282
47298
|
if (!study)
|
|
@@ -47305,20 +47321,7 @@ var StudyCard = function (_a) {
|
|
|
47305
47321
|
* Single run - Fetch run if just one
|
|
47306
47322
|
*/
|
|
47307
47323
|
var listRuns = useRuns(client).listRuns;
|
|
47308
|
-
|
|
47309
|
-
if (!study)
|
|
47310
|
-
return;
|
|
47311
|
-
if (total > 1) {
|
|
47312
|
-
setSingleRun(undefined);
|
|
47313
|
-
return;
|
|
47314
|
-
}
|
|
47315
|
-
listRuns(projectOwner, projectName, [study.id])
|
|
47316
|
-
.then(function (d) {
|
|
47317
|
-
setSingleRun(d.resources[0]);
|
|
47318
|
-
})
|
|
47319
|
-
.catch(function () { setSingleRun(undefined); });
|
|
47320
|
-
}, [study]);
|
|
47321
|
-
var _m = useState(getDuration(study)); _m[0]; var setDuration = _m[1];
|
|
47324
|
+
var _m = useState(getDuration(study)), duration = _m[0], setDuration = _m[1];
|
|
47322
47325
|
useEffect(function () {
|
|
47323
47326
|
if (!study)
|
|
47324
47327
|
return undefined;
|
|
@@ -47375,7 +47378,7 @@ var StudyCard = function (_a) {
|
|
|
47375
47378
|
React__default.createElement("span", { className: 'light-text' }, study ? "".concat(formatDuration(dayjs_min.duration(study.resources_duration.cpu, 'seconds'))) : '--')),
|
|
47376
47379
|
React__default.createElement("div", null,
|
|
47377
47380
|
React__default.createElement(Clock$1, { size: 24, style: { marginRight: '0.75rem' } }),
|
|
47378
|
-
React__default.createElement("span", { className: 'light-text' }, study ? "".concat(formatDuration(
|
|
47381
|
+
React__default.createElement("span", { className: 'light-text' }, study ? "".concat(formatDuration(duration)) : '--')))));
|
|
47379
47382
|
};
|
|
47380
47383
|
|
|
47381
47384
|
export { APIClient, AuthUser, Avatar, Button, ComboBox, ComboFileSelector, ConditionalWrapper, ConfigureLocalRun, CreateStudy, Dropdown, FileInput, FilePreview, FormInput, GetGeometry, GetModel, InputDescription, Label, Logo, NumberInput, RadioList, RecipeInputsForm, RunCard, SelectAccount, SelectCloudArtifacts, SelectLocalArtifacts, SelectProject, SelectRecipe, SelectRun, SelectStudy, SendGeometry, SendModel, SendResults, SettingsButton, StudyCard, TextInput, Tooltip, _defaultConfig, checkDotNet, checkPollinationPanel, checkRuby, formatBytes, getDuration, getHost, getSummaryColor, recipeLinkFromSource, sendMessageDotNet, sendMessageRuby, statusMap, useAPIClient, useArtifacts, useCreateStudy, useGetGeometry, useGetHbjson, useHbjsontoVTK, useJobs, useManageSettings, useRunCommand, useRuns, useSendHbjson, useSendMessage };
|