Skip to content

Commit 56786ff

Browse files
thymikeeclaude
andcommitted
fix(website): findings from a dogfooding pass
- Builds clear Astro's content cache (astro build --force): Vercel kept docs pages rendered under an older code-block config, so 24 of them linked a missing stylesheet and scrolled sideways. - The hero sessions share one cell, so switching tabs no longer moves the page below. - Hero transcripts run as written: Build closes iOS before Android; Verify saves the contact, waits for it, and writes the files its reply names. - The cloud copy says which providers are built in and that evidence differs by provider; Expo Simulators links to its docs section and "can be driven" with agent-device. - llms.txt: the site's positioning, cloud use, an install line, and e2e for stable suites (as the docs say since #4010). - Source labels keep their case and wrap; the name never breaks; the phone menu closes on outside tap or Escape; search returns focus; contact defaults to "Something else"; Read the docs opens the introduction; stronger Kortix and MetaMask sources. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 34861fe commit 56786ff

14 files changed

Lines changed: 70 additions & 25 deletions

File tree

33 Bytes
Loading

‎website/docs/public/og-image.jpg‎

1.79 KB
Loading

‎website/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"scripts": {
1010
"dev": "astro dev",
11-
"build": "astro build",
11+
"build": "astro build --force",
1212
"preview": "astro preview",
1313
"check": "astro check",
1414
"og": "node scripts/og.mjs"

‎website/src/components/home/Hero.astro‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const calls = (lines: Line[]) =>
4747
)
4848
}
4949
</div>
50-
<a class="label more" href={docs.start}>Read the docs <span aria-hidden="true">→</span></a>
50+
<a class="label more" href={docs.intro}>Read the docs <span aria-hidden="true">→</span></a>
5151
</div>
5252

5353
<div
@@ -70,6 +70,7 @@ const calls = (lines: Line[]) =>
7070
))
7171
}
7272
</div>
73+
<div class="jobs">
7374
{
7475
jobs.map((j, i) => (
7576
<div class="job" role="tabpanel" id={`job-${j.id}`} aria-labelledby={`job-tab-${j.id}`} hidden={i !== 0} data-job>
@@ -99,6 +100,7 @@ const calls = (lines: Line[]) =>
99100
</div>
100101
))
101102
}
103+
</div>
102104
</div>
103105
</div>
104106
<!-- /HERO VISUAL -->
@@ -214,15 +216,21 @@ const calls = (lines: Line[]) =>
214216
color: var(--on-accent);
215217
background: var(--accent);
216218
}
219+
/* The panels share one cell, so the session is as tall as the tallest job and switching tabs
220+
never moves the page below. */
221+
.jobs {
222+
display: grid;
223+
margin-top: 0.75rem;
224+
}
217225
.job {
226+
grid-area: 1 / 1;
218227
display: grid;
219228
gap: 0.75rem;
220-
min-height: 34rem;
221229
align-content: start;
222-
margin-top: 0.75rem;
223230
}
224231
.job[hidden] {
225-
display: none;
232+
display: grid;
233+
visibility: hidden;
226234
}
227235
.prompt {
228236
display: grid;
@@ -317,9 +325,6 @@ const calls = (lines: Line[]) =>
317325
flex: none;
318326
width: 100%;
319327
}
320-
.job {
321-
min-height: 40rem;
322-
}
323328
.prompt,
324329
.reply {
325330
max-width: none;

‎website/src/components/site/DocsSearch.astro‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ import PixelIcon from './PixelIcon.astro';
104104
dialog.addEventListener('close', () => {
105105
document.body.toggleAttribute('data-search-open', false);
106106
removeEventListener('click', onClick);
107+
open.focus();
107108
});
108109
addEventListener('keydown', (event) => {
109110
if ((event.metaKey || event.ctrlKey) && event.key === 'k') {

‎website/src/components/site/NameCase.astro‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ const parts = text.split(new RegExp(String.raw`(\S*${name}\S*)`));
1717
<style>
1818
.name {
1919
text-transform: none;
20+
white-space: nowrap;
2021
}
2122
</style>

‎website/src/components/site/Nav.astro‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ import Lockup from './Lockup.astro';
2525
</div>
2626
</header>
2727

28+
<script>
29+
// The Menu disclosure closes on a tap outside it or on Escape, like a menu.
30+
for (const menu of document.querySelectorAll<HTMLDetailsElement>('details.menu')) {
31+
addEventListener('click', (event) => {
32+
if (menu.open && !menu.contains(event.target as Node)) menu.open = false;
33+
});
34+
addEventListener('keydown', (event) => {
35+
if (event.key !== 'Escape' || !menu.open) return;
36+
menu.open = false;
37+
menu.querySelector('summary')?.focus();
38+
});
39+
}
40+
</script>
41+
2842
<style>
2943
.nav {
3044
position: sticky;

‎website/src/pages/404.astro‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Dither from '../components/site/Dither.astro';
77
import Footer from '../components/site/Footer.astro';
88
import Nav from '../components/site/Nav.astro';
99
import { giantSize } from '../components/site/giant';
10+
import NameCase from '../components/site/NameCase.astro';
1011
import { docs, notFound, site } from '../site/content';
1112
---
1213

@@ -21,7 +22,7 @@ import { docs, notFound, site } from '../site/content';
2122
<Dither scene="loop-hollow" focus={0.72} class="nf-scene" />
2223
<div class="nf-card">
2324
<p class="label nf-code"><span>404</span> Page not found</p>
24-
<h1 class="h1" id="nf-title">{notFound[0]} <em>{notFound[1]}</em></h1>
25+
<h1 class="h1" id="nf-title"><NameCase text={notFound[0]} /> <em><NameCase text={notFound[1]} /></em></h1>
2526
<p class="lede nf-path" data-path hidden>You asked for <code data-path-text></code>.</p>
2627
<div class="actions">
2728
<a class="btn" href="/">Home <span aria-hidden="true">→</span></a>

‎website/src/pages/cloud.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import { inlineCode } from '../site/markup';
5252
<h2 class="h2" id="providers-title">Hosted devices, <em>same session model.</em></h2>
5353
<p class="lede">
5454
Connect a provider and your agent opens, reads and drives its devices with the commands it
55-
already uses. Evidence and replay work the same way.
55+
already uses. Which evidence each provider returns differs; compare them before you pick.
5656
</p>
5757
</div>
5858
<ul class="cells cells--5 providers">

‎website/src/pages/contact.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const reasons = [
3131
<fieldset class="reasons">
3232
<legend class="label">What is it about?</legend>
3333
{
34-
reasons.map((r, i) => (
34+
reasons.map((r) => (
3535
<label class="reason">
36-
<input type="radio" name="reason" value={r.id} data-value={r.value} checked={i === 0} />
36+
<input type="radio" name="reason" value={r.id} data-value={r.value} checked={r.id === 'general'} />
3737
<span class="reason-text">
3838
<span class="reason-label">{r.label}</span>
3939
<span class="reason-note">{r.note}</span>

0 commit comments

Comments
 (0)