@pylonsync/create-pylon 0.3.319 → 0.3.321

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pylonsync/create-pylon",
3
- "version": "0.3.319",
3
+ "version": "0.3.321",
4
4
  "description": "Scaffold a new Pylon app — realtime backend + web/mobile/expo frontends in one command. Run via `npm create @pylonsync/pylon@latest`.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -110,7 +110,7 @@ export function AuthForm({ mode }: { mode: "login" | "signup" }) {
110
110
  {mode === "signup" ? (
111
111
  <p className="text-[12px] leading-snug text-zinc-500">
112
112
  By joining, you agree to our{" "}
113
- <a href="/company/privacy" className="underline underline-offset-2">
113
+ <a href="/company/terms" className="underline underline-offset-2">
114
114
  Terms
115
115
  </a>{" "}
116
116
  &amp;{" "}
@@ -382,7 +382,7 @@ function MembersList({
382
382
  </span>
383
383
  )}
384
384
  </div>
385
- {m.name && m.email && (
385
+ {m.name && m.email && m.name !== m.email && (
386
386
  <div className="truncate text-xs text-zinc-500">
387
387
  {m.email}
388
388
  </div>
@@ -700,8 +700,13 @@ function BillingView({
700
700
  await fn();
701
701
  } catch (e) {
702
702
  const msg = e instanceof Error ? e.message : String(e);
703
+ // A missing STRIPE_PRICE_PRO surfaces as "plan pro has no monthly
704
+ // priceId" rather than STRIPE_NOT_CONFIGURED, so treat the price/config
705
+ // errors the same — both mean "finish the Stripe setup".
703
706
  setError(
704
- /not.?configured|STRIPE_NOT_CONFIGURED/i.test(msg)
707
+ /not.?configured|STRIPE_NOT_CONFIGURED|no monthly price|priceId/i.test(
708
+ msg,
709
+ )
705
710
  ? "Stripe isn't configured yet — set STRIPE_SECRET_KEY + STRIPE_PRICE_PRO to enable billing."
706
711
  : msg,
707
712
  );
@@ -665,6 +665,18 @@ export const siteConfig: SiteConfig = {
665
665
  { title: "Your control", body: "Export or delete your data at any time." },
666
666
  ],
667
667
  },
668
+ {
669
+ slug: "terms",
670
+ navLabel: "Terms",
671
+ eyebrow: "Company",
672
+ title: "Terms of Service.",
673
+ summary: "The rules for using Acme, in plain language.",
674
+ sections: [
675
+ { title: "Using Acme", body: "Use it for lawful work; don't abuse the service or other customers." },
676
+ { title: "Your content", body: "You own your data — you grant us only what's needed to run the product for you." },
677
+ { title: "Changes & cancellation", body: "Cancel anytime; we give notice before any material change to these terms." },
678
+ ],
679
+ },
668
680
  ],
669
681
 
670
682
  // Generic, made-up competitors so the template ships no real brand names.