@gallop.software/studio 0.1.91 → 0.1.93

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.
@@ -355,21 +355,30 @@ function ProgressModal({
355
355
  " before stopping."
356
356
  ] }) : isComplete ? /* @__PURE__ */ jsxs(Fragment, { children: [
357
357
  /* @__PURE__ */ jsxs("p", { css: styles.message, children: [
358
- "Processed ",
359
- progress.processed,
360
- " new image",
361
- progress.processed !== 1 ? "s" : "",
362
- ".",
363
- progress.alreadyProcessed !== void 0 && progress.alreadyProcessed > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
364
- " ",
365
- progress.alreadyProcessed,
366
- " already processed."
367
- ] }) : null,
368
- progress.pushedToCloud !== void 0 && progress.pushedToCloud > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
369
- " ",
370
- progress.pushedToCloud,
371
- " pushed to CDN."
372
- ] }) : null,
358
+ progress.isScan ? /* @__PURE__ */ jsxs(Fragment, { children: [
359
+ progress.alreadyProcessed !== void 0 && progress.alreadyProcessed > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
360
+ progress.alreadyProcessed,
361
+ " image",
362
+ progress.alreadyProcessed !== 1 ? "s" : "",
363
+ " already exist. "
364
+ ] }) : null,
365
+ "Scanned ",
366
+ progress.processed,
367
+ " new image",
368
+ progress.processed !== 1 ? "s" : "",
369
+ "."
370
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
371
+ "Processed ",
372
+ progress.processed,
373
+ " new image",
374
+ progress.processed !== 1 ? "s" : "",
375
+ ".",
376
+ progress.alreadyProcessed !== void 0 && progress.alreadyProcessed > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
377
+ " ",
378
+ progress.alreadyProcessed,
379
+ " already processed."
380
+ ] }) : null
381
+ ] }),
373
382
  progress.orphansRemoved !== void 0 && progress.orphansRemoved > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
374
383
  " Removed ",
375
384
  progress.orphansRemoved,
@@ -1311,6 +1320,7 @@ function StudioToolbar() {
1311
1320
  const [showSyncConfirm, setShowSyncConfirm] = useState3(false);
1312
1321
  const [syncImageCount, setSyncImageCount] = useState3(0);
1313
1322
  const [showProgress, setShowProgress] = useState3(false);
1323
+ const [progressTitle, setProgressTitle] = useState3("Processing Images");
1314
1324
  const [progressState, setProgressState] = useState3({
1315
1325
  current: 0,
1316
1326
  total: 0,
@@ -1332,6 +1342,7 @@ function StudioToolbar() {
1332
1342
  }, []);
1333
1343
  const handleScan = useCallback(async () => {
1334
1344
  setScanning(true);
1345
+ setProgressTitle("Scanning Files");
1335
1346
  setShowProgress(true);
1336
1347
  setProgressState({
1337
1348
  current: 0,
@@ -1378,8 +1389,10 @@ function StudioToolbar() {
1378
1389
  percent: 100,
1379
1390
  status: "complete",
1380
1391
  processed: data.added,
1392
+ alreadyProcessed: data.existingCount,
1381
1393
  errors: data.errors,
1382
- message: data.renamed > 0 ? `${data.renamed} file(s) renamed due to conflicts` : void 0
1394
+ message: data.renamed > 0 ? `${data.renamed} file(s) renamed due to conflicts` : void 0,
1395
+ isScan: true
1383
1396
  });
1384
1397
  triggerRefresh();
1385
1398
  } else if (data.type === "error") {
@@ -1575,6 +1588,7 @@ function StudioToolbar() {
1575
1588
  const signal = abortControllerRef.current.signal;
1576
1589
  try {
1577
1590
  if (processMode === "all") {
1591
+ setProgressTitle("Processing Images");
1578
1592
  setShowProgress(true);
1579
1593
  setProgressState({
1580
1594
  current: 0,
@@ -1631,7 +1645,6 @@ function StudioToolbar() {
1631
1645
  status: "complete",
1632
1646
  processed: data.processed,
1633
1647
  alreadyProcessed: data.alreadyProcessed,
1634
- pushedToCloud: data.pushedToCloud,
1635
1648
  orphansRemoved: data.orphansRemoved,
1636
1649
  errors: data.errors
1637
1650
  });
@@ -1815,6 +1828,7 @@ function StudioToolbar() {
1815
1828
  }
1816
1829
  }
1817
1830
  const imageKeys = selectedImagePaths.map((p) => "/" + p.replace(/^public\//, ""));
1831
+ setProgressTitle("Pushing to CDN");
1818
1832
  setProgressState({
1819
1833
  current: 0,
1820
1834
  total: imageKeys.length,
@@ -2017,7 +2031,7 @@ function StudioToolbar() {
2017
2031
  showProgress && /* @__PURE__ */ jsx4(
2018
2032
  ProgressModal,
2019
2033
  {
2020
- title: "Processing Images",
2034
+ title: progressTitle,
2021
2035
  progress: progressState,
2022
2036
  onStop: handleStopProcessing,
2023
2037
  onClose: () => {
@@ -4898,4 +4912,4 @@ export {
4898
4912
  StudioUI,
4899
4913
  StudioUI_default as default
4900
4914
  };
4901
- //# sourceMappingURL=StudioUI-NNOVWAOQ.mjs.map
4915
+ //# sourceMappingURL=StudioUI-2JGXVWM4.mjs.map