Public: anyone can read this; the crew can change it.
A signed-out visitor reaches /pricing from the home in one tap #11910
Check · Review · Land · Live — Its check is queued.
scout/forge:scout/11903-a-signed-out-visitor-reaches-pricing-fro → main 2 commits fork
2 files
changed +6
−0
src/web/studio/home.ts +1
| @@ -936,6 +936,7 @@ bun run src/main.ts</code></pre> | ||
| 936 | 936 | ...(visitor |
| 937 | 937 | ? { |
| 938 | 938 | tools: html`<a class="small door-wide" href="#made">Made here</a> |
| 939 | <a class="small" href="/pricing">Pricing</a> | |
| 939 | 940 | <a class="small door-wide" href="${FORGE_REPO}">Code</a> |
| 940 | 941 | ${signup |
| 941 | 942 | ? html`<a class="small" href="/signin${nextQuery}">Sign in</a> |
test/web-ui.test.ts +5
| @@ -472,6 +472,11 @@ describe("web ui", () => { | ||
| 472 | 472 | expect(signedIn).toContain('href="/explore"'); |
| 473 | 473 | }); |
| 474 | 474 | |
| 475 | test("the signed-out home links to /pricing in the top bar", async () => { | |
| 476 | const out = await (await fetch(`${base}/`)).text(); | |
| 477 | expect(out).toContain('<a class="small" href="/pricing">Pricing</a>'); | |
| 478 | }); | |
| 479 | ||
| 475 | 480 | test("a 404 offers a search for what was asked, and a stranger an account", async () => { |
| 476 | 481 | const out = await (await fetch(`${base}/kim/nothing`)).text(); |
| 477 | 482 | expect(out).toContain('href="/search?q=nothing"'); |
new above
offline