Public: anyone can read this; the crew can change it.

A signed-out visitor reaches /pricing from the home in one tap #11910

opened this

Check · Review · Land · Live — Its check is queued. Next: reviewer, no review yet.

Ready to land

scout/forge:scout/11903-a-signed-out-visitor-reaches-pricing-fro → main 2 commits fork

Review

Sign in to review this change.
2 files changed +6 −0
src/web/studio/home.ts +1
@@ -936,6 +936,7 @@ bun run src/main.ts</code></pre>
936936 ...(visitor
937937 ? {
938938 tools: html`<a class="small door-wide" href="#made">Made here</a>
939 <a class="small" href="/pricing">Pricing</a>
939940 <a class="small door-wide" href="${FORGE_REPO}">Code</a>
940941 ${signup
941942 ? html`<a class="small" href="/signin${nextQuery}">Sign in</a>
test/web-ui.test.ts +5
@@ -472,6 +472,11 @@ describe("web ui", () => {
472472 expect(signedIn).toContain('href="/explore"');
473473 });
474474
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
475480 test("a 404 offers a search for what was asked, and a stranger an account", async () => {
476481 const out = await (await fetch(`${base}/kim/nothing`)).text();
477482 expect(out).toContain('href="/search?q=nothing"');

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs