@sanity/workflow-studio-plugin 0.4.0 → 0.5.0
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.
- package/CHANGELOG.md +41 -0
- package/README.md +2 -2
- package/dist/_chunks-cjs/index.cjs +1209 -598
- package/dist/_chunks-cjs/workflows-tool-root.cjs +886 -1034
- package/dist/_chunks-es/index.js +1171 -594
- package/dist/_chunks-es/workflows-tool-root.js +1307 -1457
- package/package.json +9 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @sanity/workflow-studio-plugin
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 767497c: Document reference previews render as hoverable card links: the preview card IS the edit-intent link, with hover/focus affordances instead of a static-text face. Compact row lockups (the tool's group bands) compose the chip from schema icon + live title on the row's own text metric — Studio's portable-text inline preview misaligns outside a text run — so chips center exactly with the badges and buttons beside them. The tool's document group bands step up one radius, give the collapse toggle a larger hit area, and vertically center every band item.
|
|
8
|
+
- 0143226: The document form strip now shows every workflow run instead of hiding finished ones and collapsing concurrent actives. Each active instance renders its own line (definition title, current stage, its own assigned-task count — the "N active workflows" aggregate line is gone), and each workflow type whose runs have all settled keeps one line showing its latest run's terminal state (an Aborted chip for a run that never completed), with the settle time on hover; a type running again is represented by its active line instead. Clicking any line opens the Workflows view focused on that run — only its section unfurled, via a sticky pane param that survives reloads.
|
|
9
|
+
- 767497c: Tool instance bands render the form strip's instance lockup — title, then the stage face with its glyph in the primary tone — and the lockup is a real link to the instance's detail view: plain clicks navigate in place (carrying the selected tab), modified clicks open the resolved route in a new tab.
|
|
10
|
+
- 24b11dd: Surface the `progress` field kind: a progress field's pill wears its value as a tweened background fill with a whole-number percent caption in a reserved-width slot (at-a-glance progress that never resizes as it ticks), the tweened `ProgressBar` (from `@sanity/workflow-components`) renders on every field-value display surface — pill popovers, field rows, the activity dialog — and edits go through native 0–100 number inputs honoring declared validation bounds; the MCP authoring guide documents the kind.
|
|
11
|
+
- 767497c: The Workflows tool drops its All workflows tab: the tool is Overview and For me. The instance-level filter arms that only backed that listing are gone with it.
|
|
12
|
+
- 2005ab7: Terminal-action placement keys on what firing concludes: an action whose fire would exit the stage right now (the engine's `firing` consequence) joins the own-status settling actions in the dialog footer and the row's terminal cluster — no longer a quiet top-strip button. The activity detail dialog's footer also drops its Cancel button (field edits commit on their own gestures, so there was nothing to cancel — dismissal is the header X, Esc, or the overlay) and renders only when terminal actions exist.
|
|
13
|
+
- 47fd2b5: Terminal actions fold into menus instead of the primary-plus-chevron split button. An activity list row with two or more actions offers one "Select action" menu listing them all; a lone action stays a plain ghost button. The activity dialog footer lays actions out inline — capped at three, and only as many as the measured footer width fits without wrapping, refitting as the dialog resizes — with the surplus behind a "More actions" menu.
|
|
14
|
+
- 767497c: Workflows tool layout: the title, tabs, and the active tab's filter row are a fixed header — only the task list scrolls, with a stable scrollbar gutter so the scrollbar appearing doesn't reflow rows. Task rows indent under their instance band (the document view's stage inset) and share the bands' border radius. Header padding is uniform, with the tool title optically aligned to the tab labels; the tabs' loading rows share the same optical indent. The plugin now declares `react-dom` as a peer dependency (the header slot renders through a portal).
|
|
15
|
+
- 767497c: Workflows tool: one tab strip — Overview (all tasks, default) and For me (the user's assignments) — replacing the Tasks/All workflows tabs and the nested My tasks/All tasks toggle. The selected tab now rides the tool's URL search params with the same contract as the document view's tab (default elided, unknown values read as the default), so reloads, bookmarks, and detail-view round-trips keep the tab. The "New workflow" button drops its primary tone and tightens its icon-to-label gap.
|
|
16
|
+
- 767497c: Workflows tool: task rows are now the document view's shared activity row — same geometry and the same inline controls: the assignee picker and a new date chip. The Overview groups one dimension per level — a band per document, lighter collapsible bands per workflow instance under it (the title + current-stage lockup, a link to the instance's detail view; every band's affordance acts on exactly the entity it names), and the instance's activity rows below. Instances without a Studio document band bare in a trailing section. The For me segment reads the same hierarchy cut to the user's assignments, its rows carrying the inline terminal-action cluster (everything listed is yours to act on — Overview rows stay action-free); the document pane's For me tab keeps its flat list. Rendered rows pull their instances into the provider's live evaluation to drive the controls; rows hold the committed facts in the same shell until it lands.
|
|
17
|
+
|
|
18
|
+
The inline assign and date controls are state-driven so identical-looking triggers never behave differently across rows: a declared-editable field with anything to show always renders its trigger — the popover shows a loading state until the live evaluation lands, and the picker while the field is editable for the actor; once editing is closed (a settled activity, a denying predicate) the trigger swallows the click and explains itself in the hover hint instead of falling through to the row's dialog. Values whose field is never declared editable render as plain content, without button chrome. The activity row gains an optional date-control slot for surfaces that show dates on rows.
|
|
19
|
+
|
|
20
|
+
- 767497c: An unreadable workflow document no longer blanks the Workflows tool: the task list renders every readable row and flags the refused ones in a compact caution note with a Copy details button producing a paste-ready report (id, reason, and the validation detail naming the offending fields). Document surfaces keep the conservative wholesale notice: an unreadable row can't be attributed to a document, so discovery still fails loud there.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 767497c: Tool bands drop their overflow menus — the document chip and the instance lockup are the inline affordances now, each carrying a tooltip ("Open document" / "View workflow") — and instance bands trail a centered hairline rule filling the rest of the band.
|
|
25
|
+
- 767497c: The document view's workflow instance accordion wears the tool's band shell: a discrete chevron toggle, the title lockup, and the trailing hairline, with the instance menu kept at the band's end. One shared CollapsibleBand component now backs both surfaces, so their geometry can't drift.
|
|
26
|
+
- 767497c: Overflow menus render the standard surface wherever they open — the popover no longer inherits a toned host card's background (a group band's transparent tone painted the menu grey). Menus anchor to the trigger's end edge, flipping above only when there's no room below.
|
|
27
|
+
- 767497c: The inline "Document unavailable" face aligns with linked document chips: same padded box, the warning icon in its own text cell, and the chip's gap before the label.
|
|
28
|
+
- 0143226: The Workflows view's instance section header spinner renders at the header lockup's own text scale (size 1) instead of the default size.
|
|
29
|
+
- 767497c: The tool's task rows stay mounted across the committed-facts → live-evaluation transition: one row component renders either source, so a loading popover opened before the instance's evaluation lands resolves in place into the picker instead of closing. The shared activity row now takes a normalized face (title, status, tags) rather than a raw activity evaluation, so any surface can render it from committed facts.
|
|
30
|
+
- 2005ab7: A terminal-action cluster (a row's lone button or "Select action" menu, the dialog footer's inline buttons plus "More actions" menu) shares one in-flight fire lock: while any member fires, the firing button shows loading, the menu trigger and every item disable, and sibling fires drop before reaching the session. Firing from a menu no longer leaves the cluster looking idle (a menu item unmounts when its menu closes, so its own pending state — and its double-fire guard — died with it).
|
|
31
|
+
- 767497c: Per-instance session updates no longer re-render every workflow surface: the provider's live entries move out of the context value into a subscribable store, consumers subscribe per key with identity-stable snapshots, and report bursts coalesce into one trailing flush per fixed window (never extended, so a steady stream of reports still flushes on cadence). Opening the Workflows tool over dozens of instances now settles in seconds instead of tens of seconds of main-thread churn.
|
|
32
|
+
- Updated dependencies [24b11dd]
|
|
33
|
+
- Updated dependencies [2005ab7]
|
|
34
|
+
- Updated dependencies [767497c]
|
|
35
|
+
- Updated dependencies [24b11dd]
|
|
36
|
+
- Updated dependencies [24b11dd]
|
|
37
|
+
- Updated dependencies [59b40fd]
|
|
38
|
+
- @sanity/workflow-engine@0.19.0
|
|
39
|
+
- @sanity/workflow-react@0.14.0
|
|
40
|
+
- @sanity/workflow-studio@0.10.0
|
|
41
|
+
- @sanity/workflow-components@0.2.0
|
|
42
|
+
- @sanity/workflow-diagram@0.4.1
|
|
43
|
+
|
|
3
44
|
## 0.4.0
|
|
4
45
|
|
|
5
46
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ UI: a **workflow strip** above the editor form of mapped documents (the
|
|
|
11
11
|
current stage, your task count, and a **Start workflow** button), and a
|
|
12
12
|
**Workflows tab** next to the editor with the stage's activities and to-dos,
|
|
13
13
|
where they fire actions and read the history, and a **Workflows tool** in the
|
|
14
|
-
Studio navbar —
|
|
15
|
-
and a deep-linkable per-workflow detail view.
|
|
14
|
+
Studio navbar — the open tasks across the newest workflow instances (capped),
|
|
15
|
+
the user's own cut of them, and a deep-linkable per-workflow detail view.
|
|
16
16
|
|
|
17
17
|
Four ideas cover everything in this guide:
|
|
18
18
|
|