@synap-core/workspace-templates 0.68.0 → 0.69.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/dist/index.js +202 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/design-system.template.test.ts +87 -0
- package/src/design-system.yaml +173 -0
- package/src/templates.ts +179 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synap-core/workspace-templates",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.69.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical workspace definitions — YAML source + typed exports for browser, backend, CLI, and marketplace",
|
|
6
6
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "Design system on Synap" pack (plan 48854969 W5, "one click for
|
|
3
|
+
* anyone"): one install brings what an app's Storybook needs on a pod, and its
|
|
4
|
+
* setup asks three things, one at a time.
|
|
5
|
+
*
|
|
6
|
+
* What this guards:
|
|
7
|
+
* 1. the pack is a suite that owns no data, and REQUIRES what already exists
|
|
8
|
+
* instead of copying it: Dev first (the setup lands there), then the
|
|
9
|
+
* Brand library, then the storybook capability;
|
|
10
|
+
* 2. what it promises arrives through those dependencies: Dev carries the
|
|
11
|
+
* three UI kinds, the review and design playbooks and the two design
|
|
12
|
+
* skills; Brand carries the brand identity;
|
|
13
|
+
* 3. the setup asks ONE question per stage, in order (where the Storybook
|
|
14
|
+
* is, which app, which brand identity), each a stage-end ask of one field,
|
|
15
|
+
* and no other stage asks;
|
|
16
|
+
* 4. the storybook.sync parameters the setup names are the verb's own
|
|
17
|
+
* (`STORYBOOK_VERB_PARAMETERS`), so the text cannot drift from the door.
|
|
18
|
+
*
|
|
19
|
+
* Not covered: the install on a pod (CP + backend), whether the pod raises
|
|
20
|
+
* each endAsk at the end of its stage, and the run's resolution of the names.
|
|
21
|
+
*/
|
|
22
|
+
import { describe, expect, it } from "vitest";
|
|
23
|
+
import {
|
|
24
|
+
STORYBOOK_CAPABILITY_KEY,
|
|
25
|
+
STORYBOOK_SYNC_VERB,
|
|
26
|
+
STORYBOOK_VERB_PARAMETERS,
|
|
27
|
+
} from "@synap-core/types/storybook";
|
|
28
|
+
import { getWorkspaceTemplate } from "./templates.js";
|
|
29
|
+
|
|
30
|
+
const pack = getWorkspaceTemplate("design-system")!;
|
|
31
|
+
|
|
32
|
+
type EndAsk = { label: string; ask: { mode: string; form?: { fields: { key: string }[] } } };
|
|
33
|
+
type Stage = { key: string; goal: string; endAsk?: EndAsk };
|
|
34
|
+
type Pb = { name: string; goalTemplate: string; stages: Stage[] };
|
|
35
|
+
type Dep = { slug: string; kind: string; relation: string };
|
|
36
|
+
|
|
37
|
+
const deps = (pack as unknown as { dependencies: Dep[] }).dependencies;
|
|
38
|
+
const setup = (pack.playbooks as unknown as Pb[]).find((p) => p.name === "Set up a design system")!;
|
|
39
|
+
|
|
40
|
+
describe("Design system pack", () => {
|
|
41
|
+
it("is a suite that owns no data and requires Dev first, then Brand and the storybook capability", () => {
|
|
42
|
+
expect(pack.meta.tags).toContain("suite");
|
|
43
|
+
expect(pack.profiles).toEqual([]);
|
|
44
|
+
expect(deps.map((d) => [d.slug, d.kind, d.relation])).toEqual([
|
|
45
|
+
["builder-workspace", "workspace", "require"],
|
|
46
|
+
["brand-library", "workspace", "require"],
|
|
47
|
+
[STORYBOOK_CAPABILITY_KEY, "capability", "require"],
|
|
48
|
+
]);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it("brings the UI kinds, the review and design playbooks and the design skills through Dev", () => {
|
|
52
|
+
const dev = getWorkspaceTemplate("builder-workspace")!;
|
|
53
|
+
const kinds = new Set(dev.profiles.map((p) => p.slug));
|
|
54
|
+
for (const k of ["ui-component", "ui-page", "user-flow", "devplane_app"]) expect(kinds.has(k), k).toBe(true);
|
|
55
|
+
const playbooks = new Set((dev.playbooks ?? []).map((p) => p.name));
|
|
56
|
+
for (const name of ["Review a UI component", "Design to implementation"])
|
|
57
|
+
expect(playbooks.has(name), name).toBe(true);
|
|
58
|
+
const devDeps = (dev as unknown as { dependencies: Dep[] }).dependencies.map((d) => `${d.kind}:${d.slug}`);
|
|
59
|
+
expect(devDeps).toEqual(expect.arrayContaining(["skill:design-critique", "skill:designing-with-real-components"]));
|
|
60
|
+
const brand = getWorkspaceTemplate("brand-library")!;
|
|
61
|
+
expect(brand.profiles.some((p) => p.slug === "brand-identity")).toBe(true);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("asks three things, one per stage, in order, and nothing else", () => {
|
|
65
|
+
expect(setup).toBeDefined();
|
|
66
|
+
const asks = setup.stages
|
|
67
|
+
.filter((s) => s.endAsk)
|
|
68
|
+
.map((s) => [s.key, s.endAsk!.ask.mode, (s.endAsk!.ask.form?.fields ?? []).map((f) => f.key)]);
|
|
69
|
+
expect(asks).toEqual([
|
|
70
|
+
["where", "form", ["storybookUrl"]],
|
|
71
|
+
["app", "form", ["app"]],
|
|
72
|
+
["brand", "form", ["brand"]],
|
|
73
|
+
]);
|
|
74
|
+
// The three asking stages come first, before the run connects anything.
|
|
75
|
+
expect(setup.stages.slice(0, 3).map((s) => s.key)).toEqual(["where", "app", "brand"]);
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("names only storybook.sync's own parameters, and the brand only there", () => {
|
|
79
|
+
const params = Object.keys(STORYBOOK_VERB_PARAMETERS[STORYBOOK_SYNC_VERB].properties);
|
|
80
|
+
const connect = setup.stages.find((s) => s.key === "connect")!;
|
|
81
|
+
for (const p of ["url", "bundleFileId", "appId", "brandIdentityId"]) {
|
|
82
|
+
expect(params, p).toContain(p);
|
|
83
|
+
expect(connect.goal, p).toContain(p);
|
|
84
|
+
}
|
|
85
|
+
expect(setup.goalTemplate).toMatch(/brand identity goes only to storybook\.sync/);
|
|
86
|
+
});
|
|
87
|
+
});
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Design system on Synap — a pack (a `suite` workspace template)
|
|
2
|
+
# ==============================================================
|
|
3
|
+
# Plan 48854969 W5 "one click for anyone": install it and an app's Storybook
|
|
4
|
+
# becomes records on the pod (ui-component, ui-page, user-flow), reviewed by
|
|
5
|
+
# a playbook and tied to a brand identity in the Brand space.
|
|
6
|
+
#
|
|
7
|
+
# It installs, in order, what already exists (one space per domain) and owns
|
|
8
|
+
# no data of its own (`profiles: []`):
|
|
9
|
+
# • builder-workspace — the kinds ui-component, ui-page, user-flow and
|
|
10
|
+
# devplane_app, the playbooks "Review a UI component" (its weekly sweep is
|
|
11
|
+
# installed paused) and "Design to implementation", and the skills
|
|
12
|
+
# design-critique and designing-with-real-components;
|
|
13
|
+
# • brand-library — the brand identity a Storybook expresses;
|
|
14
|
+
# • storybook — the capability (storybook.sync, storybook.changed).
|
|
15
|
+
# It carries only the setup process, which lands in its primary domain (Dev).
|
|
16
|
+
#
|
|
17
|
+
# SETUP ASKS THREE THINGS, ONE AT A TIME. A package install takes no answers
|
|
18
|
+
# (a workspace package is applied with no params, backend marketplace-install
|
|
19
|
+
# `case "template"`), and a pack owns no space, so it carries no onboarding
|
|
20
|
+
# interview. What exists to ask a person one question at a time is a
|
|
21
|
+
# playbook stage's `endAsk`: the pod raises it when the turn ends the stage and
|
|
22
|
+
# the answer wakes the run at the next one. So the setup is the playbook below.
|
|
23
|
+
# An endAsk's choices are static, or the run subject's relations
|
|
24
|
+
# (`optionsFrom`); there is no subject before the app is named, so "which app"
|
|
25
|
+
# and "which brand identity" are answered by name and the run resolves them.
|
|
26
|
+
#
|
|
27
|
+
# THE SYNC SCHEDULE. The storybook sync kind is not ticked by the pod
|
|
28
|
+
# (`scheduled: false`, backend storybook-sync.ts) and a package cannot carry an
|
|
29
|
+
# automation holding one person's url and ids (`apply-time-placeholder`). So
|
|
30
|
+
# the setup run files the person's own daily sync automation (a public URL),
|
|
31
|
+
# or hands the build-and-upload step to their computer after each push (a
|
|
32
|
+
# computer). The brand identity lives only on the sync SOURCE's config (the
|
|
33
|
+
# contract): storybook.sync stores it there, never on the mirrored records.
|
|
34
|
+
|
|
35
|
+
meta:
|
|
36
|
+
slug: design-system
|
|
37
|
+
domain: build
|
|
38
|
+
name: Design system on Synap
|
|
39
|
+
description: Mirror an app's Storybook into your pod — every component, page and user flow as a record with its screenshot, status and what it is made of — review the ones that change with the design-critique rubric, and tie it to your brand identity. Setup asks three things, one at a time.
|
|
40
|
+
icon: layout-template
|
|
41
|
+
color: "#7C3AED"
|
|
42
|
+
tags: [suite, design, storybook, ui, builder, brand]
|
|
43
|
+
isPublic: true
|
|
44
|
+
|
|
45
|
+
dependencies:
|
|
46
|
+
- slug: builder-workspace
|
|
47
|
+
kind: workspace
|
|
48
|
+
relation: require
|
|
49
|
+
reason: "The kinds the Storybook becomes (ui-component, ui-page, user-flow, the app), the review and design playbooks, and the design-critique rubric. Must resolve first: the setup process lands here."
|
|
50
|
+
- slug: brand-library
|
|
51
|
+
kind: workspace
|
|
52
|
+
relation: require
|
|
53
|
+
reason: "The brand identity the Storybook expresses; the sync source names it."
|
|
54
|
+
- slug: storybook
|
|
55
|
+
kind: capability
|
|
56
|
+
relation: require
|
|
57
|
+
reason: "storybook.sync mirrors the Storybook into the records; storybook.changed lists the components changed since their last review."
|
|
58
|
+
|
|
59
|
+
workspace:
|
|
60
|
+
name: Design system on Synap
|
|
61
|
+
description: Setting up an app's Storybook as pod records, layered onto the Dev space.
|
|
62
|
+
|
|
63
|
+
profiles: []
|
|
64
|
+
|
|
65
|
+
playbooks:
|
|
66
|
+
- name: Set up a design system
|
|
67
|
+
description: "Connect one app's Storybook to the pod in three questions asked one at a time: where the Storybook is (a public URL, or a computer that builds and uploads it), which app or project it belongs to, and which brand identity it expresses. Ends with the first sync's import proposal filed for the person and the sync kept current."
|
|
68
|
+
goalTemplate: >-
|
|
69
|
+
Set up the design system of one app on this pod. Load the
|
|
70
|
+
designing-with-real-components skill first. The pod asks the person three
|
|
71
|
+
things, one per stage, when your turn ends that stage: never ask them
|
|
72
|
+
yourself and never ask two at once. WHERE: read what the pod already has
|
|
73
|
+
(the apps, the brand identities, any ui-component records and the app
|
|
74
|
+
they belong to) and list the apps and brand identities by name, so the
|
|
75
|
+
next answers can name one. APP: resolve the app the person named (an
|
|
76
|
+
existing devplane_app first; never a second record for one that exists;
|
|
77
|
+
a new one is created through a proposal, filed into the person's
|
|
78
|
+
project). BRAND: resolve the brand identity they named (brand-identity,
|
|
79
|
+
Brand space); none named: the source carries none. CONNECT: a public
|
|
80
|
+
https URL → run storybook.sync with url, appId and brandIdentityId; a
|
|
81
|
+
computer → hand the build-and-upload step to the person's computer
|
|
82
|
+
(hand-off skill): it builds Storybook, writes a synap.storybook-bundle/v1
|
|
83
|
+
file, uploads it to the pod and runs storybook.sync with bundleFileId,
|
|
84
|
+
appId and brandIdentityId. The first run of a source is ONE import
|
|
85
|
+
proposal the person approves; never write the records yourself. KEEP
|
|
86
|
+
CURRENT: the pod does not re-sync a Storybook on its own; for a URL, file
|
|
87
|
+
a daily automation that runs storybook.sync with the same three values;
|
|
88
|
+
for a computer, the same build, upload and sync runs after each push to
|
|
89
|
+
the app's main. The brand identity goes only to storybook.sync (the
|
|
90
|
+
source's config), never onto the records.
|
|
91
|
+
# No activator: a manual activator fires on a subject, and this setup has
|
|
92
|
+
# none (the app is its second answer). It is started by name
|
|
93
|
+
# (run_playbook), by the person or an agent they ask.
|
|
94
|
+
executor: is-agent
|
|
95
|
+
status: active
|
|
96
|
+
stages:
|
|
97
|
+
- key: where
|
|
98
|
+
name: Where the Storybook is
|
|
99
|
+
category: planned
|
|
100
|
+
goal: Read the pod's apps (devplane_app), brand identities (brand-identity) and any ui-component records with the app they belong to, and list the apps and brand identities by name in your message. Ask nothing yourself; when your turn ends the pod asks where the Storybook is.
|
|
101
|
+
endAsk:
|
|
102
|
+
label: Where the Storybook is
|
|
103
|
+
why: The pod reads a public Storybook over https, or a bundle a computer of yours builds and uploads after each push.
|
|
104
|
+
unblocks: The run asks which app the Storybook belongs to
|
|
105
|
+
ask:
|
|
106
|
+
mode: form
|
|
107
|
+
form:
|
|
108
|
+
title: Where is the Storybook?
|
|
109
|
+
fields:
|
|
110
|
+
- key: storybookUrl
|
|
111
|
+
label: Public Storybook URL (https)
|
|
112
|
+
type: url
|
|
113
|
+
required: false
|
|
114
|
+
help: Leave it empty when the Storybook is private; a computer of yours then builds it and uploads it to the pod after each push.
|
|
115
|
+
- key: app
|
|
116
|
+
name: Which app
|
|
117
|
+
category: started
|
|
118
|
+
goal: Read the Storybook answer (a URL must be https; an empty answer means a computer uploads). Ask nothing yourself; when your turn ends the pod asks which app or project the Storybook belongs to.
|
|
119
|
+
endAsk:
|
|
120
|
+
label: Which app the Storybook belongs to
|
|
121
|
+
why: Every component, page and flow is recorded as part of one app.
|
|
122
|
+
unblocks: The run asks which brand identity the Storybook expresses
|
|
123
|
+
ask:
|
|
124
|
+
mode: form
|
|
125
|
+
form:
|
|
126
|
+
title: Which app or project is it?
|
|
127
|
+
fields:
|
|
128
|
+
- key: app
|
|
129
|
+
label: The app (or project) this Storybook belongs to, by name
|
|
130
|
+
type: text
|
|
131
|
+
required: true
|
|
132
|
+
help: One of the apps listed above. A new name becomes a new app once you approve it.
|
|
133
|
+
- key: brand
|
|
134
|
+
name: Which brand identity
|
|
135
|
+
category: started
|
|
136
|
+
goal: Resolve the app the person named (an existing devplane_app first, never a twin; a new one through a proposal filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.
|
|
137
|
+
criteria:
|
|
138
|
+
- key: app-resolved-once
|
|
139
|
+
statement: The named app resolves to exactly one devplane_app, an existing one or one proposed in this run; no second record of an existing app was created.
|
|
140
|
+
check: { kind: judge }
|
|
141
|
+
endAsk:
|
|
142
|
+
label: Which brand identity it expresses
|
|
143
|
+
why: The sync source names the brand identity, so reviews and designs read the right brand.
|
|
144
|
+
unblocks: The run connects the Storybook and starts its first sync
|
|
145
|
+
ask:
|
|
146
|
+
mode: form
|
|
147
|
+
form:
|
|
148
|
+
title: Which brand identity?
|
|
149
|
+
fields:
|
|
150
|
+
- key: brand
|
|
151
|
+
label: The brand identity this Storybook expresses, by name
|
|
152
|
+
type: text
|
|
153
|
+
required: false
|
|
154
|
+
help: From the Brand space. Leave it empty to connect the Storybook without a brand.
|
|
155
|
+
- key: connect
|
|
156
|
+
name: Connect and first sync
|
|
157
|
+
category: started
|
|
158
|
+
goal: "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: hand the step to the person's computer (hand-off skill): build Storybook, write a synap.storybook-bundle/v1 file, upload it to the pod, run storybook.sync with bundleFileId, appId and brandIdentityId. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly."
|
|
159
|
+
criteria:
|
|
160
|
+
- key: sync-ran-with-answers
|
|
161
|
+
statement: storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason.
|
|
162
|
+
check: { kind: judge }
|
|
163
|
+
- key: brand-only-on-source
|
|
164
|
+
statement: The brand identity was passed to storybook.sync only; no mirrored record was written by hand.
|
|
165
|
+
check: { kind: judge }
|
|
166
|
+
- key: keep-current
|
|
167
|
+
name: Keep it current
|
|
168
|
+
category: completed
|
|
169
|
+
goal: "A URL: file a daily automation (create_automation, cron) whose one capability step runs storybook.sync with the same url, appId and brandIdentityId. A computer: record on the session that the build, upload and sync run after each push to the app's main, and on which computer. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused)."
|
|
170
|
+
criteria:
|
|
171
|
+
- key: sync-kept-current
|
|
172
|
+
statement: For a URL a daily storybook.sync automation is filed with the same three values; for a computer the session names the computer and the push that triggers the upload.
|
|
173
|
+
check: { kind: judge }
|
package/src/templates.ts
CHANGED
|
@@ -17982,6 +17982,185 @@ const DATA = {
|
|
|
17982
17982
|
"manage_file"
|
|
17983
17983
|
]
|
|
17984
17984
|
},
|
|
17985
|
+
"design-system": {
|
|
17986
|
+
"meta": {
|
|
17987
|
+
"slug": "design-system",
|
|
17988
|
+
"domain": "build",
|
|
17989
|
+
"name": "Design system on Synap",
|
|
17990
|
+
"description": "Mirror an app's Storybook into your pod — every component, page and user flow as a record with its screenshot, status and what it is made of — review the ones that change with the design-critique rubric, and tie it to your brand identity. Setup asks three things, one at a time.",
|
|
17991
|
+
"icon": "layout-template",
|
|
17992
|
+
"color": "#7C3AED",
|
|
17993
|
+
"tags": [
|
|
17994
|
+
"suite",
|
|
17995
|
+
"design",
|
|
17996
|
+
"storybook",
|
|
17997
|
+
"ui",
|
|
17998
|
+
"builder",
|
|
17999
|
+
"brand"
|
|
18000
|
+
],
|
|
18001
|
+
"isPublic": true
|
|
18002
|
+
},
|
|
18003
|
+
"dependencies": [
|
|
18004
|
+
{
|
|
18005
|
+
"slug": "builder-workspace",
|
|
18006
|
+
"kind": "workspace",
|
|
18007
|
+
"relation": "require",
|
|
18008
|
+
"reason": "The kinds the Storybook becomes (ui-component, ui-page, user-flow, the app), the review and design playbooks, and the design-critique rubric. Must resolve first: the setup process lands here."
|
|
18009
|
+
},
|
|
18010
|
+
{
|
|
18011
|
+
"slug": "brand-library",
|
|
18012
|
+
"kind": "workspace",
|
|
18013
|
+
"relation": "require",
|
|
18014
|
+
"reason": "The brand identity the Storybook expresses; the sync source names it."
|
|
18015
|
+
},
|
|
18016
|
+
{
|
|
18017
|
+
"slug": "storybook",
|
|
18018
|
+
"kind": "capability",
|
|
18019
|
+
"relation": "require",
|
|
18020
|
+
"reason": "storybook.sync mirrors the Storybook into the records; storybook.changed lists the components changed since their last review."
|
|
18021
|
+
}
|
|
18022
|
+
],
|
|
18023
|
+
"workspace": {
|
|
18024
|
+
"name": "Design system on Synap",
|
|
18025
|
+
"description": "Setting up an app's Storybook as pod records, layered onto the Dev space."
|
|
18026
|
+
},
|
|
18027
|
+
"profiles": [],
|
|
18028
|
+
"playbooks": [
|
|
18029
|
+
{
|
|
18030
|
+
"name": "Set up a design system",
|
|
18031
|
+
"description": "Connect one app's Storybook to the pod in three questions asked one at a time: where the Storybook is (a public URL, or a computer that builds and uploads it), which app or project it belongs to, and which brand identity it expresses. Ends with the first sync's import proposal filed for the person and the sync kept current.",
|
|
18032
|
+
"goalTemplate": "Set up the design system of one app on this pod. Load the designing-with-real-components skill first. The pod asks the person three things, one per stage, when your turn ends that stage: never ask them yourself and never ask two at once. WHERE: read what the pod already has (the apps, the brand identities, any ui-component records and the app they belong to) and list the apps and brand identities by name, so the next answers can name one. APP: resolve the app the person named (an existing devplane_app first; never a second record for one that exists; a new one is created through a proposal, filed into the person's project). BRAND: resolve the brand identity they named (brand-identity, Brand space); none named: the source carries none. CONNECT: a public https URL → run storybook.sync with url, appId and brandIdentityId; a computer → hand the build-and-upload step to the person's computer (hand-off skill): it builds Storybook, writes a synap.storybook-bundle/v1 file, uploads it to the pod and runs storybook.sync with bundleFileId, appId and brandIdentityId. The first run of a source is ONE import proposal the person approves; never write the records yourself. KEEP CURRENT: the pod does not re-sync a Storybook on its own; for a URL, file a daily automation that runs storybook.sync with the same three values; for a computer, the same build, upload and sync runs after each push to the app's main. The brand identity goes only to storybook.sync (the source's config), never onto the records.",
|
|
18033
|
+
"executor": "is-agent",
|
|
18034
|
+
"status": "active",
|
|
18035
|
+
"stages": [
|
|
18036
|
+
{
|
|
18037
|
+
"key": "where",
|
|
18038
|
+
"name": "Where the Storybook is",
|
|
18039
|
+
"category": "planned",
|
|
18040
|
+
"goal": "Read the pod's apps (devplane_app), brand identities (brand-identity) and any ui-component records with the app they belong to, and list the apps and brand identities by name in your message. Ask nothing yourself; when your turn ends the pod asks where the Storybook is.",
|
|
18041
|
+
"endAsk": {
|
|
18042
|
+
"label": "Where the Storybook is",
|
|
18043
|
+
"why": "The pod reads a public Storybook over https, or a bundle a computer of yours builds and uploads after each push.",
|
|
18044
|
+
"unblocks": "The run asks which app the Storybook belongs to",
|
|
18045
|
+
"ask": {
|
|
18046
|
+
"mode": "form",
|
|
18047
|
+
"form": {
|
|
18048
|
+
"title": "Where is the Storybook?",
|
|
18049
|
+
"fields": [
|
|
18050
|
+
{
|
|
18051
|
+
"key": "storybookUrl",
|
|
18052
|
+
"label": "Public Storybook URL (https)",
|
|
18053
|
+
"type": "url",
|
|
18054
|
+
"required": false,
|
|
18055
|
+
"help": "Leave it empty when the Storybook is private; a computer of yours then builds it and uploads it to the pod after each push."
|
|
18056
|
+
}
|
|
18057
|
+
]
|
|
18058
|
+
}
|
|
18059
|
+
}
|
|
18060
|
+
}
|
|
18061
|
+
},
|
|
18062
|
+
{
|
|
18063
|
+
"key": "app",
|
|
18064
|
+
"name": "Which app",
|
|
18065
|
+
"category": "started",
|
|
18066
|
+
"goal": "Read the Storybook answer (a URL must be https; an empty answer means a computer uploads). Ask nothing yourself; when your turn ends the pod asks which app or project the Storybook belongs to.",
|
|
18067
|
+
"endAsk": {
|
|
18068
|
+
"label": "Which app the Storybook belongs to",
|
|
18069
|
+
"why": "Every component, page and flow is recorded as part of one app.",
|
|
18070
|
+
"unblocks": "The run asks which brand identity the Storybook expresses",
|
|
18071
|
+
"ask": {
|
|
18072
|
+
"mode": "form",
|
|
18073
|
+
"form": {
|
|
18074
|
+
"title": "Which app or project is it?",
|
|
18075
|
+
"fields": [
|
|
18076
|
+
{
|
|
18077
|
+
"key": "app",
|
|
18078
|
+
"label": "The app (or project) this Storybook belongs to, by name",
|
|
18079
|
+
"type": "text",
|
|
18080
|
+
"required": true,
|
|
18081
|
+
"help": "One of the apps listed above. A new name becomes a new app once you approve it."
|
|
18082
|
+
}
|
|
18083
|
+
]
|
|
18084
|
+
}
|
|
18085
|
+
}
|
|
18086
|
+
}
|
|
18087
|
+
},
|
|
18088
|
+
{
|
|
18089
|
+
"key": "brand",
|
|
18090
|
+
"name": "Which brand identity",
|
|
18091
|
+
"category": "started",
|
|
18092
|
+
"goal": "Resolve the app the person named (an existing devplane_app first, never a twin; a new one through a proposal filed into their project). Ask nothing yourself; when your turn ends the pod asks which brand identity the Storybook expresses.",
|
|
18093
|
+
"criteria": [
|
|
18094
|
+
{
|
|
18095
|
+
"key": "app-resolved-once",
|
|
18096
|
+
"statement": "The named app resolves to exactly one devplane_app, an existing one or one proposed in this run; no second record of an existing app was created.",
|
|
18097
|
+
"check": {
|
|
18098
|
+
"kind": "judge"
|
|
18099
|
+
}
|
|
18100
|
+
}
|
|
18101
|
+
],
|
|
18102
|
+
"endAsk": {
|
|
18103
|
+
"label": "Which brand identity it expresses",
|
|
18104
|
+
"why": "The sync source names the brand identity, so reviews and designs read the right brand.",
|
|
18105
|
+
"unblocks": "The run connects the Storybook and starts its first sync",
|
|
18106
|
+
"ask": {
|
|
18107
|
+
"mode": "form",
|
|
18108
|
+
"form": {
|
|
18109
|
+
"title": "Which brand identity?",
|
|
18110
|
+
"fields": [
|
|
18111
|
+
{
|
|
18112
|
+
"key": "brand",
|
|
18113
|
+
"label": "The brand identity this Storybook expresses, by name",
|
|
18114
|
+
"type": "text",
|
|
18115
|
+
"required": false,
|
|
18116
|
+
"help": "From the Brand space. Leave it empty to connect the Storybook without a brand."
|
|
18117
|
+
}
|
|
18118
|
+
]
|
|
18119
|
+
}
|
|
18120
|
+
}
|
|
18121
|
+
}
|
|
18122
|
+
},
|
|
18123
|
+
{
|
|
18124
|
+
"key": "connect",
|
|
18125
|
+
"name": "Connect and first sync",
|
|
18126
|
+
"category": "started",
|
|
18127
|
+
"goal": "Resolve the brand identity the person named (brand-identity in the Brand space; empty: none). A URL: run storybook.sync with url, appId and brandIdentityId. A computer: hand the step to the person's computer (hand-off skill): build Storybook, write a synap.storybook-bundle/v1 file, upload it to the pod, run storybook.sync with bundleFileId, appId and brandIdentityId. The first run is one import proposal for the person; a refused or failed sync is reported with its reason, never retried blindly.",
|
|
18128
|
+
"criteria": [
|
|
18129
|
+
{
|
|
18130
|
+
"key": "sync-ran-with-answers",
|
|
18131
|
+
"statement": "storybook.sync ran once with the person's source (url, or a bundle file a computer uploaded), the resolved appId and, when one was named, the brandIdentityId, and its import proposal is filed or its refusal is reported with the reason.",
|
|
18132
|
+
"check": {
|
|
18133
|
+
"kind": "judge"
|
|
18134
|
+
}
|
|
18135
|
+
},
|
|
18136
|
+
{
|
|
18137
|
+
"key": "brand-only-on-source",
|
|
18138
|
+
"statement": "The brand identity was passed to storybook.sync only; no mirrored record was written by hand.",
|
|
18139
|
+
"check": {
|
|
18140
|
+
"kind": "judge"
|
|
18141
|
+
}
|
|
18142
|
+
}
|
|
18143
|
+
]
|
|
18144
|
+
},
|
|
18145
|
+
{
|
|
18146
|
+
"key": "keep-current",
|
|
18147
|
+
"name": "Keep it current",
|
|
18148
|
+
"category": "completed",
|
|
18149
|
+
"goal": "A URL: file a daily automation (create_automation, cron) whose one capability step runs storybook.sync with the same url, appId and brandIdentityId. A computer: record on the session that the build, upload and sync run after each push to the app's main, and on which computer. Then say how the weekly review of changed components is turned on (the schedule of Review a UI component is installed paused).",
|
|
18150
|
+
"criteria": [
|
|
18151
|
+
{
|
|
18152
|
+
"key": "sync-kept-current",
|
|
18153
|
+
"statement": "For a URL a daily storybook.sync automation is filed with the same three values; for a computer the session names the computer and the push that triggers the upload.",
|
|
18154
|
+
"check": {
|
|
18155
|
+
"kind": "judge"
|
|
18156
|
+
}
|
|
18157
|
+
}
|
|
18158
|
+
]
|
|
18159
|
+
}
|
|
18160
|
+
]
|
|
18161
|
+
}
|
|
18162
|
+
]
|
|
18163
|
+
},
|
|
17985
18164
|
"ecosystem": {
|
|
17986
18165
|
"meta": {
|
|
17987
18166
|
"slug": "ecosystem",
|