Files
Gregory SchierandClaude Fable 5.2 35058cc3be Yaak Proxy: prose pass over the UI copy
Apply the approved wording table: labels stay short, explanations are one
full sentence about the user's traffic, and detail moves behind an info
icon on the first-run card, the body banners, the Settings Helper row and
the rejected card. One word per thing: traffic and flows, recorded,
truncated, domains, searches, the CLI, Retry.

Backend messages that reach the window change with them, with the tests
and harness fixtures that assert on the old text. The two working files
for the pass are removed from the branch.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 08:41:49 -07:00

22 lines
851 B
TypeScript

import { describe, expect, test } from "vite-plus/test";
import { lockedLine } from "./locked";
describe("lockedLine", () => {
test("points at the platform's key store when it refused", () => {
const lock = { keychain: true, message: "Traffic is locked: anything" };
expect(lockedLine(lock, "macos")).toBe(
"Allow Yaak Proxy to use its key in Keychain Access, then retry.",
);
expect(lockedLine(lock, "windows")).toContain("Credential Manager");
expect(lockedLine(lock, "linux")).toContain("your keyring");
});
test("gives any other reason without the title's words", () => {
const lock = {
keychain: false,
message: "Traffic is locked: the proxy is already running in the CLI (pid 4).",
};
expect(lockedLine(lock, "macos")).toBe("The proxy is already running in the CLI (pid 4).");
});
});