mirror of
https://github.com/hanzoai/site.git
synced 2026-11-21 00:14:36 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01P5YBdwj33XByFVTvu9bfci
2.0 KiB
2.0 KiB
/zap: shared changes requested (7 Nov)
content/ui-strings.json(shared): register the demo labels the wire and fleet use, so they are no longer page-local strings. Each one restates a sentence Hanzo already has on the page and makes no new claim:- "ZAP · the buffer that arrived", "pointer + offset {n}", "JSON · the same message as text", "{n} character walked" / "{n} characters walked", "Read a field"
- "Agents you run", "An MCP server beside every agent", "One zapd in front, servers shared", "{n} tool-server processes · {n} more of each", "{n} tool-server processes and zapd · none repeated"
- Shared chrome (
Chrome.jsx/ header): start the header dark, with its ask outlined, when the page's first section isdata-room="dark", so a white bar never boxes the dark hero and "Try Hanzo" doesn't flip from solid to outline at hydration. - Shared header ask on phones (round-2 review): at 375 the header keeps a solid black "Try Hanzo" beside the page's solid ask, and once the hero ask leaves view the phone bar says "Read the docs" while the header still says "Try Hanzo". Asked for: on phones, as on desktop, the header ask goes quiet while a page solid is on screen and carries the page's
data-thumblabel ("Read the docs") after it. With JS off the header is solid on desktop too. Until then /zap outlines its own asks on phones and with JS off, so each screen has one solid (the header's). components/v2/Settle.jsxhydration mismatch under reduced motion (round-2 review): it readsuseReducedMotion()during render, so the server renderstransform: translateY(lift) scale(from)and a reduced-motion client rendersnone. React logs "A tree hydrated but some attributes … didn't match" and Next shows the red issue badge on every page that uses it, for every reduced-motion visitor. Asked for: render the same style on the server and the first client render, and apply calm in an effect after mount (or with aprefers-reduced-motionCSS rule). /zap now uses a page-local copy that does this (components/pages/apps/zap/Settle.jsx).