@vibes.diy/prompts 14.3.218 → 14.3.220

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.
@@ -42,6 +42,13 @@ they reach the live app only when the owner asks for the examples. A new price
42
42
  applies to people who join from then on: Stripe keeps billing each current
43
43
  member the price they joined at.
44
44
 
45
+ The owner's Setup and Members each get their own page, reached from owner-only buttons in the app's header, so the club page stays the page members read.
46
+
47
+ **Plans** is a page of its own too, beside them: the owner opens **Setup** to
48
+ finish connecting Stripe, **Members** to see every subscriber and where each
49
+ one stands, and **Plans** to change the list, each from one press in the
50
+ header. A visitor sees none of those buttons.
51
+
45
52
  A page that sells both — monthly coffee plans and single bags — takes both
46
53
  skills: the bags are products on the `stripe` skill's catalog and checkout,
47
54
  the plans are this recipe, and each keeps its own records.
@@ -1002,8 +1009,9 @@ export default function App() {
1002
1009
  <Stack>
1003
1010
  <Row gap={2}>
1004
1011
  <Button variant="quiet" onClick={() => setPicked("club")}>The club</Button>
1005
- {/* The owner's own screens: the plans, and Setup highlighted while an item is still to do. */}
1012
+ {/* The owner's own pages: the plans, every member, and Setup highlighted while an item is still to do. */}
1006
1013
  {setup?.owner && <Button variant="quiet" onClick={() => setPicked("plans")}>Plans</Button>}
1014
+ {setup?.owner && <Button variant="quiet" onClick={() => setPicked("members")}>Members</Button>}
1007
1015
  {setup?.owner && (
1008
1016
  <Button variant={ready ? "quiet" : "solid"} onClick={() => setPicked("setup")}>
1009
1017
  Setup{ready ? "" : " · to do"}
@@ -1014,6 +1022,19 @@ export default function App() {
1014
1022
  <SetupScreen setup={setup} />
1015
1023
  ) : screen === "plans" && setup?.owner ? (
1016
1024
  <Plans plans={plans} onAdd={() => setPicked("plans")} />
1025
+ ) : screen === "members" && setup?.owner ? (
1026
+ <Stack>
1027
+ <Heading>Members</Heading>
1028
+ {memberships.length === 0 ? (
1029
+ <Text muted>No members yet. Each one shows here the moment they join.</Text>
1030
+ ) : (
1031
+ <ul>
1032
+ {memberships.map((m) => (
1033
+ <li key={m._id}>@{m.memberHandle} · {m.mode} · {m.plan} · {m.interval ? `${money(m.amount, m.currency)} a ${m.interval} · ` : ""}{m.status}{m.entitled ? " · entitled" : ""}{m.currentPeriodEnd ? ` · until ${new Date(m.currentPeriodEnd).toLocaleDateString()}` : ""}</li>
1034
+ ))}
1035
+ </ul>
1036
+ )}
1037
+ </Stack>
1017
1038
  ) : (
1018
1039
  <Stack>
1019
1040
  <Heading>The club</Heading>
@@ -1063,13 +1084,6 @@ export default function App() {
1063
1084
  <li key={p._id}>{p.membersOnly && <Badge tone="info">Members</Badge>} {p.title}</li>
1064
1085
  ))}
1065
1086
  </ul>
1066
- {setup?.owner && (
1067
- <ul>
1068
- {memberships.map((m) => (
1069
- <li key={m._id}>@{m.memberHandle} · {m.mode} · {m.plan} · {m.interval ? `${money(m.amount, m.currency)} a ${m.interval} · ` : ""}{m.status}{m.entitled ? " · entitled" : ""}{m.currentPeriodEnd ? ` · until ${new Date(m.currentPeriodEnd).toLocaleDateString()}` : ""}</li>
1070
- ))}
1071
- </ul>
1072
- )}
1073
1087
  </Stack>
1074
1088
  )}
1075
1089
  </Stack>
@@ -1080,5 +1094,5 @@ export default function App() {
1080
1094
  The posts list shows only what the viewer can read: a member sees the
1081
1095
  members-only posts because the grant on their membership record admits them to the
1082
1096
  `members` channel, and a lapsed member sees the public ones and the Join
1083
- button. The owner's roster at the bottom is the app's mirror of Stripe; the
1097
+ button. The owner's roster on **Members** is the app's mirror of Stripe; the
1084
1098
  two agree because the app only ever copies Stripe's answer.
package/llms/stripe.md CHANGED
@@ -59,6 +59,12 @@ the live app only when the owner asks for the examples, and the owner prices
59
59
  them there like any other. A price change applies to the next purchase; an
60
60
  order keeps the price it was made at.
61
61
 
62
+ The owner's Setup and Orders each get their own page, reached from owner-only buttons in the app's header, so the shop page stays the page buyers shop on.
63
+
64
+ Products is a page of its own too, beside them: the owner opens **Setup** to finish connecting Stripe, **Orders**
65
+ to see every order and subscriber, and **Products** to change the list, each
66
+ from one press in the header. A buyer sees none of those buttons.
67
+
62
68
  **Who pays: a guest, unless the record is theirs to keep.**
63
69
 
64
70
  A payment to a venue is guest checkout: the payer needs no Vibes DIY account, the payment record is keyed to the thing being paid and its Checkout Session, and backend.js writes it on the guest's behalf.
@@ -912,8 +918,9 @@ export default function App() {
912
918
  <Stack>
913
919
  <Row gap={2}>
914
920
  <Button variant="quiet" onClick={() => setPicked("shop")}>Shop</Button>
915
- {/* The owner's own screens: the catalog, and Setup highlighted while an item is still to do. */}
921
+ {/* The owner's own pages: the catalog, every order, and Setup highlighted while an item is still to do. */}
916
922
  {setup?.owner && <Button variant="quiet" onClick={() => setPicked("products")}>Products</Button>}
923
+ {setup?.owner && <Button variant="quiet" onClick={() => setPicked("orders")}>Orders</Button>}
917
924
  {setup?.owner && (
918
925
  <Button variant={ready ? "quiet" : "solid"} onClick={() => setPicked("setup")}>
919
926
  Setup{ready ? "" : " · to do"}
@@ -924,6 +931,19 @@ export default function App() {
924
931
  <SetupScreen setup={setup} />
925
932
  ) : screen === "products" && setup?.owner ? (
926
933
  <Products products={products} onAdd={() => setPicked("products")} />
934
+ ) : screen === "orders" && setup?.owner ? (
935
+ <Stack>
936
+ <Heading>Orders</Heading>
937
+ {orders.length === 0 ? (
938
+ <Text muted>No orders yet. Each one shows here the moment someone pays.</Text>
939
+ ) : (
940
+ <ul>
941
+ {orders.map((o) => (
942
+ <li key={o._id}>@{o.buyerHandle} · {o.title} · {money(o.amount, o.currency)} · {o.status}{o.mode === setup.mode ? "" : ` · ${o.mode} rehearsal`}</li>
943
+ ))}
944
+ </ul>
945
+ )}
946
+ </Stack>
927
947
  ) : (
928
948
  <Stack>
929
949
  <Heading>Shop</Heading>
@@ -969,13 +989,6 @@ export default function App() {
969
989
  ))}
970
990
  </ul>
971
991
  )}
972
- {setup?.owner && (
973
- <ul>
974
- {orders.map((o) => (
975
- <li key={o._id}>@{o.buyerHandle} · {o.title} · {money(o.amount, o.currency)} · {o.status}{o.mode === setup.mode ? "" : ` · ${o.mode} rehearsal`}</li>
976
- ))}
977
- </ul>
978
- )}
979
992
  </Stack>
980
993
  )}
981
994
  </Stack>
@@ -1002,6 +1015,12 @@ storefront's own browser-written order goes away. Checkout charges the lines,
1002
1015
  so the storefront's shipping row goes too, unless backend.js prices shipping as
1003
1016
  a line of its own.
1004
1017
 
1018
+ A shop with a bag shows the bag in the app's header: a link that carries the bag's live item count and jumps down to the bag or opens it as its own tab, so every Add to bag shows it landed.
1019
+
1020
+ The header link reads like *Bag (3)*, its count is the sum of the quantities,
1021
+ and it sits in the `Navbar` beside the owner's **Products** button, on every
1022
+ screen where people shop.
1023
+
1005
1024
  ```jsx
1006
1025
  // The storefront's `lines` already leave out anything taken off sale. Its lead sends each line's
1007
1026
  // product and quantity; the backend prices every line from the catalog, so the page's sum is a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "14.3.218",
3
+ "version": "14.3.220",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "exports": {
@@ -39,10 +39,10 @@
39
39
  "license": "Apache-2.0",
40
40
  "dependencies": {
41
41
  "@adviser/cement": "~0.5.34",
42
- "@vibes.diy/api-types": "14.3.218",
43
- "@vibes.diy/call-ai-v2": "14.3.218",
44
- "@vibes.diy/identity": "14.3.218",
45
- "@vibes.diy/use-vibes-types": "14.3.218",
42
+ "@vibes.diy/api-types": "14.3.220",
43
+ "@vibes.diy/call-ai-v2": "14.3.220",
44
+ "@vibes.diy/identity": "14.3.220",
45
+ "@vibes.diy/use-vibes-types": "14.3.220",
46
46
  "arktype": "~2.2.8",
47
47
  "json-schema-faker": "~0.6.3"
48
48
  },