@brunosouzas/design-system 0.15.0 → 0.16.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/README.md +14 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,6 +109,10 @@ npm run stills -- sdd-scene-2-files # 12 PNGs: the 11 phase ends a
|
|
|
109
109
|
npm run render -- sdd-scene-2-files # one master and one web copy (29 s), after the owner approves the stills
|
|
110
110
|
npm run stills -- sdd-scene-3-archive # 10 PNGs: the 9 phase ends and the last frame
|
|
111
111
|
npm run render -- sdd-scene-3-archive # one master and one web copy (20 s), after the owner approves the stills
|
|
112
|
+
npm run stills -- idempotent-receiver-book # 14 PNGs: the 13 phase ends and the last frame
|
|
113
|
+
npm run render -- idempotent-receiver-book # one master and one web copy (30 s), after the owner approves the stills
|
|
114
|
+
npm run stills -- idempotent-receiver-mule # 18 PNGs: the 17 phase ends and the last frame
|
|
115
|
+
npm run render -- idempotent-receiver-mule # one master and one web copy (45 s), after the owner approves the stills
|
|
112
116
|
npm run build # compile the package into dist/ (the package test needs it)
|
|
113
117
|
npm run cover -- cover.json --out card.svg # build a blog cover (or a banner, diagram or icon) from its spec
|
|
114
118
|
npm run pieces:sheet -- --out out/pieces.svg # every piece once, labelled, for review
|
|
@@ -134,6 +138,8 @@ The catalogue contains:
|
|
|
134
138
|
| `sdd-request-relay` | [EN](https://brunosouzas.com/blog/spec-driven-development-in-practice), [PT](https://brunosouzas.com/pt/blog/spec-driven-development-in-practice) (one neutral video for both) | owner media gate pending ([stills and video sheets](docs/spikes/2026-11-12-sdd-request-relay/)) |
|
|
135
139
|
| `sdd-scene-2-files` | [EN](https://brunosouzas.com/blog/spec-driven-development-in-practice), [PT](https://brunosouzas.com/pt/blog/spec-driven-development-in-practice) (one neutral video for both) | owner media gate pending ([stills and video sheets](docs/spikes/2026-11-13-sdd-scene-2-files/)) |
|
|
136
140
|
| `sdd-scene-3-archive` | [EN](https://brunosouzas.com/blog/spec-driven-development-in-practice), [PT](https://brunosouzas.com/pt/blog/spec-driven-development-in-practice) (one neutral video for both) | owner media gate pending ([stills and video sheets](docs/spikes/2026-11-13-sdd-scene-3-archive/)) |
|
|
141
|
+
| `idempotent-receiver-book` | [EN](https://brunosouzas.com/wiki/idempotent-receiver-in-mulesoft/), [PT](https://brunosouzas.com/pt/wiki/idempotent-receiver-in-mulesoft/) and their book diagram (one neutral video for both) | owner media gate pending ([stills and video sheets](docs/spikes/2026-11-27-idempotent-receiver-book/README.md)) |
|
|
142
|
+
| `idempotent-receiver-mule` | [EN](https://brunosouzas.com/wiki/idempotent-receiver-in-mulesoft/), [PT](https://brunosouzas.com/pt/wiki/idempotent-receiver-in-mulesoft/) and their charge-flow diagram (one neutral video for both) | owner media gate pending ([stills and video sheets](docs/spikes/2026-11-28-idempotent-receiver-mule/README.md)) |
|
|
137
143
|
|
|
138
144
|
Studio lists the compositions of each scene in catalogue order: one per format and language for a localised scene, one per format for a neutral one. Pub-sub runs for 1000 frames at 30 fps, with the final 90 frames static. It depicts the article's AUTO acknowledgment case with a propagated invoice error, not every acknowledgment mode. Publish confirms exchange acceptance, not queue delivery. No redelivery is animated. After owner stills approval, `npm run render -- publish-subscribe` produces the four masters and four web copies; do not run it before that gate.
|
|
139
145
|
|
|
@@ -177,6 +183,14 @@ Its words are at least 33 stage units (36 for state names, the take number and t
|
|
|
177
183
|
|
|
178
184
|
**The SDD archive scene** (`sdd-scene-3-archive`, AB#144, a `sequence` scene) is the article's third scene, on the earlier scenes' stage: with no cast member acting, the first change's folder travels off stage to a parked position and the living `book` gains an "exactly two fields" line; days later Balão speaks a second request with no text on screen, Visor points and a second folder pops, and the `book` jolts once as the proposal's impact section surfaces a breaking fact; with no actor acting, a single `?` finding is flagged on the second folder and then cleared (no `NO-GO` anywhere); Balão's `GO` stamp travels to the second folder and lands; Visor's `worked` emote plays the implementation; with no actor acting, the landed `GO` fades and the second folder travels off stage to park beside the first, and only then does the field-count pill read "exactly three fields"; Chaves, beside the book throughout, settles into `done`. 600 frames (20 s), one 16:9 composition, no caption or sound. Its files follow the earlier scenes': `scene.ts` (the `text.en` table: the field-count phrases, `GO`, `?`), `timeline.ts` (`makeTimeline(travel, fade)`, the beat table with every pop, trip, jolt, fade, leave and cue), `frame.ts` (`frameAt(f)`; from the outro, 500, every frame reads as 500), `layout.ts`, `stage.ts` (five stage layers: book, folders, cast, verdict, above) and `Scene.tsx`.
|
|
179
185
|
|
|
186
|
+
**The Idempotent Receiver book scene** (`idempotent-receiver-book`, SW-160, a `takes` scene) shows the pattern as the book describes it, on the wiki page's book diagram: the Sender, the message channel (a `queueNode` without words, as the diagram draws it), the Idempotent Receiver's EIP icon and its store of processed IDs, empty at first. Take 1: the Sender sends order `42` once and the channel delivers it once; the receiver looks up the store (`?`: not there), processes it (green, checked) and stores `42`. A rewind (badge `1` → `2`). Take 2: the same order, sent once; a copy appears in the channel and both reach the receiver in turn; the first is processed and stored as before, the second finds `42` (the store comes into focus) and is set aside (orange); take 1's result fades in beside take 2's, the same effect. 900 frames (30 s), one 16:9 composition, no cast, caption or sound. Its files follow the earlier scenes' (`scene.ts`, `timeline.ts`, `frame.ts`, `layout.ts`, `stage.ts` with four layers: below, nodes, tokens, above, and `Scene.tsx`).
|
|
187
|
+
|
|
188
|
+
**The EIP book scene type** (`src/scenes/eip-book.ts`) holds what every pattern's book scene draws, so the next ones (Dead Letter Channel, Correlation Identifier, Publish-Subscribe Channel) add mostly data: the lane (`LANE`), the text sizes (`BOOK_TEXT`), a message channel on the lane (`channelOnLane`), an EIP icon with its message arrow on the lane (`iconOnLane`, from `ICON_ARROW_Y`), the message token (`messageToken`), and the store empty or holding an ID (`emptyStore`, `storedId`). It draws only through the package's pieces. A generic stage and frame builder waits for the second book scene, when two patterns show what is common.
|
|
189
|
+
|
|
190
|
+
**The Idempotent Receiver Mule scene** (`idempotent-receiver-mule`, SW-160, a `takes` scene) shows the page's caveat: the Idempotent Message Validator stores the ID when it accepts the message and does not remove it if the flow fails afterward. On the page's charge-flow diagram, left to right: Balão (the client), the `HTTP Listener`, the `Idempotent Message Validator` with its object store under it, and the `Simulated charge` with its statement of charges under it. Take 1: Balão asks for the charge of an order; the validator looks up its store (`?`: not there), stores the `orderId` and lets the request through; the charge goes through (one statement row, count `1`), `200` comes back and Balão is pleased (`worked`). Balão asks again: the validator finds the `orderId` (the store comes into focus), the request turns orange and `409` comes back; still one charge. A rewind (badge `1` → `2`). Take 2: the same request and lookup; the validator stores the `orderId`; storing the charge fails (the request turns red), `500` comes back and Balão shows the `problem` emote; the `orderId` stays in the store, the retry gets the same `409`, and the statement ends at `0`, take 1's `1` faded in beside it: the order is never charged. 1350 frames (45 s), one 16:9 composition, Balão the one cast member, no caption or sound. Its files follow the book scene's (`scene.ts`, `timeline.ts`, `frame.ts`, `layout.ts`, `stage.ts` with five layers: below, nodes, cast, tokens, above, and `Scene.tsx`).
|
|
191
|
+
|
|
192
|
+
**The EIP Mule scene type** (`src/scenes/eip-mule.ts`) holds what every pattern's Mule scene draws: a component box with the diagram's name at 33 units (`component`, `MULE_TEXT`), a token's rest above a component (`restAbove`, `ABOVE_GAP`), and the client, Balão facing the flow (`client`). It reuses the book scene type's token and store and draws only through the package's pieces. A generic Mule stage and frame builder waits for the second Mule scene.
|
|
193
|
+
|
|
180
194
|
Pub-sub separates `text.ts`, `timeline.ts` and pure `flow.ts` from its data entry. Half-open ownership intervals transfer each token atomically at split/arrival/ACK/NACK boundaries. Caption windows use phase ids internally, never as visible labels; captions and labels are frozen against source fixtures. Both media scripts consume only common phase ends and duration, without React or fonts.
|
|
181
195
|
|
|
182
196
|
The components take every colour and size from the tokens, and what is visible at a frame (arrow progress, travelling tokens, focus and dimming, captions, countdown, call results) comes from pure functions in `src/brand/motion.ts`, which the tests check without rendering.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Design tokens and illustration pieces of brunosouzas.com: tokens as CSS, JSON and TypeScript, pieces that draw SVG (and React), and a cover command.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|