@gallop.software/studio 0.1.92 → 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,16 +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,
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
+ ] }),
368
382
  progress.orphansRemoved !== void 0 && progress.orphansRemoved > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
369
383
  " Removed ",
370
384
  progress.orphansRemoved,
@@ -1306,6 +1320,7 @@ function StudioToolbar() {
1306
1320
  const [showSyncConfirm, setShowSyncConfirm] = useState3(false);
1307
1321
  const [syncImageCount, setSyncImageCount] = useState3(0);
1308
1322
  const [showProgress, setShowProgress] = useState3(false);
1323
+ const [progressTitle, setProgressTitle] = useState3("Processing Images");
1309
1324
  const [progressState, setProgressState] = useState3({
1310
1325
  current: 0,
1311
1326
  total: 0,
@@ -1327,6 +1342,7 @@ function StudioToolbar() {
1327
1342
  }, []);
1328
1343
  const handleScan = useCallback(async () => {
1329
1344
  setScanning(true);
1345
+ setProgressTitle("Scanning Files");
1330
1346
  setShowProgress(true);
1331
1347
  setProgressState({
1332
1348
  current: 0,
@@ -1373,8 +1389,10 @@ function StudioToolbar() {
1373
1389
  percent: 100,
1374
1390
  status: "complete",
1375
1391
  processed: data.added,
1392
+ alreadyProcessed: data.existingCount,
1376
1393
  errors: data.errors,
1377
- 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
1378
1396
  });
1379
1397
  triggerRefresh();
1380
1398
  } else if (data.type === "error") {
@@ -1570,6 +1588,7 @@ function StudioToolbar() {
1570
1588
  const signal = abortControllerRef.current.signal;
1571
1589
  try {
1572
1590
  if (processMode === "all") {
1591
+ setProgressTitle("Processing Images");
1573
1592
  setShowProgress(true);
1574
1593
  setProgressState({
1575
1594
  current: 0,
@@ -1809,6 +1828,7 @@ function StudioToolbar() {
1809
1828
  }
1810
1829
  }
1811
1830
  const imageKeys = selectedImagePaths.map((p) => "/" + p.replace(/^public\//, ""));
1831
+ setProgressTitle("Pushing to CDN");
1812
1832
  setProgressState({
1813
1833
  current: 0,
1814
1834
  total: imageKeys.length,
@@ -2011,7 +2031,7 @@ function StudioToolbar() {
2011
2031
  showProgress && /* @__PURE__ */ jsx4(
2012
2032
  ProgressModal,
2013
2033
  {
2014
- title: "Processing Images",
2034
+ title: progressTitle,
2015
2035
  progress: progressState,
2016
2036
  onStop: handleStopProcessing,
2017
2037
  onClose: () => {
@@ -4892,4 +4912,4 @@ export {
4892
4912
  StudioUI,
4893
4913
  StudioUI_default as default
4894
4914
  };
4895
- //# sourceMappingURL=StudioUI-7VQHCHFQ.mjs.map
4915
+ //# sourceMappingURL=StudioUI-2JGXVWM4.mjs.map