Repository navigation
feat(web): plain-language copy, one enforcement chip and a copy lint in CI (E2) - #369
Merged
Merged
Conversation
…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]>
|
Important Review skippedToo 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. ⚙️ Run configuration
📒 Files selected for processing (139)
You can disable this status message by setting the
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. Comment |
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The web half of epic E2 (Voice): copy a maintainer would write.
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."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.components/ui/enforced-by.tsxis 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 indocs/guides/collaborating.md.· counts toward Trending (turn off in Settings), but this network has nothing to turn off. It now reads· counts toward Trending. The logic moved intostarTerms()(lib/repo/star-shape.ts), which has unit tests. The shape is read from the bundled contract snapshot, so signed-out pages make no extragetDataContractrequest.forge-web/scripts/copy-lint.mjs(run withpnpm lint:copy, now a step of thewebjob) 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 withcopy-lint-ignore: <reason>. Unit tests are inscripts/copy-lint.test.ts, including one that asserts the shipped tree is clean.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.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) andpnpm test(5660 passed) all pass locally. Unit and e2e assertions on the changed copy are updated, andPrivateMembersErrornow carriesepochs, so the tests still check which key epoch is affected without printing it.69ceebc9fixes 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.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.Star · ≤0.000976 DASH · counts toward Trending (turn off in Settings)Star · ≤0.000976 DASH · counts toward Trending47cbc46c:networkName()instead of threeScreenshots
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-darkand-mobile-light), plusnotes.jsonwith the tooltip and footer text read from each page.Limits
57219c9d: "on chain" becomes "on Platform", and the webhook and storage notes). That commit is covered by the lint and the unit tests.dghelp 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