Skip to content

chore(release): publish @swirls/spools - #53

Merged
calvinbrewer merged 1 commit into
mainfrom
changeset-release/main
Dec 4, 2026
Merged

calvinbrewer merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@swirls/[email protected]

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.

@swirls/[email protected]

No changes in this release.

Ask Polylane for an impact assessment of this pull request:

Assess with Polylane

@calvinbrewer
calvinbrewer merged commit b9e6551 into main Dec 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant