@milesroxas/design-hub 0.6.2 → 0.7.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 +16 -6
- package/core/review/model.ts +82 -6
- package/core/review/policy.test.ts +2 -0
- package/core/review/policy.ts +2 -2
- package/core/review/service.test.ts +397 -27
- package/core/review/service.ts +168 -36
- package/core/review/store.ts +22 -4
- package/dist/core/review/model.d.ts +35 -4
- package/dist/core/review/model.js +66 -4
- package/dist/core/review/service.d.ts +24 -6
- package/dist/core/review/service.js +155 -36
- package/dist/core/review/store.d.ts +15 -4
- package/dist/core/review/store.js +19 -3
- package/dist/scripts/bootstrap.d.ts +16 -14
- package/dist/scripts/bootstrap.js +56 -39
- package/dist/scripts/lib/deploy.d.ts +12 -4
- package/dist/scripts/lib/deploy.js +47 -13
- package/dist/scripts/lib/vercel.d.ts +8 -2
- package/dist/scripts/lib/vercel.js +23 -9
- package/dist/scripts/people.d.ts +13 -26
- package/dist/scripts/people.js +68 -35
- package/dist/scripts/preflight.js +2 -2
- package/dist/scripts/share.d.ts +2 -3
- package/dist/scripts/share.js +18 -10
- package/dist/server/api.d.ts +6 -2
- package/dist/server/api.js +53 -22
- package/dist/server/fake-upstash.js +3 -2
- package/dist/server/local.js +2 -0
- package/dist/server/session.d.ts +25 -10
- package/dist/server/session.js +69 -52
- package/dist/server/upstash.js +4 -3
- package/dist/vercel/proxy.d.ts +5 -3
- package/dist/vercel/proxy.js +183 -157
- package/dist/vite/plugin.js +5 -5
- package/package.json +2 -2
- package/shell/review/People.tsx +178 -45
- package/shell/review/Review.tsx +7 -7
- package/shell/review/client.ts +36 -17
- package/shell/review/review.css +2 -0
- package/skills/miles-deploy/SKILL.md +44 -16
- package/skills/miles-design-hub/SKILL.md +5 -5
- package/skills/miles-new-feature/SKILL.md +1 -1
- package/skills/miles-review/SKILL.md +7 -5
- package/skills/miles-worktrees/SKILL.md +1 -1
- package/templates/conductor/settings.toml +1 -1
- package/templates/guide.md +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: miles-review
|
|
3
|
-
description: "Work from review comments on the deployed prototypes: pull them into the repo, sort them by state and kind, act on each, resolve them, and manage who may comment. Load when the user mentions comments, feedback, review notes, a reviewer,
|
|
3
|
+
description: "Work from review comments on the deployed prototypes: pull them into the repo, sort them by state and kind, act on each, resolve them, and manage who may comment. Load when the user mentions comments, feedback, review notes, a reviewer, a sign-in link, or asks what the client said. Triggers on: comments, feedback, review notes, client notes, what did they say, reviewer, add someone, invite, sign-in link, new link, people, revoke, resolve, triage, pnpm comments, pnpm people."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Review
|
|
@@ -28,11 +28,13 @@ Each comment is pinned to a prototype, its state (the URL and every dial value)
|
|
|
28
28
|
|
|
29
29
|
## People
|
|
30
30
|
|
|
31
|
-
- Every person is **Studio** or **Client**. Both comment, reply, edit their own words, and resolve or reopen any thread. Studio also deletes any comment, sorts comments and
|
|
31
|
+
- Every person is **Studio** or **Client**. Both comment, reply, edit their own words, and resolve or reopen any thread. Studio also deletes any comment, sorts comments and manages people; a Client deletes only their own. The studio's team are Studio; everyone on the client's side is Client, the default.
|
|
32
32
|
- **Team** is the company: `Studio`, or the client's name. It shows beside every name, so a reviewer reads who said what.
|
|
33
|
-
- The first Studio person comes from `pnpm people
|
|
34
|
-
- A link
|
|
35
|
-
- Never paste
|
|
33
|
+
- The first Studio person comes from `pnpm people add --name <n> --team <t> --kind studio --site <url>`; after that, Studio adds people from the People tab.
|
|
34
|
+
- A link signs in one device, then stops working; unused, it lasts 14 days. `pnpm people link <id>` gives another for another device, `sign-out <id>` ends every session and gives one new link, and `revoke <id>` ends their access everywhere within five minutes. `miles-deploy` holds the rest: access length, the handover.
|
|
35
|
+
- Never paste a link into a commit, a document, a ticket or a comment. Why: whoever opens it first signs in as that person.
|
|
36
|
+
|
|
37
|
+
- A project that shared before one-time links lost its people and comments in the move: the new store starts empty. `miles-deploy` has the steps; comments pulled before stay in `comments.md`.
|
|
36
38
|
|
|
37
39
|
## The words in comments
|
|
38
40
|
|
|
@@ -16,7 +16,7 @@ pnpm dev
|
|
|
16
16
|
|
|
17
17
|
Nothing else is needed, in any harness. On its first start `pnpm dev` claims a free port for the folder and writes it to `.env` and `.claude/launch.json`; later starts reuse it. Both files are gitignored because they belong to the folder, so worktrees never conflict on them. `pnpm bootstrap` remains the full setup (TypeSafe key, Vercel) but is not needed to run.
|
|
18
18
|
|
|
19
|
-
Some harnesses copy `.env` from the main checkout. That is fine: the copied `PORT` is claimed by the other folder, so this folder gets its own and the dev server says so on stderr. The copied `
|
|
19
|
+
Some harnesses copy `.env` from the main checkout. That is fine: the copied `PORT` is claimed by the other folder, so this folder gets its own and the dev server says so on stderr. The copied `GATE_SECRET` and `TYPESAFE_API_KEY` keep working.
|
|
20
20
|
|
|
21
21
|
## Ports
|
|
22
22
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
# Each workspace installs the project and serves it on its own
|
|
7
7
|
# $CONDUCTOR_PORT; the dev server reads that port before .env's PORT. No
|
|
8
|
-
# secrets are copied in:
|
|
8
|
+
# secrets are copied in: GATE_SECRET is for Vercel only.
|
|
9
9
|
[scripts]
|
|
10
10
|
setup = """
|
|
11
11
|
git -C "$CONDUCTOR_ROOT_PATH" fetch --prune origin && git -C "$CONDUCTOR_ROOT_PATH" pull --ff-only || true
|
package/templates/guide.md
CHANGED
|
@@ -13,7 +13,7 @@ This guide walks every workflow and every state the prototype holds. Follow it t
|
|
|
13
13
|
|
|
14
14
|
## Before you start
|
|
15
15
|
|
|
16
|
-
1. **Open the prototype** in a desktop browser
|
|
16
|
+
1. **Open the prototype** in a desktop browser, with the sign-in link sent to you. It signs in one device, then stops working; for another device, ask for a new one.
|
|
17
17
|
2. **Find Controls.** The dark round button at the top of the page opens a panel that belongs to the prototype, not the product. It holds the switches a review needs; its last row, **Open the walkthrough**, brings this guide back in a new tab.
|
|
18
18
|
3. **Start clean.** Name the reset control, and say what persists in the browser until it is used.
|
|
19
19
|
|