From 925bd1b40339f88e2783ea853700bfd5c290f306 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Dec 2026 02:55:16 +0000 Subject: [PATCH] chore(release): publish @swirls/spools --- .changeset/alerts.md | 17 -------------- .changeset/saves-show-at-once.md | 19 --------------- bun.lock | 4 ++-- packages/create-spools/CHANGELOG.md | 4 ++++ packages/create-spools/package.json | 2 +- packages/spools/CHANGELOG.md | 36 +++++++++++++++++++++++++++++ packages/spools/package.json | 2 +- 7 files changed, 44 insertions(+), 40 deletions(-) delete mode 100644 .changeset/alerts.md delete mode 100644 .changeset/saves-show-at-once.md diff --git a/.changeset/alerts.md b/.changeset/alerts.md deleted file mode 100644 index 8d7272a..0000000 --- a/.changeset/alerts.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -'@swirls/spools': minor ---- - -Alerts: one place the CRM tells whoever is using it what is happening. - -The CRM's shell now draws alerts over the bottom of the page. The CRM raises them itself when a field changed in place or a `Stages` step is refused by the server, and when a record action runs for a while, ends, or fails. - -Yours to use: - -- `@Alert(text, tone?)` in a layout's `Action`: `Button("Mark won", Action([@Run(win), @Refresh(), @Alert("Marked won", "success")]))`. -- `useAlerts()` from `@swirls/spools/ui/alerts` in a layout component, a module's panel or a page of your own: `show`, `change`, `dismiss`, and `during(promise, { doing, done, failed })`, which says work is going on if it takes a while and how it ended. -- `onAlert` in `defineSpoolUi`, called with every alert as it is raised, the CRM's own included. - -See docs/alerts.md. - -What existing apps do. Nothing, unless a test of yours reads a record action's result or a refused `Stages` step where it used to be drawn: the action's message was a line under the buttons (a strip under the top bar on the classic record page) and the refusal a line under the steps. Both are alerts now, inside `[data-alerts]`. diff --git a/.changeset/saves-show-at-once.md b/.changeset/saves-show-at-once.md deleted file mode 100644 index 3353ed7..0000000 --- a/.changeset/saves-show-at-once.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@swirls/spools': patch ---- - -A value changed in place shows at once and stays: it no longer goes back to the old value while -the page reads the record again. - -- **A field edited in place** (a table cell, the record page's details, a layout's `Field` and - `Fields`) shows what was typed or picked from the moment it is, instead of the old value dimmed - until the page had read the record again. A save the server refuses puts the old value back and - says why. -- **`Stages` on a laid-out record page** keeps the step that was chosen. It used to show the new - step, then the old one again for as long as the record's read took, then the new one: the - router says a reload is done before the record's route has its new data. -- **A layout's components draw the page's own record** when they are handed that record, so a - `RecordHeader`, `Fields` or `Stages` follows a save as soon as the page has it, without waiting - for the layout's other Queries. - -**What existing apps do.** Nothing: no config, route or table changes. diff --git a/bun.lock b/bun.lock index 3cd050f..5e2acfa 100644 --- a/bun.lock +++ b/bun.lock @@ -108,14 +108,14 @@ }, "packages/create-spools": { "name": "@swirls/create-spools", - "version": "0.11.0", + "version": "0.12.0", "bin": { "create-spools": "./src/main.ts", }, }, "packages/spools": { "name": "@swirls/spools", - "version": "0.11.0", + "version": "0.12.0", "bin": { "spools": "./src/cli/main.ts", }, diff --git a/packages/create-spools/CHANGELOG.md b/packages/create-spools/CHANGELOG.md index 37aa038..203402b 100644 --- a/packages/create-spools/CHANGELOG.md +++ b/packages/create-spools/CHANGELOG.md @@ -1,5 +1,9 @@ # @swirls/create-spools +## 0.12.0 + +No changes in this release. + ## 0.11.0 No changes in this release. diff --git a/packages/create-spools/package.json b/packages/create-spools/package.json index 8334c6b..0da257e 100644 --- a/packages/create-spools/package.json +++ b/packages/create-spools/package.json @@ -1,6 +1,6 @@ { "name": "@swirls/create-spools", - "version": "0.11.0", + "version": "0.12.0", "description": "Make a new Spool, a CRM your coding agents build on @swirls/spools", "homepage": "https://spools.codes", "bugs": { diff --git a/packages/spools/CHANGELOG.md b/packages/spools/CHANGELOG.md index c71f292..fa76824 100644 --- a/packages/spools/CHANGELOG.md +++ b/packages/spools/CHANGELOG.md @@ -1,5 +1,41 @@ # @swirls/spools +## 0.12.0 + +### Minor Changes + +- 57c69a9: Alerts: one place the CRM tells whoever is using it what is happening. + + The CRM's shell now draws alerts over the bottom of the page. The CRM raises them itself when a field changed in place or a `Stages` step is refused by the server, and when a record action runs for a while, ends, or fails. + + Yours to use: + + - `@Alert(text, tone?)` in a layout's `Action`: `Button("Mark won", Action([@Run(win), @Refresh(), @Alert("Marked won", "success")]))`. + - `useAlerts()` from `@swirls/spools/ui/alerts` in a layout component, a module's panel or a page of your own: `show`, `change`, `dismiss`, and `during(promise, { doing, done, failed })`, which says work is going on if it takes a while and how it ended. + - `onAlert` in `defineSpoolUi`, called with every alert as it is raised, the CRM's own included. + + See docs/alerts.md. + + What existing apps do. Nothing, unless a test of yours reads a record action's result or a refused `Stages` step where it used to be drawn: the action's message was a line under the buttons (a strip under the top bar on the classic record page) and the refusal a line under the steps. Both are alerts now, inside `[data-alerts]`. + +### Patch Changes + +- 57c69a9: A value changed in place shows at once and stays: it no longer goes back to the old value while + the page reads the record again. + + - **A field edited in place** (a table cell, the record page's details, a layout's `Field` and + `Fields`) shows what was typed or picked from the moment it is, instead of the old value dimmed + until the page had read the record again. A save the server refuses puts the old value back and + says why. + - **`Stages` on a laid-out record page** keeps the step that was chosen. It used to show the new + step, then the old one again for as long as the record's read took, then the new one: the + router says a reload is done before the record's route has its new data. + - **A layout's components draw the page's own record** when they are handed that record, so a + `RecordHeader`, `Fields` or `Stages` follows a save as soon as the page has it, without waiting + for the layout's other Queries. + + **What existing apps do.** Nothing: no config, route or table changes. + ## 0.11.0 ### Minor Changes diff --git a/packages/spools/package.json b/packages/spools/package.json index 4df5190..9b0d235 100644 --- a/packages/spools/package.json +++ b/packages/spools/package.json @@ -1,6 +1,6 @@ { "name": "@swirls/spools", - "version": "0.11.0", + "version": "0.12.0", "description": "Open source CRM framework for coding agents: sign-in, data, security, search, email and tests built in", "keywords": [ "agents",