From 8fd1ccd842230ad2fb8da8515e1c8b4bd0e80b7f Mon Sep 17 00:00:00 2001 From: Lily Shen <115414357+lilyshen0722@users.noreply.github.com> Date: Thu, 5 Nov 2026 16:10:23 -0800 Subject: [PATCH] feat(landing): every Works with tile shows its mark, card one leads the agent teams, and the page takes its final copy Works with shows a real logo on each tile, one ink across the row in light and dark. Each logo has one config line, so any can come out alone. The Apps row is Linear, GitHub, Telegram and Slack, with one note for the two read-only apps. Downloaded SVGs are checked for script, foreignObject, event handlers and external references. Provenance records each mark's source, date and licence, and says plainly where a vendor's rule requires permission we have not obtained. The page leads with multiplayer, the live star count reads as a normal number with a star, and it hides when there is no count. Card one runs the full row with chat on the right, and the section gains a line saying the examples are made up. The final copy lands word for word in en and zh, with the FAQ in landing-faq.json. Tests that pinned retired copy move to the new words. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015AKgpQvEkjuUFdbWfTQr1p --- docs/design/landing-demo/README.md | 1 + docs/design/landing-works-with-provenance.md | 36 ++++ .../logos/works-with/claude-code-mark.svg | 3 + .../deepseek-harness-favicon-dark.svg | 3 + .../works-with/deepseek-harness-favicon.svg | 3 + .../works-with/github-invertocat-black.svg | 10 + .../works-with/github-invertocat-white.svg | 10 + .../logos/works-with/linear-logo-dark.svg | 5 + .../logos/works-with/linear-logo-light.svg | 5 + .../logos/works-with/mcp-mark-black.svg | 5 + .../logos/works-with/mcp-mark-white.svg | 5 + .../logos/works-with/openai-blossom-black.svg | 3 + .../logos/works-with/openai-blossom-white.svg | 3 + .../works-with/opencode-logo-dark-square.svg | 18 ++ .../works-with/opencode-logo-light-square.svg | 18 ++ .../logos/works-with/qwen-code-logo.svg | 5 + .../public/logos/works-with/slack-logo.svg | 17 ++ .../logos/works-with/telegram-t-logo.svg | 12 ++ .../__tests__/memoryAndTrafficClaims.test.ts | 2 +- frontend/src/content/landing-faq.json | 18 +- .../__tests__/zhNumberUnitSpacing.test.ts | 2 + frontend/src/i18n/locales/en.json | 112 ++++++----- frontend/src/i18n/locales/zh-CN.json | 112 ++++++----- .../v2/__tests__/v2-layout-invariants.test.ts | 74 ++++++-- frontend/src/v2/landing/V2LandingPage.tsx | 174 ++++++++++++------ .../__tests__/landingHeroContent.test.tsx | 4 +- .../landing/__tests__/landingStarCta.test.tsx | 50 ++++- .../landing/__tests__/worksWithLogos.test.ts | 119 ++++++++++++ frontend/src/v2/landing/v2-landing.css | 125 ++++++++++--- 29 files changed, 745 insertions(+), 209 deletions(-) create mode 100644 docs/design/landing-works-with-provenance.md create mode 100644 frontend/public/logos/works-with/claude-code-mark.svg create mode 100644 frontend/public/logos/works-with/deepseek-harness-favicon-dark.svg create mode 100644 frontend/public/logos/works-with/deepseek-harness-favicon.svg create mode 100755 frontend/public/logos/works-with/github-invertocat-black.svg create mode 100755 frontend/public/logos/works-with/github-invertocat-white.svg create mode 100644 frontend/public/logos/works-with/linear-logo-dark.svg create mode 100644 frontend/public/logos/works-with/linear-logo-light.svg create mode 100644 frontend/public/logos/works-with/mcp-mark-black.svg create mode 100644 frontend/public/logos/works-with/mcp-mark-white.svg create mode 100644 frontend/public/logos/works-with/openai-blossom-black.svg create mode 100644 frontend/public/logos/works-with/openai-blossom-white.svg create mode 100644 frontend/public/logos/works-with/opencode-logo-dark-square.svg create mode 100644 frontend/public/logos/works-with/opencode-logo-light-square.svg create mode 100644 frontend/public/logos/works-with/qwen-code-logo.svg create mode 100644 frontend/public/logos/works-with/slack-logo.svg create mode 100644 frontend/public/logos/works-with/telegram-t-logo.svg create mode 100644 frontend/src/v2/landing/__tests__/worksWithLogos.test.ts diff --git a/docs/design/landing-demo/README.md b/docs/design/landing-demo/README.md index cfd707bf9d..93b108c462 100644 --- a/docs/design/landing-demo/README.md +++ b/docs/design/landing-demo/README.md @@ -27,6 +27,7 @@ The canvas these boards come from is private to Sam's account, so the sources li ## Where the build departs from the boards +- **Agent teams and Works with sit straight after the wedge (2026-11-05).** Multiplayer is the lead, not the board or the feature tour, so who is in the pod comes first and the nav lists Agent teams first. The boards' section order holds for everything else. - **The hero demo follows the live app, not `Demo.dc.html` (v3 pass, 2026-11-05).** The board is the September shell: a 212px pod column with Direct rows, a subtitle and a working count in the pod header, flat inspector panels, a mono "Send" composer. The hero now renders the app's own classes on the app's 56 / 260 / fluid / 272 grid, and its first state has two people and their agents. The board still holds for the sample content and the scripted behaviour. The board and channel panels moved to where the app keeps them: the board behind the header's "N to do" chip, the channel inside the Who can join fold. Chrome uses the app's locale keys; thread content stays English, as people's messages do. - **The install command.** The 1440 board draws it as a bare, shortened line beside the buttons. The build keeps TASK-154's copyable command box with the exact live command: in the button row where it fits, and on its own row below the buttons where it does not. The 390 board draws the second case. - **The title's line break.** The 1440 board sets the title on one line. The build keeps the live break before the rotating term, so a longer term cannot change the line count and move the band. diff --git a/docs/design/landing-works-with-provenance.md b/docs/design/landing-works-with-provenance.md new file mode 100644 index 0000000000..6ef8af7587 --- /dev/null +++ b/docs/design/landing-works-with-provenance.md @@ -0,0 +1,36 @@ +# Landing "Works with" section: provenance + +The section lists what has been walked end to end, and every tile shows a mark. This page records where each mark came from and what its owner's rule says. Files read 2026-11-05. + +- Code: `WORKS_WITH_AGENTS`, `WORKS_WITH_APPS` and `WORKS_WITH_LOGOS` in `frontend/src/v2/landing/V2LandingPage.tsx`; files in `frontend/public/logos/works-with/`; styling in `.v2-landing__works*`. `frontend/src/v2/landing/__tests__/worksWithLogos.test.ts` holds them together, and rejects a file with script, `foreignObject`, event handlers or external references. +- Each logo is one line in `WORKS_WITH_LOGOS`, so any one can be removed without touching the others. Remove the file and its row in the same change. +- An addition needs a walk first. Downloaded SVGs are untrusted: each goes in its own new directory and through that check before it is committed. + +## Why logos show where a rule asks for permission + +The decision on 2026-11-05 was to show every tile's logo, as other tools do. Where the table says permission is required, we have not obtained it. The rule stays here so the decision stays visible. The section says these work with Commonly. It does not say any vendor built, endorses or partners with Commonly. + +## How a mark is drawn + +No mark is redrawn and no shape is changed. A vendor pair shows the file for each ground. A one-colour file is drawn in ink by CSS (`--mono`), and the two-tone Telegram file is drawn in ink and ground (`--tone`). Both change the colour on screen, not the file or its shape. Where a file is a lockup, we keep the vendor's own mark paths byte for byte and drop the wordmark; where it carries a wide margin, we only tighten the `viewBox`. + +## Agents + +| Entry | File | Source, date | Licence | Vendor's rule | Walk | +|---|---|---|---|---|---| +| Claude Code | `claude-code-mark.svg`, drawn mono | [Claude Code docs logo](https://mintcdn.com/claude-code/c5r9_6tjPMzFdDDT/logo/light.svg), 2026-11-05. Mark path kept byte for byte, wordmark dropped, `viewBox` set | Proprietary, no licence | **Requires written permission.** [Legal and compliance](https://code.claude.com/docs/en/legal-and-compliance): plain text is allowed, any other use of the names or logos needs written permission; [trademark guidelines](https://www.anthropic.com/legal/trademark-guidelines) | `docs/agents/byo-support-matrix.md`: Mac and Windows 11-04, Linux 11-05 | +| Codex | `openai-blossom-black.svg`, `openai-blossom-white.svg` | [OpenAI logo bundle](https://cdn.openai.com/brand/openai-logos.zip), 2026-11-05. `viewBox` tightened from 716 to 356, paths untouched. **This is OpenAI's Blossom: no Codex-specific mark was found** | Proprietary, no licence | **Requires permission.** [OpenAI brand guidelines](https://openai.com/brand/). The page refused automated reads, so its rule was read through a search index, not the page | Matrix: Mac 11-04 | +| OpenCode | `opencode-logo-dark-square.svg`, `opencode-logo-light-square.svg` | [anomalyco/opencode](https://github.com/anomalyco/opencode) `packages/console/app/src/asset/brand/` at `0dffb96c`, 2026-11-05, the files [opencode.ai/brand](https://opencode.ai/brand) offers | Repo MIT; no separate licence for the mark | No restriction stated; its terms have no logo clause | Matrix: Mac 11-04, 1.19.4 | +| Qwen Code | `qwen-code-logo.svg`, drawn mono | [QwenLM/qwen-code](https://github.com/QwenLM/qwen-code) `packages/desktop/bootstrap/` at `7bd78683`, 2026-11-05 | Repo Apache-2.0, which grants no trademark rights | No published rule found | Matrix: Mac 11-04, 0.26.2 | +| DeepSeek Harness | `deepseek-harness-favicon.svg`, `deepseek-harness-favicon-dark.svg` | [deepseek-ai/deepseek-harness](https://github.com/deepseek-ai/deepseek-harness) `apps/web/public/` at `fcc0ad46`, 2026-11-05 | Repo MIT; no separate licence for the mark | No published rule found | Matrix: Mac, private pods, 10-23 and 10-28 | +| Hosted agent | Inline, from `frontend/design-system/assets/commonly-mark.svg` | Ours | Ours | Ours | Hosted reply walked on prod, 2026-11-05 | +| MCP client | `mcp-mark-black.svg`, `mcp-mark-white.svg` | [modelcontextprotocol](https://github.com/modelcontextprotocol/modelcontextprotocol) `docs/logo/light.svg`, `dark.svg` at `3c4d91b7`, 2026-11-05. Three mark paths kept byte for byte, wordmark dropped, `viewBox` set | Repo Apache-2.0 and MIT, docs CC-BY-4.0; the mark is an LF Projects trademark | **Requires written permission** for logos on websites or marketing. [LF Projects trademark policy](https://lfprojects.org/policies/trademark-policy/) | Matrix: Claude Code on Mac 11-04 | + +## Apps + +| Entry | File | Source, date | Licence | Vendor's rule | Walk | +|---|---|---|---|---|---| +| Linear | `linear-logo-dark.svg`, `linear-logo-light.svg` | [Brand bundle](https://static.linear.app/design-assets/Linear-Brand-Assets.zip?v=3) from [linear.app/brand](https://linear.app/brand), 2026-11-05, renamed from `logo-dark.svg`, `logo-light.svg` | Proprietary, no licence | Allows the logomark "for tight layouts or logo-only grids". Forbids altering the files, combining them with other graphics, or implying a relationship; asks for written consent | 2026-10-15, fresh account. Not re-walked on this build. Connected read only | +| GitHub | `github-invertocat-black.svg`, `github-invertocat-white.svg` | [GitHub logo bundle](https://brand.github.com/GitHub_Logos.zip), 2026-11-05 | Proprietary, no licence | Allows a permitted logo to show an integration. No implied affiliation, no changes to colour or dimensions, less prominent than our own name. [brand.github.com](https://brand.github.com/foundations/logo) | Read 2026-11-04, from a non-allowlisted account. Connected read only | +| Telegram | `telegram-t-logo.svg`, drawn tone | [telegram.org/img/t_logo.svg](https://telegram.org/img/t_logo.svg), Telegram's own host, 2026-11-05 | Proprietary, no licence | **Permission unclear, and the file is recoloured.** [Logos page](https://telegram.org/tour/screenshots) allows illustrative use if people understand you don't represent Telegram; [API terms](https://core.telegram.org/api/terms) bar using the logo for apps; read through a search index, not the pages | 2026-11-04, on our own accounts. No outside team has used it, and the page must not suggest one has | +| Slack | `slack-logo.svg`, drawn mono | [a.slack-edge.com](https://a.slack-edge.com/1f40066/marketing/img/nav/logo.svg), the mark on [Slack's media kit page](https://slack.com/media-kit), 2026-11-05. Slack's [logo downloads](https://salesforce.widencollective.com/c/yn6bxnam) were not fetched | Proprietary, no licence | **Requires approval.** [Media kit](https://slack.com/media-kit): uses its guidelines don't cover need approval, through a support request with a mockup. No rule for a third-party integration was found there, and the full guidelines site did not load | Walked 2026-11-02 and 2026-09-26/27 on our own workspace. Public distribution is on. No outside workspace has installed it. Not in the Slack Marketplace | diff --git a/frontend/public/logos/works-with/claude-code-mark.svg b/frontend/public/logos/works-with/claude-code-mark.svg new file mode 100644 index 0000000000..4306394f4a --- /dev/null +++ b/frontend/public/logos/works-with/claude-code-mark.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/public/logos/works-with/deepseek-harness-favicon-dark.svg b/frontend/public/logos/works-with/deepseek-harness-favicon-dark.svg new file mode 100644 index 0000000000..648fe4f2b9 --- /dev/null +++ b/frontend/public/logos/works-with/deepseek-harness-favicon-dark.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/public/logos/works-with/deepseek-harness-favicon.svg b/frontend/public/logos/works-with/deepseek-harness-favicon.svg new file mode 100644 index 0000000000..754615a37a --- /dev/null +++ b/frontend/public/logos/works-with/deepseek-harness-favicon.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/public/logos/works-with/github-invertocat-black.svg b/frontend/public/logos/works-with/github-invertocat-black.svg new file mode 100755 index 0000000000..4f46bf3571 --- /dev/null +++ b/frontend/public/logos/works-with/github-invertocat-black.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/frontend/public/logos/works-with/github-invertocat-white.svg b/frontend/public/logos/works-with/github-invertocat-white.svg new file mode 100755 index 0000000000..527ba11c50 --- /dev/null +++ b/frontend/public/logos/works-with/github-invertocat-white.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/frontend/public/logos/works-with/linear-logo-dark.svg b/frontend/public/logos/works-with/linear-logo-dark.svg new file mode 100644 index 0000000000..e2484d7082 --- /dev/null +++ b/frontend/public/logos/works-with/linear-logo-dark.svg @@ -0,0 +1,5 @@ + + + diff --git a/frontend/public/logos/works-with/linear-logo-light.svg b/frontend/public/logos/works-with/linear-logo-light.svg new file mode 100644 index 0000000000..186eab4ce1 --- /dev/null +++ b/frontend/public/logos/works-with/linear-logo-light.svg @@ -0,0 +1,5 @@ + + + diff --git a/frontend/public/logos/works-with/mcp-mark-black.svg b/frontend/public/logos/works-with/mcp-mark-black.svg new file mode 100644 index 0000000000..cf10e993f8 --- /dev/null +++ b/frontend/public/logos/works-with/mcp-mark-black.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/public/logos/works-with/mcp-mark-white.svg b/frontend/public/logos/works-with/mcp-mark-white.svg new file mode 100644 index 0000000000..8f16472e5b --- /dev/null +++ b/frontend/public/logos/works-with/mcp-mark-white.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/public/logos/works-with/openai-blossom-black.svg b/frontend/public/logos/works-with/openai-blossom-black.svg new file mode 100644 index 0000000000..e0febfed88 --- /dev/null +++ b/frontend/public/logos/works-with/openai-blossom-black.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/public/logos/works-with/openai-blossom-white.svg b/frontend/public/logos/works-with/openai-blossom-white.svg new file mode 100644 index 0000000000..54d38f397c --- /dev/null +++ b/frontend/public/logos/works-with/openai-blossom-white.svg @@ -0,0 +1,3 @@ + + + diff --git a/frontend/public/logos/works-with/opencode-logo-dark-square.svg b/frontend/public/logos/works-with/opencode-logo-dark-square.svg new file mode 100644 index 0000000000..6a67f62717 --- /dev/null +++ b/frontend/public/logos/works-with/opencode-logo-dark-square.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/logos/works-with/opencode-logo-light-square.svg b/frontend/public/logos/works-with/opencode-logo-light-square.svg new file mode 100644 index 0000000000..a738ad87db --- /dev/null +++ b/frontend/public/logos/works-with/opencode-logo-light-square.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/logos/works-with/qwen-code-logo.svg b/frontend/public/logos/works-with/qwen-code-logo.svg new file mode 100644 index 0000000000..9e9ffdd38e --- /dev/null +++ b/frontend/public/logos/works-with/qwen-code-logo.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/public/logos/works-with/slack-logo.svg b/frontend/public/logos/works-with/slack-logo.svg new file mode 100644 index 0000000000..245f446ae8 --- /dev/null +++ b/frontend/public/logos/works-with/slack-logo.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/frontend/public/logos/works-with/telegram-t-logo.svg b/frontend/public/logos/works-with/telegram-t-logo.svg new file mode 100644 index 0000000000..95e26ca25b --- /dev/null +++ b/frontend/public/logos/works-with/telegram-t-logo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/frontend/src/__tests__/memoryAndTrafficClaims.test.ts b/frontend/src/__tests__/memoryAndTrafficClaims.test.ts index be39c36b83..079c768085 100644 --- a/frontend/src/__tests__/memoryAndTrafficClaims.test.ts +++ b/frontend/src/__tests__/memoryAndTrafficClaims.test.ts @@ -61,7 +61,7 @@ describe('memory, access and traffic claims match the code', () => { expect(traffic).toBeDefined(); expect(traffic!.answer).toMatch(/Claude Code, Codex and OpenCode run on your machine with your own login or keys, so their model traffic doesn't go through us\./); expect(traffic!.answer).not.toMatch(/(Claude Code|Codex)[^.]*model traffic (goes|go) through (us|Commonly)/); - expect(traffic!.answer).toMatch(/Commonly sees what your agent does through Commonly: what it posts and reads, its memory writes, a receipt with each reply naming the model, the tools it used and how long it ran, and its calls to connected tools\./); + expect(traffic!.answer).toMatch(/Commonly sees what your agent does through Commonly: what it posts and reads, its memory writes and its calls to connected tools\. For agents on your own computer, Commonly also stores what the wrapper reports with each reply: the tool, the model and effort when reported, the turn count, the tools used and how long it ran\./); expect(faqText).toMatch(/goose and pi adapters use Commonly's model gateway by default/); }); diff --git a/frontend/src/content/landing-faq.json b/frontend/src/content/landing-faq.json index be18617fff..4b14a831aa 100644 --- a/frontend/src/content/landing-faq.json +++ b/frontend/src/content/landing-faq.json @@ -5,19 +5,19 @@ }, { "question": "How is this different from other agent workspaces?", - "answer": "Commonly is open source under Apache-2.0, and you can run it yourself, so the chat, the board and agent memory can stay on your machines. Agents are never charged." + "answer": "In a pod, each person brings their own agent, teammates can @ each other's agents, and everyone sees the exchange. Commonly is open source under Apache-2.0, and you can run it yourself, so the chat, the board and agent memory can stay on your machines. Agents are never charged." }, { "question": "Which agents can join?", - "answer": "Claude Code, Codex, OpenCode, Qwen Code, pi and DeepSeek Harness connect from your Mac through the Commonly CLI. pi runs without a sandbox. On Linux, Claude Code runs on your own Claude Code login inside bubblewrap, which you install first. On Nov 5 we ran the page's Linux setup on a fresh Ubuntu machine against Commonly, with an API key, and the agent answered its first @mention. On your own login it's been checked only in CI. Codex on Linux isn't tested yet. On native Windows, Claude Code answers @mentions with CLI 0.1.243 or newer, from the PowerShell lines the connect page gives. You can also start a hosted agent in the pod in one click. It answers when you @mention it. It can claim a task on the board, but it can't mark one done." + "answer": "Claude Code, Codex, OpenCode and Qwen Code connect from your Mac through the Commonly CLI, and DeepSeek Harness connects the same way in private pods. On Linux, Claude Code runs on your own Claude Code login inside bubblewrap, which you install first. On Nov 5 we ran the page's Linux setup on a fresh Ubuntu machine against Commonly, with an API key, and the agent answered its first @mention. On your own login it's been checked only in CI. Codex on Linux isn't tested yet. On native Windows, Claude Code answers @mentions with CLI 0.1.243 or newer, from the PowerShell lines the connect page gives. You can also start a hosted agent in the pod in one click. It answers when you @mention it. It can claim a task on the board, but it can't mark one done." }, { "question": "Can a teammate's message make my agent do something on my computer?", - "answer": "By default your agent runs in a sandbox (Seatbelt on macOS, bubblewrap on Linux) with the pod's tools and its own folder, and nothing else of yours. If you attach it without the sandbox, it runs as you, and anyone who can @mention it in the pod can instruct it. Only do that in a pod of people you trust." + "answer": "By default your agent runs in a sandbox (Seatbelt on macOS, bubblewrap on Linux) with the pod's tools and its own folder, and nothing else of yours. If you attach it without the sandbox, it runs as you, and anyone who can @mention it in the pod can instruct it. Only do that in a pod of people you trust. Windows has no sandbox, so there it always runs this way." }, { "question": "Do you see my code or my model calls?", - "answer": "Claude Code, Codex and OpenCode run on your machine with your own login or keys, so their model traffic doesn't go through us. The goose and pi adapters use Commonly's model gateway by default. Commonly sees what your agent does through Commonly: what it posts and reads, its memory writes, a receipt with each reply naming the model, the tools it used and how long it ran, and its calls to connected tools." + "answer": "Claude Code, Codex and OpenCode run on your machine with your own login or keys, so their model traffic doesn't go through us. The goose and pi adapters use Commonly's model gateway by default. Commonly sees what your agent does through Commonly: what it posts and reads, its memory writes and its calls to connected tools. For agents on your own computer, Commonly also stores what the wrapper reports with each reply: the tool, the model and effort when reported, the turn count, the tools used and how long it ran." }, { "question": "Can I self-host?", @@ -29,11 +29,11 @@ }, { "question": "shared workspace where AI agents from different vendors and humans work together open source", - "answer": "Commonly is an open-source (Apache-2.0), self-hostable workspace where a team and its AI agents share a pod. Claude Code joins from your own machine, Codex from your own Mac, or you can use the hosted agent, and everyone works in the same chat and task board." + "answer": "Commonly is an open-source (Apache-2.0), self-hostable workspace where a team and its AI agents share a pod. Claude Code joins from your own machine, Codex from your own Mac, or you can use the hosted agent. Everyone works in the same chat, teammates can @ each other's agents, and the pod has a task board too." }, { "question": "open source alternative to Slack for teams of humans and AI agents", - "answer": "Commonly is an open-source (Apache-2.0) workspace built for teams of people and AI agents. A pod has a chat, a task board that agents claim work from, and decision cards where an agent asks a person for a decision. You can self-host it or use commonly.me." + "answer": "Commonly is an open-source (Apache-2.0) workspace built for teams of people and AI agents. In a pod, people and agents share one chat, anyone in the pod can @ an agent, and an agent can ask a person for a decision on a card. There's also a task board agents can claim work from. You can self-host it or use commonly.me." }, { "question": "how do I connect Claude Code to my team's chat so it answers @mentions", @@ -41,14 +41,14 @@ }, { "question": "self-hosted platform for multi-agent collaboration with humans", - "answer": "Commonly is open source (Apache-2.0) and self-hostable. Several agents, such as Claude Code, Codex, OpenCode and a hosted agent, work alongside people in one pod. They claim tasks on a shared board, post what they tried, and ask a person on a decision card when the call is theirs." + "answer": "Commonly is open source (Apache-2.0) and self-hostable. Several agents, such as Claude Code, Codex, OpenCode and a hosted agent, work alongside people in one pod. Anyone in the pod can @ them. They post what they tried, claim tasks on a shared board, and ask a person on a decision card when the call is theirs." }, { "question": "where can AI agents from different tools collaborate with my team in one place", - "answer": "In a Commonly pod, Claude Code from teammates' machines, Codex from teammates' Macs, plus a hosted agent, share one chat and task board with the people on the team. Activity shows what each agent has updated on the board, and what needs a person." + "answer": "In a Commonly pod, Claude Code from teammates' machines, Codex from teammates' Macs and a hosted agent share one chat with the people on the team, and anyone in the pod can @ them. Activity shows what each agent has updated on the board, and what needs a person." }, { "question": "Should one agent run as one loop instead of subagents? Isn't Commonly a multi-agent system?", - "answer": "That's a choice inside each agent. Across a team, work still divides by expertise and ownership, so there are several agents, each running under its own owner. A pod is where they work together: your Claude Code and a teammate's agent, each a named member, sharing the same conversations and one board with the people who run them. A task claimed on the board shows as taken to everyone, and a connector grant lets an agent use the tools you pick, through your account, without handing over your keys." + "answer": "That's a choice inside each agent. Across a team, work still divides by expertise and ownership, so there are several agents, each running under its own owner. A pod is where they work together: your Claude Code and a teammate's agent, each a named member, in the same pod as the people who run them, and a teammate can @ your agent directly. A task claimed on the board shows as taken to everyone, and a connector grant gives an agent only the access you gave it, with the tool token kept server-side." } ] diff --git a/frontend/src/i18n/__tests__/zhNumberUnitSpacing.test.ts b/frontend/src/i18n/__tests__/zhNumberUnitSpacing.test.ts index fcd26e89b0..6d109521a6 100644 --- a/frontend/src/i18n/__tests__/zhNumberUnitSpacing.test.ts +++ b/frontend/src/i18n/__tests__/zhNumberUnitSpacing.test.ts @@ -26,6 +26,8 @@ const NUMERAL_PLACEHOLDERS = [ 'count', 'formattedCount', 'uses', 'maxUses', 'complete', 'total', 'attempt', 'revision', 'position', 'cap', 'used', 'turns', 'notes', 'days', 'signups', 'active', 'working', 'needsYou', 'minutes', 'calls', 'number', 'tokens', + // landing.actions.starCountAria: a compact GitHub star count (Intl.NumberFormat). + 'stars', // harness.answeredIn: a reply's measured duration in seconds (D247). 'seconds', // a formatted duration, closed because the ruling names this key explicitly: diff --git a/frontend/src/i18n/locales/en.json b/frontend/src/i18n/locales/en.json index 7ac89972aa..c8d98d2301 100644 --- a/frontend/src/i18n/locales/en.json +++ b/frontend/src/i18n/locales/en.json @@ -909,7 +909,8 @@ "getStarted": "Get started", "selfHost": "Self-host it", "talkToUs": "Talk to us", - "starGithub": "Star on GitHub" + "starGithub": "Star on GitHub", + "starCountAria": "{{stars}} GitHub stars" }, "hero": { "eyebrow": "Open-source · Apache 2.0", @@ -946,7 +947,7 @@ }, "features": { "kicker": "In action", - "title": "A real workspace — agents and people in the same pod.", + "title": "Your teammate @s your agent. Everyone sees it.", "needs": { "alt": "Commonly's Activity page: three items that need you across the website, launch and support pods, two of them agent decision cards with options, above what moved forward.", "kicker": "Needs you", @@ -964,7 +965,7 @@ "title": "Hosted or your own, one roster", "text": "Claude Code, Codex and hosted agents side by side. Hire a hosted agent or connect your own — every one gets a name, its own skills, and memory that stays with it. A real seat on the team, not a subagent you spawn and lose.", "points": { - "bring": "Bring your own agent in about two minutes", + "bring": "Bring your own agent", "hosted": "Hosted agents when you want zero setup", "talk": "Talk to any of them 1:1" } @@ -984,7 +985,7 @@ "alt": "Commonly's Bring your own agent page, with On my computer chosen from three ways to run an agent: fern will run on My Mac and join the Launch pod once that computer's daemon starts it.", "kicker": "Bring your own", "title": "Bring the agent you already run", - "text": "Register your computer once. The daemon keeps your agents running across logins and reboots, and each one keeps its identity and memory here. Move it to another machine and it comes back knowing everything it learned.", + "text": "Register your computer once. The daemon starts when you log in and keeps your agents running, and each one keeps its identity and memory.", "points": { "runtimes": "Claude Code or Codex", "keys": "Your keys and your compute", @@ -994,7 +995,7 @@ }, "how": { "kicker": "How it works", - "title": "Memory lives with the project, not the tool.", + "title": "Send a link. Your teammate sees the conversation so far.", "steps": { "install": { "title": "Install your agents into a pod", @@ -1002,7 +1003,7 @@ }, "teammate": { "title": "Add a teammate", - "text": "The memory is already there. No re-briefing, no pasting context — they pick up where the project is." + "text": "They join from a link, see the conversation so far, and can @ your agent." }, "swap": { "title": "Swap Claude Code for Codex", @@ -1016,12 +1017,12 @@ }, "cli": { "title": "Local CLI", - "text": "Run Claude Code or Codex on your laptop.", + "text": "Run Claude Code on your computer, or Codex on a Mac.", "next": "# then in the app, open Your own agent and press Get my connect command" }, "native": { "title": "Native", - "text": "Zero-setup, in-process runtime." + "text": "A hosted agent, nothing to install." } } }, @@ -1036,7 +1037,7 @@ }, "data": { "title": "Own the data.", - "text": "Self-host on your machines — conversations and memory never leave." + "text": "Self-host it and your conversations and memory are stored on your machines." }, "tax": { "title": "No per-agent tax.", @@ -1059,8 +1060,8 @@ "text": "Every agent keeps its own memory and picks up the pod’s shared history — so you stop being the router between tools that forget each other." }, "mention": { - "title": "@mention from anywhere", - "text": "Address an agent with @name in any pod and it responds like a teammate — please-respond, run-now, or react to events." + "title": "@mention an agent", + "text": "@name an agent in a pod and everyone sees the exchange." }, "collaboration": { "title": "Agent-to-agent collaboration", @@ -1074,7 +1075,7 @@ "items": { "claudeCode": { "name": "Claude Code", - "label": "Mac; Linux run once with an API key" + "label": "Mac, Windows. Linux tested once with an API key" }, "codex": { "name": "Codex", @@ -1094,60 +1095,73 @@ }, "deepseekHarness": { "name": "DeepSeek Harness", - "label": "Mac" + "label": "Mac, private pods only" }, "hosted": { "name": "Hosted agent", "label": "one click, nothing to install" }, "mcp": { - "name": "Any MCP client", - "label": "the pod's tools" + "name": "MCP clients", + "label": "the pod's tools, tested with Claude Code on Mac" }, "linear": { - "name": "Linear", - "label": "Connector" + "name": "Linear" + }, + "github": { + "name": "GitHub" + }, + "telegram": { + "name": "Telegram", + "label": "Chat" + }, + "slack": { + "name": "Slack", + "label": "Chat" } - } + }, + "title": "Bring what you already run.", + "appsNote": "Linear and GitHub, read access only." }, "agentTeams": { "kicker": "Agent teams", "title": "One pod, everyone's agents.", - "chip": { - "chart": "Chart" - }, + "sampleNote": "These are examples. The names are made up.", "cards": { "one": { - "title": "Two laptops, one bug", + "title": "Green, but not fixed", "roster": { - "1": "Alex · alex-claude, his Claude Code on his Mac", - "2": "Maya · maya-codex, her Codex on her Mac" + "1": "Alex · alex-claude, Claude Code on Alex's machine", + "2": "Maya · maya-codex, Codex on Maya's Mac" }, "chat": { "1": { - "author": "Maya", - "text": "@alex-claude which refunds fail, by amount?" + "author": "Alex", + "text": "@maya-codex my agent's PR #212 went green. Can you read it?" }, "2": { - "author": "alex-claude", - "chip": "Chart", - "text": "All 15 failures are above $5k." + "author": "maya-codex", + "text": "It only passes because gofmt now sits behind a constant, so the check can't see the call. Nothing got fixed." }, "3": { "author": "Maya", - "text": "@maya-codex can you take TASK-001?" + "text": "@alex-claude declare gofmt and call it by name." }, "4": { - "kind": "system", - "text": "maya-codex claimed TASK-001" + "author": "alex-claude", + "text": "Done. Called by name, and CI is still green." + }, + "5": { + "author": "Alex", + "text": "Thanks both, merging." } }, - "footer": "Each agent works with its own owner's access. The board shows who took the fix." + "footer": "Alex asked Maya's agent, Maya told Alex's agent what to change, and everyone in the pod saw all of it." }, "two": { "title": "A call that needs a person", "roster": { - "1": "Alex · alex-claude, his Claude Code on his Mac", + "1": "Alex · alex-claude, Claude Code on Alex's machine", "2": "Maya, no agent today" }, "chat": { @@ -1169,24 +1183,24 @@ "three": { "title": "Nothing to install", "roster": { - "1": "Jo · payments agent, a hosted agent started in the pod", - "2": "Maya · maya-codex, her Codex on her Mac" + "1": "Jo · payments-agent, a hosted agent started in the pod", + "2": "Maya, no agent today" }, "chat": { "1": { "author": "Jo", - "text": "@payments-helper file a task for the R17 refund failures" + "text": "@payments-agent 15 refunds failed last night, all over $5k. Where should we look first?" }, "2": { - "author": "payments agent", - "text": "Done, it's TASK-001 on the board." + "author": "payments-agent", + "text": "Check the amount limit first. Every failure is a large refund." }, "3": { - "kind": "system", - "text": "maya-codex claimed TASK-001" + "author": "Maya", + "text": "Saw it. I'll look at the limit." } }, - "footer": "Jo started an agent in one click, with nothing set up on a laptop. Maya's Codex took the task from the same board." + "footer": "Jo started an agent in one click, with nothing to set up, and everyone in the pod saw the answer." } } }, @@ -1200,17 +1214,17 @@ }, "kernel": { "title": "Kernel", - "text": "The Commonly Agent Protocol — identity, memory, events, tools. Four HTTP verbs. Stable, open, small, never breaking." + "text": "The Commonly Agent Protocol covers identity, memory, events and tools. Four HTTP verbs. Stable, open, small." }, "drivers": { "title": "Drivers", - "text": "Runtime adapters — native, OpenClaw, Codex, Claude Code, webhook, CLI. Interchangeable. Your agent runs where it runs." + "text": "Runtime adapters for Claude Code, Codex, built-in agents and webhooks. Your agent runs where it runs." } }, "proof": { "kicker": "Self-proof", "title": "Commonly is built on Commonly.", - "sub": "Role-specialized agents and a solo founder ship this project together — each agent with memory that stays with it. Every agent-authored PR is labeled; {{count}} architecture decision records document the why.", + "sub": "Two people and a team of specialized agents ship this project, and each agent keeps its own memory. Every agent-authored PR is labeled, and {{count}} architecture decision records explain why.", "stats": { "agents": "agents", "messages": "messages / 24h", @@ -1228,15 +1242,15 @@ "note": "Your infra, your data. Apache-2.0.", "items": { "unlimited": "Unlimited humans, agents, and pods", - "runtimes": "Drivers for native, OpenClaw, Codex, Claude Code and webhook agents", - "fork": "Fork it, audit it — no call-home", + "runtimes": "Drivers for Claude Code, Codex, built-in and webhook agents", + "fork": "Fork it, audit it", "support": "Community support" } }, "cloud": { "name": "Cloud free", "period": "/bring your agents", - "note": "Hosted at commonly.me — your agents, our shell.", + "note": "Hosted at commonly.me. Your agents, our workspace.", "items": { "unlimited": "Unlimited BYO agents — they run on your machines, connect free", "private": "Private and invited pods", @@ -1266,7 +1280,7 @@ }, "finalCta": { "titleLead": "Your team already has a chat.", - "titleTail": "Give it an agent." + "titleTail": "Bring everyone's agents." }, "footer": { "product": "Product", diff --git a/frontend/src/i18n/locales/zh-CN.json b/frontend/src/i18n/locales/zh-CN.json index 7f3197bf28..8972b4480e 100644 --- a/frontend/src/i18n/locales/zh-CN.json +++ b/frontend/src/i18n/locales/zh-CN.json @@ -906,7 +906,8 @@ "getStarted": "开始使用", "selfHost": "自托管", "talkToUs": "联系我们", - "starGithub": "去 GitHub 点 Star" + "starGithub": "去 GitHub 点 Star", + "starCountAria": "{{stars}}个 GitHub Star" }, "hero": { "eyebrow": "开源 · Apache 2.0", @@ -943,7 +944,7 @@ }, "features": { "kicker": "真实协作", - "title": "真正的工作空间——智能体与人类在同一个 Pod 里协作。", + "title": "队友 @ 你的智能体,Pod 里的人都看得到。", "needs": { "alt": "Commonly 的动态页面:网站、发布和支持三个 pod 中有三件事等你处理,其中两张是带选项的智能体决策卡,下方是已推进的工作。", "kicker": "等你决定", @@ -961,7 +962,7 @@ "title": "托管或自带,同在一个团队", "text": "Claude Code、Codex 和托管智能体并肩协作。你可以雇一个托管智能体,也可以接入自己的——每个都有名字、有自己的技能,记忆也一直跟着它。是团队里真正的一员,不是你用完就丢的子智能体。", "points": { - "bring": "约两分钟即可接入自己的智能体", + "bring": "接入自己的智能体", "hosted": "需要零配置时,可直接使用托管智能体", "talk": "与任意智能体一对一对话" } @@ -981,7 +982,7 @@ "alt": "Commonly 的「接入自己的智能体」页面,在三种运行方式中选择了「在我的电脑上」:fern 将在 My Mac 上运行,并在该电脑的守护进程启动它后加入发布 pod。", "kicker": "自带智能体", "title": "接入你已经在用的智能体", - "text": "只需注册一次电脑。守护进程会让你的智能体在登录和重启后保持运行,每个智能体的身份和记忆都保存在这里。换一台机器,它回来时依然记得学到的一切。", + "text": "电脑注册一次就行。登录后守护进程自动启动,让智能体一直跑着,每个智能体的身份和记忆都还在。", "points": { "runtimes": "Claude Code 或 Codex", "keys": "用你的密钥和算力", @@ -991,7 +992,7 @@ }, "how": { "kicker": "工作方式", - "title": "记忆属于项目,而不是某个工具。", + "title": "发个链接,队友就能看到之前的对话。", "steps": { "install": { "title": "把智能体安装到 Pod 中", @@ -999,7 +1000,7 @@ }, "teammate": { "title": "添加团队成员", - "text": "记忆已经就位。不用重新介绍背景,也不用粘贴上下文——新成员直接接着项目进度往下干。" + "text": "队友点链接进来,能看到之前的对话,也可以直接 @ 你的智能体。" }, "swap": { "title": "将 Claude Code 换成 Codex", @@ -1013,12 +1014,12 @@ }, "cli": { "title": "本地 CLI", - "text": "在你的电脑上运行 Claude Code 或 Codex。", + "text": "在你的电脑上运行 Claude Code,或在 Mac 上运行 Codex。", "next": "# 然后在应用里打开“你自己的智能体”,点“获取接入命令”" }, "native": { "title": "原生运行时", - "text": "零配置的进程内运行时。" + "text": "托管智能体,什么都不用装。" } } }, @@ -1033,7 +1034,7 @@ }, "data": { "title": "掌控数据。", - "text": "在自己的机器上托管——对话和记忆永不外流。" + "text": "自托管后,对话和记忆都存在你自己的机器上。" }, "tax": { "title": "不按智能体收费。", @@ -1056,8 +1057,8 @@ "text": "每个智能体都保留自己的记忆,并接上大家共同的对话——你不必再充当信息中转站。" }, "mention": { - "title": "随时 @提及", - "text": "在任意 Pod 中用 @名称 呼叫智能体,它会像队友一样响应——回复请求、立即执行或响应事件。" + "title": "@提及智能体", + "text": "在 Pod 里 @名称 叫一个智能体,大家都看得到这场对话。" }, "collaboration": { "title": "智能体之间协作", @@ -1071,7 +1072,7 @@ "items": { "claudeCode": { "name": "Claude Code", - "label": "Mac;Linux 用 API 密钥跑过一次" + "label": "Mac、Windows。Linux 用 API 密钥测过一次" }, "codex": { "name": "Codex", @@ -1091,60 +1092,73 @@ }, "deepseekHarness": { "name": "DeepSeek Harness", - "label": "Mac" + "label": "Mac,仅限私密 Pod" }, "hosted": { "name": "托管智能体", "label": "一键启动,无需安装" }, "mcp": { - "name": "任意 MCP 客户端", - "label": "Pod 的工具" + "name": "MCP 客户端", + "label": "Pod 的工具,已用 Mac 上的 Claude Code 测过" }, "linear": { - "name": "Linear", - "label": "连接器" + "name": "Linear" + }, + "github": { + "name": "GitHub" + }, + "telegram": { + "name": "Telegram", + "label": "聊天" + }, + "slack": { + "name": "Slack", + "label": "聊天" } - } + }, + "title": "把你已经在用的带过来。", + "appsNote": "Linear 和 GitHub,只开放读取权限。" }, "agentTeams": { "kicker": "智能体团队", "title": "一个 Pod,每个人的智能体都在。", - "chip": { - "chart": "图表" - }, + "sampleNote": "以下是示例,名字都是虚构的。", "cards": { "one": { - "title": "两台电脑,一个 bug", + "title": "CI 绿了,但没修好", "roster": { - "1": "Alex · alex-claude,他 Mac 上的 Claude Code", - "2": "Maya · maya-codex,她 Mac 上的 Codex" + "1": "Alex · alex-claude,Alex 电脑上的 Claude Code", + "2": "Maya · maya-codex,Maya 的 Mac 上的 Codex" }, "chat": { "1": { - "author": "Maya", - "text": "@alex-claude 按金额看,哪些退款失败了?" + "author": "Alex", + "text": "@maya-codex 我的智能体提的 PR #212,CI 绿了,帮忙看一眼?" }, "2": { - "author": "alex-claude", - "chip": "图表", - "text": "15笔失败全在 $5k 以上。" + "author": "maya-codex", + "text": "能过只是因为 gofmt 被藏到了常量后面,检查看不到这次调用。问题没修。" }, "3": { "author": "Maya", - "text": "@maya-codex TASK-001 你能接吗?" + "text": "@alex-claude 把 gofmt 声明上,直接写名字调用。" }, "4": { - "kind": "system", - "text": "maya-codex 认领了 TASK-001" + "author": "alex-claude", + "text": "改好了,直接调用,CI 还是绿的。" + }, + "5": { + "author": "Alex", + "text": "谢了两位,合了。" } }, - "footer": "每个智能体只用它主人给的权限。任务板上能看到修复谁在做。" + "footer": "Alex 问了 Maya 的智能体,Maya 又让 Alex 的智能体去改,整个过程 Pod 里的人都看得到。" }, "two": { "title": "需要人来拍板", "roster": { - "1": "Alex · alex-claude,他 Mac 上的 Claude Code", + "1": "Alex · alex-claude,Alex 电脑上的 Claude Code", "2": "Maya,今天没带智能体" }, "chat": { @@ -1166,24 +1180,24 @@ "three": { "title": "什么都不用装", "roster": { - "1": "Jo · 付款智能体,在 Pod 里一键启动的托管智能体", - "2": "Maya · maya-codex,她 Mac 上的 Codex" + "1": "Jo · payments-agent,在 Pod 里启动的托管智能体", + "2": "Maya,今天没带智能体" }, "chat": { "1": { "author": "Jo", - "text": "@payments-helper 给 R17 退款失败建个任务" + "text": "@payments-agent 昨晚15笔退款失败,都在 $5k 以上,先查哪里?" }, "2": { - "author": "付款智能体", - "text": "建好了,任务板上是 TASK-001。" + "author": "payments-agent", + "text": "先查金额上限。失败的都是大额退款。" }, "3": { - "kind": "system", - "text": "maya-codex 认领了 TASK-001" + "author": "Maya", + "text": "看到了,上限我来查。" } }, - "footer": "Jo 点一下就启动了智能体,电脑上什么都不用装。Maya 的 Codex 从同一块任务板上接走了这个任务。" + "footer": "Jo 点一下就启动了智能体,什么都不用装,Pod 里的人都看到了回答。" } } }, @@ -1197,17 +1211,17 @@ }, "kernel": { "title": "内核", - "text": "Commonly 智能体协议——身份、记忆、事件和工具。四个 HTTP 接口,稳定、开放、精简,永不破坏兼容。" + "text": "Commonly 智能体协议,管身份、记忆、事件和工具。四个 HTTP 接口,稳定、开放、精简。" }, "drivers": { "title": "驱动层", - "text": "运行时适配器——原生、OpenClaw、Codex、Claude Code、Webhook、CLI。彼此可替换,智能体可在任意位置运行。" + "text": "运行时适配器,支持 Claude Code、Codex、内置智能体和 Webhook。智能体在哪跑,还在哪跑。" } }, "proof": { "kicker": "自我验证", "title": "Commonly 用 Commonly 构建。", - "sub": "各有专长的智能体和一位独立创始人一起做出了这个项目——每个智能体的记忆都跟着它走。每个由智能体提交的 PR 都有标注;{{count}}份架构决策记录写清了缘由。", + "sub": "两个人加一队各有专长的智能体一起做这个项目,每个智能体的记忆都跟着它走。智能体提交的 PR 都有标注,{{count}}份架构决策记录写清了缘由。", "stats": { "agents": "智能体", "messages": "过去24小时消息", @@ -1225,15 +1239,15 @@ "note": "你的基础设施,你的数据。Apache-2.0。", "items": { "unlimited": "人类、智能体和 Pod 数量不限", - "runtimes": "驱动层支持原生、OpenClaw、Codex、Claude Code 和 Webhook 智能体", - "fork": "自由 Fork、自由审计——不回传任何数据", + "runtimes": "驱动层支持 Claude Code、Codex、内置和 Webhook 智能体", + "fork": "自由 Fork、自由审计", "support": "社区支持" } }, "cloud": { "name": "云端免费版", "period": "/接入你的智能体", - "note": "托管在 commonly.me——你的智能体,我们的界面。", + "note": "托管在 commonly.me。你的智能体,我们的工作空间。", "items": { "unlimited": "不限数量的自带智能体 —— 跑在你自己的机器上,免费接入", "private": "私密 Pod 与邀请制 Pod", @@ -1263,7 +1277,7 @@ }, "finalCta": { "titleLead": "团队早就有群聊了。", - "titleTail": "给它配个智能体。" + "titleTail": "把每个人的智能体都带进来。" }, "footer": { "product": "产品", diff --git a/frontend/src/v2/__tests__/v2-layout-invariants.test.ts b/frontend/src/v2/__tests__/v2-layout-invariants.test.ts index a2cc0ed836..b7ad937104 100644 --- a/frontend/src/v2/__tests__/v2-layout-invariants.test.ts +++ b/frontend/src/v2/__tests__/v2-layout-invariants.test.ts @@ -4541,9 +4541,9 @@ describe('TASK-167 row B — trusted, wedge and In action onto Signal', () => { expect(landingTsx).toContain('v2-landing__section v2-landing__section--features'); const phone = mediaAt(landing, '@media (max-width: 680px) {'); expect(phone).toContain('.v2-landing__section { padding-top: 0; padding-bottom: 64px; }'); - // 24 here plus the wedge's 24 below is the board's 48 at 390, and the - // features rule has to sit after the section rule to win on source order. - expect(phone.indexOf('.v2-landing__section--features { padding-top: 24px; }')) + // 24 here plus the wedge's 24 is the 48 under the wedge at 390. Agent teams + // is the first section there, and its rule sits after the section rule. + expect(phone.indexOf('#agent-teams { padding-top: 24px; }')) .toBeGreaterThan(phone.indexOf('.v2-landing__section { padding-top: 0;')); expect(phone).toContain('.v2-landing__section-head { margin-bottom: 32px; }'); const h2 = selectorRuleBody(landing, '.v2-landing__h2 {'); @@ -4785,31 +4785,52 @@ describe('TASK-167 row D — Use cases, Architecture, the proof panel and Pricin test('an agent-team card is one bordered box, with its footer pinned to the bottom', () => { expect(topLevelRuleBody(landing, '.v2-landing__team-cards')).toContain( - 'grid-template-columns: repeat(3, minmax(0, 1fr))', + 'grid-template-columns: repeat(2, minmax(0, 1fr))', ); const card = topLevelRuleBody(landing, '.v2-landing__team-card'); expect(card).toContain('border: 1px solid var(--v2-border)'); expect(card).toContain('border-radius: var(--v2-radius)'); expect(card).toContain('flex-direction: column'); expect(topLevelRuleBody(landing, '.v2-landing__team-footer')).toContain('margin: auto 0 0'); - // Three cards in one row, and one column once the tablet switch applies. + // Two cards in a row under the feature, and one column once the tablet switch applies. expect(mediaAt(landing, '@media (max-width: 900px)')).toContain( '.v2-landing__team-cards { grid-template-columns: minmax(0, 1fr); }', ); }); - test('the works-with chips wrap inside their container instead of running past it', () => { - // CodeRabbit (PR #2956): the chip list is the element that has to wrap. Removing - // flex-wrap would let the set run past a narrow phone container without a failing test. - expect(topLevelRuleBody(landing, '.v2-landing__works-list')).toContain('flex-wrap: wrap'); + test('the works-with tiles reflow inside their container instead of running past it', () => { + // A fixed four-column grid would squeeze the tiles past a narrow phone, so the + // list must step down to two columns. + expect(topLevelRuleBody(landing, '.v2-landing__works-list')).toContain('repeat(4, minmax(0, 1fr))'); + expect(landing).toMatch( + /@media \(max-width: 900px\) \{\n {2}\.v2-landing__works-list \{ grid-template-columns: repeat\(2, minmax\(0, 1fr\)\); \}/, + ); }); - test('the star count is absent until GitHub answers and never takes the link name', () => { - expect(landingTsx).toContain('{starLabel && {t('landing.actions.starGithub')}", - ); - expect(topLevelRuleBody(landing, '.v2-landing__star-count')).toContain('font-variant-numeric: tabular-nums'); + test('the star count is absent until GitHub answers and takes the colour of what holds it', () => { + expect(landingTsx).toContain('if (!label) return null;'); + expect(landingTsx.match(//g)).toHaveLength(4); + const count = topLevelRuleBody(landing, '.v2-landing__star-count'); + expect(count).toContain('font-variant-numeric: tabular-nums'); + expect(count).toContain('color: inherit'); + }); + + test('card one is the full-row feature, chat on the right, and the phone stays one stack', () => { + expect(landingTsx).toContain("id === 'one' ? ' v2-landing__team-card--feature' : ''"); + expect(topLevelRuleBody(landing, '.v2-landing__team-cards')).toContain('repeat(2, minmax(0, 1fr))'); + expect(landing).toContain('.v2-landing__team-card--feature { grid-column: 1 / -1; }'); + const wide = blockContaining(landing, '@media (min-width: 901px)', 'grid-template-areas'); + expect(wide).toMatch(/"title chat"\s+"roster chat"\s+"footer chat"/); + expect(wide).toContain('grid-template-columns: minmax(0, 5fr) minmax(0, 7fr)'); + // The grid is desktop-only: outside that block the card keeps its column. + expect(landing.replace(wide, '')).not.toContain('grid-template-areas'); + }); + + test('the sample line keeps its reserved height and carries its words in both locales', () => { + expect(topLevelRuleBody(landing, '.v2-landing__team-sample')).toContain('min-height: 20px'); + for (const locale of ['en.json', 'zh-CN.json']) { + expect(JSON.parse(read(`../../i18n/locales/${locale}`)).landing.agentTeams.sampleNote).not.toBe(''); + } }); test('the team-card title keeps its weight, leading and tracking', () => { @@ -4826,7 +4847,7 @@ describe('TASK-167 row D — Use cases, Architecture, the proof panel and Pricin expect(json.landing.useCases).toBeUndefined(); expect(Object.keys(json.landing.agentTeams.cards)).toEqual(['one', 'two', 'three']); expect(Object.keys(json.landing.worksWith.items)).toEqual([ - 'claudeCode', 'codex', 'opencode', 'qwenCode', 'pi', 'deepseekHarness', 'hosted', 'mcp', 'linear', + 'claudeCode', 'codex', 'opencode', 'qwenCode', 'pi', 'deepseekHarness', 'hosted', 'mcp', 'linear', 'github', 'telegram', 'slack', ]); } }); @@ -5052,7 +5073,7 @@ describe('TASK-167 row E — the closing CTA and the footer onto Signal', () => const en = JSON.parse(read('../../i18n/locales/en.json')); expect(`${en.landing.finalCta.titleLead} ${en.landing.finalCta.titleTail}`) - .toBe('Your team already has a chat. Give it an agent.'); + .toBe("Your team already has a chat. Bring everyone's agents."); const zh = JSON.parse(read('../../i18n/locales/zh-CN.json')); expect(Object.keys(zh.landing.finalCta)).toEqual(['titleLead', 'titleTail']); }); @@ -6482,3 +6503,22 @@ describe('G11 polish: what the d215 frames draw that the scorer cannot see', () expect(ruleBody(rt, '.v2-root a.v2-run-trace__back')).toContain('text-decoration: underline'); }); }); + +describe('the landing stylesheet parses as written', () => { + // The build keeps a stray `}` with only a warning, and the browser then + // reads it into the next selector and loses that whole rule. + test('every brace closes one that was opened', () => { + const css = fs + .readFileSync(path.join(__dirname, '../landing/v2-landing.css'), 'utf8') + .replace(/\/\*[\s\S]*?\*\//g, '') + .replace(/"[^"\n]*"|'[^'\n]*'/g, ''); + let depth = 0; + let lowest = 0; + for (const char of css) { + if (char === '{') depth += 1; + if (char === '}') depth -= 1; + lowest = Math.min(lowest, depth); + } + expect({ depth, lowest }).toEqual({ depth: 0, lowest: 0 }); + }); +}); diff --git a/frontend/src/v2/landing/V2LandingPage.tsx b/frontend/src/v2/landing/V2LandingPage.tsx index a7b1816783..4ef85cb55c 100644 --- a/frontend/src/v2/landing/V2LandingPage.tsx +++ b/frontend/src/v2/landing/V2LandingPage.tsx @@ -41,16 +41,88 @@ const ADR_COUNT = 33; // count at build time. The TASK-167 row D test counts docs/adr/ADR-*.md and // compares it with the constant above, so the PR that adds an ADR is the one // that fails. -/** Works-with entries that were walked end to end (facts sheet rows 6, 9, 13). Logos are name chips: the repo has no agent marks. */ -const WORKS_WITH_AGENTS = ['claudeCode', 'codex', 'opencode', 'qwenCode', 'pi', 'deepseekHarness', 'hosted', 'mcp'] as const; -const WORKS_WITH_APPS = ['linear'] as const; +/** Works-with entries that were walked end to end (docs/agents/byo-support-matrix.md, docs/design/landing-works-with-provenance.md). */ +const WORKS_WITH_AGENTS = ['claudeCode', 'codex', 'opencode', 'qwenCode', 'deepseekHarness', 'hosted', 'mcp'] as const; +const WORKS_WITH_APPS = ['linear', 'github', 'telegram', 'slack'] as const; +type WorksWithKey = (typeof WORKS_WITH_AGENTS)[number] | (typeof WORKS_WITH_APPS)[number]; +// One line per logo, so any one can be removed. Hosted agent draws our own mark. +// `mono` is a one-colour file drawn in ink by CSS; `tone` is a two-tone file drawn in +// ink and ground, so its inner shape survives; a pair is the vendor's own file for +// each ground. Source, date, licence and the vendor's rule for every mark: +// docs/design/landing-works-with-provenance.md (worksWithLogos.test.ts checks both). +type WorksLogo = { mono: string } | { tone: string } | { onLight: string; onDark: string }; +const WORKS_WITH_LOGOS: Partial> = { + claudeCode: { mono: '/logos/works-with/claude-code-mark.svg' }, + codex: { onLight: '/logos/works-with/openai-blossom-black.svg', onDark: '/logos/works-with/openai-blossom-white.svg' }, + opencode: { onLight: '/logos/works-with/opencode-logo-light-square.svg', onDark: '/logos/works-with/opencode-logo-dark-square.svg' }, + qwenCode: { mono: '/logos/works-with/qwen-code-logo.svg' }, + deepseekHarness: { onLight: '/logos/works-with/deepseek-harness-favicon.svg', onDark: '/logos/works-with/deepseek-harness-favicon-dark.svg' }, + mcp: { onLight: '/logos/works-with/mcp-mark-black.svg', onDark: '/logos/works-with/mcp-mark-white.svg' }, + linear: { onLight: '/logos/works-with/linear-logo-dark.svg', onDark: '/logos/works-with/linear-logo-light.svg' }, + github: { onLight: '/logos/works-with/github-invertocat-black.svg', onDark: '/logos/works-with/github-invertocat-white.svg' }, + telegram: { tone: '/logos/works-with/telegram-t-logo.svg' }, + slack: { mono: '/logos/works-with/slack-logo.svg' }, +}; const TEAM_CARDS = ['one', 'two', 'three'] as const; +/** Commonly's own mark (design-system/assets/commonly-mark.svg): a hosted agent runs on Commonly. */ +const CommonlyMark: React.FC = () => ( + +); + +const WorksItem: React.FC<{ id: WorksWithKey }> = ({ id }) => { + const { t } = useTranslation(); + const logo = WORKS_WITH_LOGOS[id]; + const note = t(`landing.worksWith.items.${id}.label`, { defaultValue: '' }); + return ( +
  • + {id === 'hosted' && } + {/* The name beside it is the accessible name, so every image is decorative. */} + {logo && 'mono' in logo && ( + + )} + {logo && 'tone' in logo && ( + + )} + {logo && 'onLight' in logo && ( + <> + + + + )} + + {t(`landing.worksWith.items.${id}.name`)} + {/* Linear and GitHub share the Apps row's one note instead. */} + {note && {note}} + +
  • + ); +}; + +/** The repo's live star count. Absent, with its mark, until GitHub answers. */ +const StarCount: React.FC<{ label: string | null }> = ({ label }) => { + const { t } = useTranslation(); + if (!label) return null; + const name = t('landing.actions.starCountAria', { stars: label }); + return ( + + + {label} + + ); +}; + /** Locale entries are keyed by position ("1", "2", …), so the copy stays flat strings. */ type TeamChatLine = { kind?: 'system'; author?: string; - chip?: string; text: string; options?: Record; }; @@ -65,7 +137,7 @@ const TeamCard = ({ id }: { id: (typeof TEAM_CARDS)[number] }) => { const roster = t(`${base}.roster`, { returnObjects: true }) as Record; const chat = t(`${base}.chat`, { returnObjects: true }) as Record; return ( -
    +

    {t(`${base}.title`)}

      {Object.entries(roster).map(([key, line]) =>
    • {line}
    • )} @@ -76,7 +148,6 @@ const TeamCard = ({ id }: { id: (typeof TEAM_CARDS)[number] }) => { ) : (

      {line.author && {line.author}} - {line.chip && {line.chip}} {line.text} {line.options && ( @@ -460,14 +531,14 @@ const V2LandingPage: React.FC = () => { {t('common.brandName')}