Skip to content

feat(web): plain-language copy, one enforcement chip and a copy lint in CI (E2) - #369

Merged
PastaPastaPasta merged 11 commits into
masterfrom
feat/e2-voice-web
Oct 4, 2026
Merged

PastaPastaPasta merged 11 commits into
masterfrom
feat/e2-voice-web

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

What

The web half of epic E2 (Voice): copy a maintainer would write.

  • Internal identifiers are gone from the UI. No more FORGE_RULES_V2, objectLocator, packManifest, forge-v2, RC1/RC2, "fold", "consensus", "client rule", "document" or "on chain" in strings users read. Examples: the Verification card now says "Built from the repo's update history, checked against Platform proofs."; the merge steps say "Record the upload"; the footer says "Dash Forge: git hosting with no server. Your browser verifies what it shows."
  • No UI string is over 40 words. Long help text (Explore's Trending note, Security, the deposit wait, the contracts-missing state, the start page, and others) is rewritten to one or two sentences.
  • Write errors follow three steps (lib/view/write-errors.ts): what happened, whether you were charged ("You weren't charged."), and what to do next. A Platform error code appears last, and only when no sentence explains the refusal. "Platform refused it:" is gone.
  • One enforcement pattern. components/ui/enforced-by.tsx is a chip, either Enforced by Dash Platform or Forge apps enforce this. It replaces the prose variants in Settings (protected branches, branch policy, members, archive), the merge box and the approvals list. It links to a new "Who enforces what" section in docs/guides/collaborating.md.
  • Signed-out Star tooltip fixed. The star shape is now read for every viewer. On sakura the tooltip read · counts toward Trending (turn off in Settings), but this network has nothing to turn off. It now reads · counts toward Trending. The logic moved into starTerms() (lib/repo/star-shape.ts), which has unit tests. The shape is read from the bundled contract snapshot, so signed-out pages make no extra getDataContract request.
  • Copy lint in CI. forge-web/scripts/copy-lint.mjs (run with pnpm lint:copy, now a step of the web job) pulls every user-visible string out of the TypeScript AST: JSX text, whole paragraphs, prose attributes, messages, and the literals inside template interpolations. It fails on banned terms, (s) plurals and strings over 40 words. Developer-only strings opt out with copy-lint-ignore: <reason>. Unit tests are in scripts/copy-lint.test.ts, including one that asserts the shipped tree is clean.
  • Style guide section C (docs/design/style-guide.md) adds the voice rules, tone by moment, the banned list (kept in step with the lint) and the terminology glossary.
  • Glossary applied. Settings → Collaborators becomes Members. "Recovery words" becomes "recovery phrase". The new networkName() names networks as "devnet sakura" in every not-deployed message.

Why

The agent-isms deep dive (R1, R3, R4, R5, R6, R7, R8, R12) found protocol jargon and 40–96-word help text across the main flows, nine different ways of saying who enforces a rule, and a signed-out Star tooltip that offered a setting the network doesn't have. Most copy is written by agents, so the lint is what keeps this from coming back.

How tested

  • pnpm typecheck, pnpm lint, pnpm lint:copy (clean) and pnpm test (5660 passed) all pass locally. Unit and e2e assertions on the changed copy are updated, and PrivateMembersError now carries epochs, so the tests still check which key epoch is affected without printing it.
  • The first Playwright run on sakura failed 8 tests, and 69ceebc9 fixes all of them: the request budget (the signed-out star-shape read), the 44 px touch target (the enforcement chip now has a touch hit area) and two Verification specs that still expected the old wording. Those 8 tests pass locally against sakura with a sakura build.
  • Built for sakura (NEXT_PUBLIC_NETWORK=devnet NEXT_PUBLIC_DEVNET_NAME=sakura pnpm build), served locally, and compared with the live site (master) at 1280 px light and dark and 390 px light.
  • The Star tooltip, read signed out on forge-v2-demo:
    • before: Star · ≤0.000976 DASH · counts toward Trending (turn off in Settings)
    • after: Star · ≤0.000976 DASH · counts toward Trending
  • A code review (high effort) ran on the first commit. Its valid findings are fixed in 47cbc46c:
    • the lint now checks literals inside interpolations
    • edit dialogs no longer call a private repo's history "public"
    • the read-only banner also shows when the role read fails
    • one networkName() instead of three
    • the unknown-shape star label
    • the beat-shape Trending note

Screenshots

Before and after: /Users/pasta/workspace/dash-forge-qa/evidence/p0/voice/{before,after}/ (home, new-signed-out, explore, repo-home, repo-settings, pull-7, each as -desktop-light, -desktop-dark and -mobile-light), plus notes.json with the tooltip and footer text read from each page.

Limits

  • The after screenshots come from the build before the last copy commit (57219c9d: "on chain" becomes "on Platform", and the webhook and storage notes). That commit is covered by the lint and the unit tests.
  • dg help and output (the (s) plurals, prices, short ids and help snapshot test) and the docs restructure (Networks page, errors.md) are follow-up PRs in this stream.

🤖 Generated with Claude Code

PastaPastaPasta and others added 5 commits October 4, 2026 11:58
…in CI

Purge internal identifiers (FORGE_RULES_V2, objectLocator, packManifest, forge-v2, fold, consensus, client rule) from user-visible web strings, rewrite every UI string over 40 words, and give write errors a what happened / were you charged / what next shape.

Add the EnforcedBy chip (Enforced by Dash Platform / Forge apps enforce this) in place of the prose variants, linked to a new Who enforces what section in the collaborating guide.

Fix the signed-out Star tooltip: the star shape is read for every viewer, so a fused-star network no longer offers a Trending switch it does not have.

Add scripts/copy-lint.mjs (pnpm lint:copy, run in CI) with unit tests, the Voice and tone section and glossary in docs/design/style-guide.md, and rename Settings > Collaborators to Members per the glossary.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Check copy inside template interpolations, keep private-repo edit dialogs from calling history public, label an unknown star shape without naming a switch, show the read-only banner when the role read fails, and name networks through networkName() in every not-deployed message.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…nifest copy

Ban on chain / on-chain in the copy lint per the glossary, and reword the webhook and storage notes that still named forge-relay and pack manifests.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 139 files, which is 39 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Check out review usage here.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f918e051-c92b-485a-aa61-fabf34e4fb2f
📥 Commits

Reviewing files that changed from the base of the PR and between 83a7ddd and 4a5bbf2.

📒 Files selected for processing (139)
  • .github/workflows/ci.yml
  • docs/design/style-guide.md
  • docs/guides/collaborating.md
  • forge-web/app/explore/client.tsx
  • forge-web/app/layout.tsx
  • forge-web/app/login/page.tsx
  • forge-web/app/new/page.tsx
  • forge-web/app/page.tsx
  • forge-web/app/settings/profile/page.tsx
  • forge-web/app/settings/storage/page.tsx
  • forge-web/app/start/page.tsx
  • forge-web/components/app-footer.tsx
  • forge-web/components/auth/create-identity-flow.test.tsx
  • forge-web/components/auth/create-identity-flow.tsx
  • forge-web/components/auth/wallet-connect-flow.tsx
  • forge-web/components/encryption-key-panel.tsx
  • forge-web/components/funds-copy-qw3.test.ts
  • forge-web/components/gateways-field.tsx
  • forge-web/components/identity-top-up-flow.tsx
  • forge-web/components/key-revoke-dialog.test.tsx
  • forge-web/components/key-revoke-dialog.tsx
  • forge-web/components/key-top-up-dialog.tsx
  • forge-web/components/keys-panel.tsx
  • forge-web/components/login-modal.tsx
  • forge-web/components/mirror/mirror-steps.tsx
  • forge-web/components/mirror/mirror-wizard.tsx
  • forge-web/components/mirror/workflow-step.test.tsx
  • forge-web/components/pending-renewal.tsx
  • forge-web/components/profile-content.tsx
  • forge-web/components/profile-settings.tsx
  • forge-web/components/repo/approvals.tsx
  • forge-web/components/repo/browse-boundary.tsx
  • forge-web/components/repo/clone-box.tsx
  • forge-web/components/repo/code-owners.tsx
  • forge-web/components/repo/fork-button.tsx
  • forge-web/components/repo/hidden-note.tsx
  • forge-web/components/repo/issue-content.tsx
  • forge-web/components/repo/issues-content.tsx
  • forge-web/components/repo/long-body.tsx
  • forge-web/components/repo/merge-panel.tsx
  • forge-web/components/repo/moderation.tsx
  • forge-web/components/repo/new-release.tsx
  • forge-web/components/repo/private-members.tsx
  • forge-web/components/repo/pull-content.tsx
  • forge-web/components/repo/ref-switcher.tsx
  • forge-web/components/repo/repo-rail.tsx
  • forge-web/components/repo/repo-settings-sections.tsx
  • forge-web/components/repo/settings-content.test.tsx
  • forge-web/components/repo/settings-content.tsx
  • forge-web/components/repo/star-button.tsx
  • forge-web/components/repo/storage-unreachable.tsx
  • forge-web/components/repo/webhook-settings.tsx
  • forge-web/components/security-panel.tsx
  • forge-web/components/signing-keys-section.tsx
  • forge-web/components/storage/profile-form.tsx
  • forge-web/components/storage/repo-storage-policy.test.tsx
  • forge-web/components/storage/repo-storage-policy.tsx
  • forge-web/components/storage/storage-wizard.tsx
  • forge-web/components/top-up-stays.ts
  • forge-web/components/trending-pref-panel.test.tsx
  • forge-web/components/trending-pref-panel.tsx
  • forge-web/components/ui/contracts-missing.test.tsx
  • forge-web/components/ui/contracts-missing.tsx
  • forge-web/components/ui/enforced-by.tsx
  • forge-web/components/ui/network-badge.tsx
  • forge-web/e2e/a11y.spec.ts
  • forge-web/e2e/browse-cache-invalidation.spec.ts
  • forge-web/e2e/contracts-missing.spec.ts
  • forge-web/e2e/create-identity-recovery.spec.ts
  • forge-web/e2e/fallback-browse.spec.ts
  • forge-web/e2e/repo-settings.spec.ts
  • forge-web/e2e/review-round-trip-web.spec.ts
  • forge-web/e2e/signin-resilience.spec.ts
  • forge-web/e2e/v2-auth.spec.ts
  • forge-web/e2e/v2-home.spec.ts
  • forge-web/e2e/v2-private-members.spec.ts
  • forge-web/e2e/v2-pulls.spec.ts
  • forge-web/e2e/v2-reads.spec.ts
  • forge-web/e2e/write-refusals.spec.ts
  • forge-web/e2e/zero-backend.spec.ts
  • forge-web/lib/auth/controller.ts
  • forge-web/lib/auth/create-identity.test.ts
  • forge-web/lib/auth/create-identity.ts
  • forge-web/lib/auth/encryption-key.ts
  • forge-web/lib/auth/group-trust.test.ts
  • forge-web/lib/auth/group-trust.ts
  • forge-web/lib/auth/key-safety.test.ts
  • forge-web/lib/auth/limited-key.ts
  • forge-web/lib/auth/signin-messages.test.ts
  • forge-web/lib/auth/vault.ts
  • forge-web/lib/constants.test.ts
  • forge-web/lib/constants.ts
  • forge-web/lib/devnet-notice.test.ts
  • forge-web/lib/devnet-notice.ts
  • forge-web/lib/docs-links.ts
  • forge-web/lib/layout.ts
  • forge-web/lib/merge/branch-runner.test.ts
  • forge-web/lib/merge/branch-runner.ts
  • forge-web/lib/merge/locator.ts
  • forge-web/lib/merge/runner.ts
  • forge-web/lib/mirror/wizard.ts
  • forge-web/lib/private/doc.ts
  • forge-web/lib/repo/index.ts
  • forge-web/lib/repo/members.ts
  • forge-web/lib/repo/new-release.ts
  • forge-web/lib/repo/private-members.ts
  • forge-web/lib/repo/private-rotation.test.ts
  • forge-web/lib/repo/releases.ts
  • forge-web/lib/repo/source.test.ts
  • forge-web/lib/repo/source.ts
  • forge-web/lib/repo/star-shape.ts
  • forge-web/lib/repo/star-terms.test.ts
  • forge-web/lib/repo/trending.test.ts
  • forge-web/lib/repo/trending.ts
  • forge-web/lib/repo/webhooks.ts
  • forge-web/lib/repo/writes.ts
  • forge-web/lib/rules/rc1-client-rules.test.ts
  • forge-web/lib/sdk/composite.ts
  • forge-web/lib/sdk/query.ts
  • forge-web/lib/sdk/rc1-validate.ts
  • forge-web/lib/sdk/write.test.ts
  • forge-web/lib/sdk/write.ts
  • forge-web/lib/spend-toast.ts
  • forge-web/lib/spend.ts
  • forge-web/lib/storage/cors.ts
  • forge-web/lib/storage/probe.ts
  • forge-web/lib/storage/profiles.ts
  • forge-web/lib/storage/storage.test.ts
  • forge-web/lib/storage/upload.ts
  • forge-web/lib/view/platform-failure.ts
  • forge-web/lib/view/pull-actions.test.ts
  • forge-web/lib/view/pull-actions.ts
  • forge-web/lib/view/trust.test.ts
  • forge-web/lib/view/trust.ts
  • forge-web/lib/view/write-errors.test.ts
  • forge-web/lib/view/write-errors.ts
  • forge-web/package.json
  • forge-web/scripts/copy-lint.mjs
  • forge-web/scripts/copy-lint.test.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

PastaPastaPasta and others added 3 commits October 4, 2026 15:00
…ion specs within the e2e gates

The star shape is now read for every viewer, so a signed-out page fetched forge-community and broke the no-getDataContract budget. Read the shape from the bundled contract snapshot first and fetch only without one. Give the EnforcedBy chip a 44 px touch hit area, and update the Verification specs to the new copy.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@PastaPastaPasta
PastaPastaPasta merged commit e2e2b0c into master Oct 4, 2026
15 checks passed
@PastaPastaPasta
PastaPastaPasta deleted the feat/e2-voice-web branch October 4, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant