Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .changeset/alerts.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/saves-show-at-once.md

This file was deleted.

4 changes: 2 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/create-spools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @swirls/create-spools

## 0.12.0

No changes in this release.

## 0.11.0

No changes in this release.
Expand Down
2 changes: 1 addition & 1 deletion packages/create-spools/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
36 changes: 36 additions & 0 deletions packages/spools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/spools/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading