Repository navigation
chore(release): publish @swirls/spools - #53
Merged
Merged
Conversation
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Stagesstep 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'sAction:Button("Mark won", Action([@Run(win), @Refresh(), @Alert("Marked won", "success")])).useAlerts()from@swirls/spools/ui/alertsin a layout component, a module's panel or a page of your own:show,change,dismiss, andduring(promise, { doing, done, failed }), which says work is going on if it takes a while and how it ended.onAlertindefineSpoolUi, 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
Stagesstep 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.
FieldandFields) shows what was typed or picked from the moment it is, instead of the old value dimmeduntil the page had read the record again. A save the server refuses puts the old value back and
says why.
Stageson a laid-out record page keeps the step that was chosen. It used to show the newstep, 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.
RecordHeader,FieldsorStagesfollows a save as soon as the page has it, without waitingfor 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: