@celljs/ta-cron 4.15.0 → 4.15.1

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/web/index.js +8 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-cron",
3
- "version": "4.15.0",
3
+ "version": "4.15.1",
4
4
  "description": "A pi package for Ta: prompts that run on a schedule, once, every so often or by a cron expression, each run in a conversation of its own in the Ta service",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -27,8 +27,8 @@
27
27
  "watch": "tsc -b -w --preserveWatchOutput"
28
28
  },
29
29
  "devDependencies": {
30
- "@celljs/ta-protocol": "4.15.0",
31
- "@celljs/ta-web": "4.15.0",
30
+ "@celljs/ta-protocol": "4.15.1",
31
+ "@celljs/ta-web": "4.15.1",
32
32
  "@types/react": "^19.3.0"
33
33
  },
34
34
  "publishConfig": {
package/web/index.js CHANGED
@@ -2691,18 +2691,22 @@ function Detail({ client, task, now, onEdit }) {
2691
2691
  const Sparkles = icon("Sparkles");
2692
2692
  const Ask = icon("MessageCircle");
2693
2693
  const running = task.lastStatus === "running";
2694
+ const [starting, start] = useBusy(pi.ui);
2694
2695
  return /* @__PURE__ */ React.createElement("div", {
2695
2696
  className: "tcr-detail"
2696
2697
  }, /* @__PURE__ */ React.createElement("div", {
2697
2698
  className: "tcr-toolbar"
2698
2699
  }, /* @__PURE__ */ React.createElement("button", {
2699
2700
  type: "button",
2700
- className: "tcr-button",
2701
- disabled: running,
2702
- onClick: () => void guard(() => client.runNow(task.id))
2701
+ className: starting ? "tcr-button ta-busy" : "tcr-button",
2702
+ "aria-busy": starting || undefined,
2703
+ disabled: running || starting,
2704
+ onClick: () => void start(() => guard(() => client.runNow(task.id)))
2703
2705
  }, /* @__PURE__ */ React.createElement(Play, {
2704
2706
  size: 14
2705
- }), t("runNow")), /* @__PURE__ */ React.createElement("button", {
2707
+ }), t("runNow"), starting && /* @__PURE__ */ React.createElement("span", {
2708
+ className: "ta-spinner ta-busy-mark"
2709
+ })), /* @__PURE__ */ React.createElement("button", {
2706
2710
  type: "button",
2707
2711
  className: "tcr-button",
2708
2712
  onClick: () => onEdit(task)