@milesroxas/design-hub 0.6.0 → 0.6.2
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 +3 -3
- package/core/review/model.ts +12 -8
- package/core/review/policy.test.ts +60 -0
- package/core/review/policy.ts +13 -9
- package/core/review/service.test.ts +84 -44
- package/core/review/store.ts +11 -5
- package/dist/core/review/model.d.ts +6 -5
- package/dist/core/review/model.js +10 -6
- package/dist/core/review/policy.d.ts +4 -1
- package/dist/core/review/policy.js +4 -4
- package/dist/core/review/store.d.ts +3 -4
- package/dist/core/review/store.js +10 -5
- package/dist/scripts/bootstrap.js +1 -1
- package/dist/scripts/lib/review.js +3 -3
- package/dist/scripts/people.d.ts +4 -4
- package/dist/scripts/people.js +8 -8
- package/dist/scripts/share.js +1 -1
- package/dist/server/api.js +1 -1
- package/dist/server/dev.js +3 -3
- package/dist/server/local.d.ts +2 -2
- package/dist/server/local.js +4 -4
- package/kit/dials.css +9 -8
- package/kit/dials.tsx +39 -20
- package/kit/ui/Menu.tsx +14 -4
- package/kit/ui/ui.css +16 -3
- package/package.json +1 -1
- package/shell/review/Bar.tsx +5 -4
- package/shell/review/People.tsx +21 -15
- package/shell/review/Review.tsx +2 -1
- package/shell/review/ThreadCard.tsx +24 -21
- package/shell/review/client.ts +4 -4
- package/shell/review/review.css +7 -1
- package/skills/miles-deploy/SKILL.md +4 -4
- package/skills/miles-design-hub/SKILL.md +1 -1
- package/skills/miles-review/SKILL.md +2 -2
package/shell/review/review.css
CHANGED
|
@@ -89,6 +89,9 @@
|
|
|
89
89
|
.rv .btn-label { line-height: 18px; }
|
|
90
90
|
.rv .input,
|
|
91
91
|
.rv .select { height: 32px; padding: 0 10px; }
|
|
92
|
+
/* A 32px control carries a 16px chevron, the check's size and stroke, with its ink over the check in the list below. */
|
|
93
|
+
.rv .select { padding-right: 9px; }
|
|
94
|
+
.rv .select-chevron { width: 16px; height: 16px; }
|
|
92
95
|
.rv .field-label { color: var(--harness-fg-muted); font-weight: 400; }
|
|
93
96
|
/* A 32px control reaches 44px for a finger. */
|
|
94
97
|
@media (pointer: coarse) {
|
|
@@ -96,7 +99,10 @@
|
|
|
96
99
|
.rv .btn::before { content: ''; position: absolute; inset: -6px -2px; }
|
|
97
100
|
}
|
|
98
101
|
|
|
99
|
-
|
|
102
|
+
/* On the dark material the raised shadow already draws the edge as one ring: a border beside it doubles the line. */
|
|
103
|
+
.menu.rv-menu { z-index: calc(var(--rv-z) + 2); border: 0; }
|
|
104
|
+
.rv-menu .menu-item:has(.menu-desc) { padding: 8px; }
|
|
105
|
+
.rv-menu[role="listbox"] .menu-item { padding-inline: 7px; }
|
|
100
106
|
.rv-menu .menu-item { padding: 6px 8px; min-height: 32px; }
|
|
101
107
|
.rv-menu .menu-header { padding: 8px 8px 2px; }
|
|
102
108
|
.rv-menu .menu-header:not(:first-child) { margin-top: 4px; }
|
|
@@ -56,17 +56,17 @@ Signed in, it prints `signedIn: true` and the account. Signed out, it starts the
|
|
|
56
56
|
|
|
57
57
|
## Comments
|
|
58
58
|
|
|
59
|
-
Ask the user once whether reviewers should comment on the link; ask before the first deploy, so one `bootstrap` carries `--review`. If yes, `--review [--typesafe-key <key>]` adds Upstash Redis to the project through the Vercel Marketplace and copies the store's credentials into `.env`. The first time on a team it can stop on the Marketplace terms. Send the user the message in its `fix` as written: it links that team's terms page, names the one product to pick (**Upstash for Redis**, Redis Compatible Database) when Vercel lists several, and tells them not to create a database there, since the rerun creates the store and connects it. Rerun when they say it is done; if `stderr` shows another cause, show it to them instead. With TypeSafe on, comments are sorted by kind and state as they arrive. `pnpm share` after it, so the env reaches the site, then invite the first
|
|
59
|
+
Ask the user once whether reviewers should comment on the link; ask before the first deploy, so one `bootstrap` carries `--review`. If yes, `--review [--typesafe-key <key>]` adds Upstash Redis to the project through the Vercel Marketplace and copies the store's credentials into `.env`. The first time on a team it can stop on the Marketplace terms. Send the user the message in its `fix` as written: it links that team's terms page, names the one product to pick (**Upstash for Redis**, Redis Compatible Database) when Vercel lists several, and tells them not to create a database there, since the rerun creates the store and connects it. Rerun when they say it is done; if `stderr` shows another cause, show it to them instead. With TypeSafe on, comments are sorted by kind and state as they arrive. `pnpm share` after it, so the env reaches the site, then invite the first Studio person:
|
|
60
60
|
|
|
61
61
|
```bash
|
|
62
|
-
pnpm people invite --name "<user>" --team "<studio>" --
|
|
62
|
+
pnpm people invite --name "<user>" --team "<studio>" --kind studio --site <share.url>
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
Send them the link; from then on,
|
|
65
|
+
Send them the link; from then on, Studio invites everyone else from the People tab. `miles-review` owns working from the comments.
|
|
66
66
|
|
|
67
67
|
## Rotating access
|
|
68
68
|
|
|
69
|
-
- **
|
|
69
|
+
- **Someone leaves:** revoke them in the People tab, or `pnpm people revoke <id>`. Their sessions end on their next page load.
|
|
70
70
|
- **The shared password leaked:** `pnpm bootstrap --vercel <project> --gate-password <new>`, then `pnpm share`. Every password visitor signs in again; invited people are not affected.
|
|
71
71
|
|
|
72
72
|
## Security, never weakened for a prototype
|
|
@@ -90,7 +90,7 @@ The user does nothing in a terminal here; each step that needs them is one link
|
|
|
90
90
|
2. `vercel teams ls`; with more than one team, ask which with the question tool (personal account first when it is listed).
|
|
91
91
|
3. `pnpm --dir <path> bootstrap --vercel <name> --team <team-slug>`, plus `--review` for comments. It links the project, connects the GitHub repo, sets the password and turns Vercel's own login off. A first `--review` on a team can stop on the Marketplace terms: send the user the message in `fix` as written (it names **Upstash for Redis** as the product to pick), then rerun.
|
|
92
92
|
4. `pnpm --dir <path> share --cli`. `--cli` uploads the folder, since the setup may have left files uncommitted; later deploys push `main`. On `ok: false`, follow `stage` and `fix` (the pre-flight steps are in `miles-deploy`).
|
|
93
|
-
5. With comments: `pnpm --dir <path> people invite --name "<user>" --
|
|
93
|
+
5. With comments: `pnpm --dir <path> people invite --name "<user>" --kind studio --site <share.url>`.
|
|
94
94
|
|
|
95
95
|
Give the user `share.url`, `share.password` and the invite link in the closing message, and say the link shows the samples until the first feature replaces them.
|
|
96
96
|
|
|
@@ -28,9 +28,9 @@ Each comment is pinned to a prototype, its state (the URL and every dial value)
|
|
|
28
28
|
|
|
29
29
|
## People
|
|
30
30
|
|
|
31
|
-
- **
|
|
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 invites 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
|
|
33
|
+
- The first Studio person comes from `pnpm people invite --name <n> --team <t> --kind studio --site <url>`; after that, Studio invites from the People tab.
|
|
34
34
|
- A link works for 14 days. `pnpm people reissue <id>` replaces it and signs that person out everywhere; `revoke` ends their access on their next page load.
|
|
35
35
|
- Never paste an invite link into a commit, a document, a ticket or a comment. Why: anyone holding it signs in as that person.
|
|
36
36
|
|