generatesaas 3.32.1 → 3.33.1
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.
|
@@ -5,7 +5,7 @@ description: Redraw the site's social share card (apps/web/public/og.png, the Op
|
|
|
5
5
|
|
|
6
6
|
# OG image
|
|
7
7
|
|
|
8
|
-
The static card at `apps/web/public/og.png` is what every shared link to the site shows. It should be **the product**, not a template box: the theme's dark ground with a soft primary glow off the top edge, the square logo beside the site name, and the landing page's own hero panel
|
|
8
|
+
The static card at `apps/web/public/og.png` is what every shared link to the site shows. It should be **the product**, not a template box: the theme's dark ground with a soft primary glow off the top edge, the square logo beside the site name, and the landing page's own hero panel inside a realistic **browser window** that bleeds off the bottom edge: window chrome with the three traffic-light controls, an address bar showing the site's own domain (from `config.baseUrl`), rounded corners and a soft shadow. `pnpm og-image` builds it from the project's own files and the running site, so nothing in it is invented or eyeballed.
|
|
9
9
|
|
|
10
10
|
## When to run it
|
|
11
11
|
|
|
@@ -29,7 +29,7 @@ If the landing demo is out of date with the real app, fix the demo first: the ca
|
|
|
29
29
|
## Steps
|
|
30
30
|
|
|
31
31
|
1. **Run the web app** (`pnpm dev`, or point `--url` at the deployed site). The landing page must render; no sign-in is involved.
|
|
32
|
-
2. **Pick the panel.** The default `#hero` captures the landing hero. If the landing has a product panel of its own - a dashboard tour scene, a framed app screenshot with demo data - capture that instead: find its element id in `apps/web/components/landing/` and pass `--selector "#<id>"`.
|
|
32
|
+
2. **Pick the panel.** The default `#hero` captures the landing hero. If the landing has a product panel of its own - a dashboard tour scene, a framed app screenshot with demo data - capture that instead: find its element id in `apps/web/components/landing/` and pass `--selector "#<id>"`. The script always wraps the capture in its browser window, so pick a panel WITHOUT its own window chrome (or crop to the content inside it); a window nested in a window reads as a mistake. Never capture a signed-in page or stage data for the shot: the card shows what the public landing shows.
|
|
33
33
|
3. **Generate:** `pnpm og-image` (add the flags from step 2). It opens the page in headless Chromium at 1440x1000, 2x, dark colour scheme; waits for `load` plus `--wait` ms (default 5000) so tours and entrance animations settle; **removes** - never clicks - the cookie/consent banner, chat widgets and the Next dev badge (`--remove "<css>"` adds more); settles every animation; and screenshots the panel. It then composes the 1200x630 card, renders it at 1x, checks the size and writes `apps/web/public/og.png`.
|
|
34
34
|
4. **Keep the per-page cards in step.** The same run resolves the four tokens to sRGB hex through a canvas (Satori, which draws `apps/web/components/seo/og-card.tsx`, cannot parse `oklch()`) and rewrites the `BRAND` constant there; the site name on those cards is drawn in the primary colour. `--no-og-card` skips this.
|
|
35
35
|
5. **Look at the result.** Open `apps/web/public/og.png` and judge it: the logo and name sharp and centred, the panel readable, no banner, cursor, dev badge or half-finished animation in the frame, dark mode throughout. Re-run with a different `--selector`, `--wait`, `--fit` or `--margin` until it is right. The script prints the file's size and byte count; the card must be exactly 1200x630, which the layout's `og:image` tags declare.
|
|
@@ -51,6 +51,8 @@ If the landing demo is out of date with the real app, fix the demo first: the ca
|
|
|
51
51
|
|
|
52
52
|
## Rules
|
|
53
53
|
|
|
54
|
+
- A product screenshot on the card is ALWAYS inside the browser window the script draws: traffic-light controls, the site's own domain in the address bar, rounded corners, soft shadow. Never a bare screenshot or a plain frame. If you hand-build a card instead of running the script, draw the same window.
|
|
55
|
+
|
|
54
56
|
- Colours come from `tooling/styles/theme.css` only. To change how the card looks, change the theme - never hand-pick a colour in the script, the card or `og-card.tsx`.
|
|
55
57
|
- Never click the consent banner: a screenshot must not imply a choice. The script removes it from the DOM.
|
|
56
58
|
- Do not wait for `networkidle` - pages that poll never settle; the script uses `load` plus a fixed wait.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generatesaas",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI for scaffolding and managing GenerateSaaS projects",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@clack/prompts": "^1.
|
|
16
|
+
"@clack/prompts": "^1.8.1",
|
|
17
17
|
"commander": "^15.0.0",
|
|
18
18
|
"picocolors": "^1.1.1",
|
|
19
19
|
"tar": "^7.5.22"
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@repo/eslint-config": "0.0.0",
|
|
23
23
|
"@repo/tsconfig": "1.0.0",
|
|
24
|
-
"@types/node": "26.
|
|
25
|
-
"eslint": "^
|
|
26
|
-
"tsup": "^
|
|
24
|
+
"@types/node": "26.6.5",
|
|
25
|
+
"eslint": "^10.13.0",
|
|
26
|
+
"tsup": "^9.0.0",
|
|
27
27
|
"typescript": "6.0.3",
|
|
28
|
-
"vitest": "
|
|
28
|
+
"vitest": "5.0.5"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=22.18"
|