Skip to content

chore(console): remove em-dashes from copy and comments#71

Merged
hitakshiA merged 1 commit into
mainfrom
chore/console-remove-emdashes
Jul 11, 2026
Merged

chore(console): remove em-dashes from copy and comments#71
hitakshiA merged 1 commit into
mainfrom
chore/console-remove-emdashes

Conversation

@hitakshiA

@hitakshiA hitakshiA commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Removes every em-dash (—) from the console app + shared packages (357 occurrences across 91 files). Mechanical + safe ( never appears in code logic): spaced clause-separator becomes , ; any remaining becomes -.

Covers all screen/UI copy and comments so none linger.

Build ✓ · lint ✓ · 78/78 tests · 0 em-dashes remaining.

Greptile Summary

This PR removes em-dashes from console and shared package text.

  • Updated UI copy, aria labels, placeholders, and toast messages.
  • Replaced empty-value display markers with plain hyphens.
  • Cleaned comments, test descriptions, and SDK documentation text.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
apps/console/src/screens/Dashboard.tsx Updated display copy and the no-amount activity placeholder.
apps/console/src/demo/data.ts Updated demo text and the matching activity placeholder value.
apps/console/src/screens/Approvals.tsx Updated copy, labels, comments, and empty table fallbacks.
apps/console/src/screens/AuditLog.tsx Updated ceremony text, aria labels, comments, and empty placeholders.
packages/core/src/client.ts Updated SDK comments and documentation punctuation only.
packages/core/src/account-file.ts Updated one account-file error message punctuation mark.

Reviews (1): Last reviewed commit: "chore(console): remove em-dashes from co..." | Re-trigger Greptile

Sweep every em-dash (357 across the app + shared packages): spaced clause
separators become commas, the rest become hyphens. Clears the em-dash tell
from all user-facing copy and keeps the codebase consistent.
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR normalizes punctuation and wording across console screens, shared packages, comments, accessibility labels, fallback placeholders, test descriptions, and a few error messages. No exported declarations, component behavior, control flow, or test logic were changed.

Changes

Copy and documentation normalization

Layer / File(s) Summary
Console application and screen copy
apps/console/src/app/*, apps/console/src/demo/*, apps/console/src/lib/*, apps/console/src/screens/*
Updates comments, UI copy, accessibility labels, fallback placeholders, and demo strings, including hyphen replacements for missing-value displays.
Console UI primitives and send flow
apps/console/src/ui/*
Rewords UI primitive and send-ceremony documentation without changing component or state behavior.
Core package documentation and messages
packages/core/src/*
Normalizes module and API documentation, with selected encrypted-account and RPC error-message text updates.
Core test descriptions and diagnostics
packages/core/test/*, apps/console/src/lib/store.test.tsx
Updates test titles, comments, and warning text without changing assertions or execution.
Shared links, types, and UI documentation
packages/links/src/*, packages/types/src/*, packages/ui/src/*, packages/ui/test/*
Refreshes shared contract documentation and UI package comments without changing exported shapes or behavior.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 62.20% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately captures the em-dash cleanup, though it understates the shared-packages scope.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/console-remove-emdashes

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/console/src/screens/Dashboard.tsx`:
- Around line 2-5: Normalize the punctuation and phrasing at all three affected
sites: in apps/console/src/screens/Dashboard.tsx lines 2-5, remove the
duplicated comma in “figure,, when”; in apps/console/src/screens/Contractors.tsx
lines 237-238, rewrite the server-side rate-card tooltip for grammatical
clarity; and in apps/console/src/screens/Contractors.tsx lines 479-487, rewrite
the handle and monthly-rate hints to eliminate comma splices and dangling
phrasing.

In `@apps/console/src/screens/Grants.tsx`:
- Around line 333-335: Replace the comma splice in the paragraph around the
export statement at apps/console/src/screens/Grants.tsx lines 333-335 with a
period or semicolon separating “for a period” from “the total is proven
on-chain.” Apply the same punctuation correction at
apps/console/src/screens/Grants.tsx lines 405-407, separating “you can't undo
it” from “you'd have to grant new access.”

In `@packages/core/src/org.ts`:
- Line 112: Correct the punctuation in the comments at
packages/core/src/org.ts:112-112 by separating the independent clauses with a
period or semicolon; at packages/core/src/reserves.ts:33-33 by replacing the
comma after “Pure” with appropriate sentence punctuation; and at
packages/core/src/zklogin.ts:45-45 by removing the comma between “binding” and
“commits”.

In `@packages/types/src/api.ts`:
- Line 121: Preserve sentence boundaries in the documentation comments by
replacing comma splices: update the `/api/live` description in
packages/types/src/api.ts (line 121), the documentation clauses in
packages/ui/src/index.ts (line 8), and the comma before “it is” plus the comma
at the later site in packages/ui/src/payment-state.ts (lines 4 and 71) with
semicolons, colons, conjunctions, or separate sentences.

In `@packages/ui/src/proving-state.ts`:
- Line 25: Rewrite the comment above the forwarded internal info log as a
complete, clear sentence, avoiding the current fragment and mixed
noun/imperative phrasing while preserving that the state remains “proving” and
the log detail is retained.

In `@packages/ui/src/send-sequence.test.ts`:
- Line 7: Update the describe suite title in the send sequence tests to use
neutral, descriptive wording focused on phase mapping, removing the “slave to
the machine” phrasing while preserving the test behavior.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ac4f7c10-07ab-445d-9f28-d708747673f9

📥 Commits

Reviewing files that changed from the base of the PR and between 4077868 and 57bf083.

📒 Files selected for processing (91)
  • apps/console/src/app/NetworkMenu.tsx
  • apps/console/src/app/RootGate.tsx
  • apps/console/src/app/Shell.tsx
  • apps/console/src/app/nav.ts
  • apps/console/src/demo/api.ts
  • apps/console/src/demo/data.ts
  • apps/console/src/lib/copy.ts
  • apps/console/src/lib/format.ts
  • apps/console/src/lib/network.ts
  • apps/console/src/lib/store.test.tsx
  • apps/console/src/lib/store.tsx
  • apps/console/src/screens/Approvals.tsx
  • apps/console/src/screens/AuditLog.tsx
  • apps/console/src/screens/Contractors.tsx
  • apps/console/src/screens/Dashboard.tsx
  • apps/console/src/screens/Grants.tsx
  • apps/console/src/screens/Invoices.tsx
  • apps/console/src/screens/Pay.tsx
  • apps/console/src/screens/Settings.tsx
  • apps/console/src/ui/Logo.tsx
  • apps/console/src/ui/SendCeremony.test.tsx
  • apps/console/src/ui/SendCeremony.tsx
  • apps/console/src/ui/controls.tsx
  • apps/console/src/ui/primitives.tsx
  • packages/core/src/account-file.ts
  • packages/core/src/account.test.ts
  • packages/core/src/account.ts
  • packages/core/src/client.ts
  • packages/core/src/crypto/bytes.ts
  • packages/core/src/crypto/poseidon2.ts
  • packages/core/src/crypto/random.ts
  • packages/core/src/index.browser.ts
  • packages/core/src/index.ts
  • packages/core/src/kybcredential.ts
  • packages/core/src/merkle.ts
  • packages/core/src/mvk-registry.test.ts
  • packages/core/src/mvk-registry.ts
  • packages/core/src/notes.ts
  • packages/core/src/onboard.ts
  • packages/core/src/org.ts
  • packages/core/src/orgauth.ts
  • packages/core/src/payoutinnocence.ts
  • packages/core/src/payrollcomp.ts
  • packages/core/src/pool.ts
  • packages/core/src/prover.ts
  • packages/core/src/relay.ts
  • packages/core/src/reserves.ts
  • packages/core/src/scanner.ts
  • packages/core/src/scval.ts
  • packages/core/src/spendingcap.ts
  • packages/core/src/stellar-rpc.ts
  • packages/core/src/stellar.ts
  • packages/core/src/store.ts
  • packages/core/src/sum.ts
  • packages/core/src/tx-signer.ts
  • packages/core/src/viewkeys.ts
  • packages/core/src/zklogin.ts
  • packages/core/test/circuits.test.ts
  • packages/core/test/crypto.test.ts
  • packages/core/test/joinsplit-org.test.ts
  • packages/core/test/kyc-issuer-integration.test.ts
  • packages/core/test/mvk-registry.test.ts
  • packages/core/test/notekey.test.ts
  • packages/core/test/org-note-spend.test.ts
  • packages/core/test/org-spend-auth.test.ts
  • packages/core/test/parity.test.ts
  • packages/core/test/reserves.test.ts
  • packages/core/test/scanner.test.ts
  • packages/core/test/selectnotes.test.ts
  • packages/core/test/tx-signer.test.ts
  • packages/core/test/wasm.test.ts
  • packages/links/src/index.ts
  • packages/types/src/accounts.ts
  • packages/types/src/api.ts
  • packages/types/src/approvals.ts
  • packages/types/src/common.ts
  • packages/types/src/compliance.ts
  • packages/types/src/index.ts
  • packages/types/src/invoices.ts
  • packages/types/src/org.ts
  • packages/types/src/payments.ts
  • packages/ui/src/balance.ts
  • packages/ui/src/format.ts
  • packages/ui/src/hooks.ts
  • packages/ui/src/index.ts
  • packages/ui/src/payment-state.ts
  • packages/ui/src/proving-state.ts
  • packages/ui/src/send-sequence.test.ts
  • packages/ui/src/send-sequence.ts
  • packages/ui/src/wallet-state.ts
  • packages/ui/test/format.test.ts

Comment on lines +2 to +5
* Dashboard / Overview, calm, dense enterprise-finance home. A compact setup
* banner (only when setup is unfinished), the private treasury balance, the one
* approval awaiting the current member, and a real recent-activity table. Amounts
* follow one rule: •••••• only when the viewer can't see the figure, when there
* follow one rule: •••••• only when the viewer can't see the figure,, when there

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct punctuation-normalization copy regressions.

The sweep left several strings with duplicated punctuation or comma-splice phrasing:

  • apps/console/src/screens/Dashboard.tsx#L2-L5: remove the duplicated comma in figure,, when.
  • apps/console/src/screens/Contractors.tsx#L237-L238: rewrite the server-side rate-card tooltip for grammatical clarity.
  • apps/console/src/screens/Contractors.tsx#L479-L487: rewrite the handle and monthly-rate hints to avoid comma splices and dangling phrasing.
📍 Affects 2 files
  • apps/console/src/screens/Dashboard.tsx#L2-L5 (this comment)
  • apps/console/src/screens/Contractors.tsx#L237-L238
  • apps/console/src/screens/Contractors.tsx#L479-L487
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/console/src/screens/Dashboard.tsx` around lines 2 - 5, Normalize the
punctuation and phrasing at all three affected sites: in
apps/console/src/screens/Dashboard.tsx lines 2-5, remove the duplicated comma in
“figure,, when”; in apps/console/src/screens/Contractors.tsx lines 237-238,
rewrite the server-side rate-card tooltip for grammatical clarity; and in
apps/console/src/screens/Contractors.tsx lines 479-487, rewrite the handle and
monthly-rate hints to eliminate comma splices and dangling phrasing.

Comment on lines +333 to 335
Export a network-verified statement of what you paid out for a period, the total is proven on-chain; the individual
salaries stay hidden. The file embeds the proof so your auditor can re-verify it independently.
</p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Avoid comma splices introduced by the punctuation sweep.

Replacing the em-dash with a comma makes both sentences grammatically incorrect. Use a period or semicolon at each site.

  • apps/console/src/screens/Grants.tsx#L333-L335: Separate “for a period” from “the total is proven on-chain.”
  • apps/console/src/screens/Grants.tsx#L405-L407: Separate “you can't undo it” from “you'd have to grant new access.”
📍 Affects 1 file
  • apps/console/src/screens/Grants.tsx#L333-L335 (this comment)
  • apps/console/src/screens/Grants.tsx#L405-L407
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/console/src/screens/Grants.tsx` around lines 333 - 335, Replace the
comma splice in the paragraph around the export statement at
apps/console/src/screens/Grants.tsx lines 333-335 with a period or semicolon
separating “for a period” from “the total is proven on-chain.” Apply the same
punctuation correction at apps/console/src/screens/Grants.tsx lines 405-407,
separating “you can't undo it” from “you'd have to grant new access.”

Comment thread packages/core/src/org.ts
* spendMessage = Poseidon(nullifier0, nullifier1, outCommitment0, outCommitment1).
* Derived from the (public) nullifiers + output commitments, so any change to
* the spend invalidates the signatures they must be collected LAST.
* the spend invalidates the signatures, they must be collected LAST.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the punctuation introduced by the normalization sweep.

These comments remain behaviorally harmless but are grammatically incorrect or ambiguous:

  • packages/core/src/org.ts#L112-L112: separate the two independent clauses with a period or semicolon.
  • packages/core/src/reserves.ts#L33-L33: replace the comma after “Pure” with appropriate sentence punctuation.
  • packages/core/src/zklogin.ts#L45-L45: remove the comma between “binding” and “commits”.
📍 Affects 3 files
  • packages/core/src/org.ts#L112-L112 (this comment)
  • packages/core/src/reserves.ts#L33-L33
  • packages/core/src/zklogin.ts#L45-L45
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/core/src/org.ts` at line 112, Correct the punctuation in the
comments at packages/core/src/org.ts:112-112 by separating the independent
clauses with a period or semicolon; at packages/core/src/reserves.ts:33-33 by
replacing the comma after “Pure” with appropriate sentence punctuation; and at
packages/core/src/zklogin.ts:45-45 by removing the comma between “binding” and
“commits”.

Comment thread packages/types/src/api.ts
}

/** GET /api/live is the BFF wired to live testnet, and if not, why. */
/** GET /api/live, is the BFF wired to live testnet, and if not, why. */

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Preserve sentence boundaries during punctuation normalization.

Several replacements introduce comma splices. Use semicolons, colons, conjunctions, or separate sentences at each site.

  • packages/types/src/api.ts#L121-L121: rephrase the /api/live description or replace the comma after the endpoint.
  • packages/ui/src/index.ts#L8-L8: replace the comma between the documentation clauses with a semicolon or conjunction.
  • packages/ui/src/payment-state.ts#L4-L4: replace the comma before “it is” with a semicolon.
  • packages/ui/src/payment-state.ts#L71-L71: replace the comma with a semicolon.
📍 Affects 3 files
  • packages/types/src/api.ts#L121-L121 (this comment)
  • packages/ui/src/index.ts#L8-L8
  • packages/ui/src/payment-state.ts#L4-L4
  • packages/ui/src/payment-state.ts#L71-L71
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/types/src/api.ts` at line 121, Preserve sentence boundaries in the
documentation comments by replacing comma splices: update the `/api/live`
description in packages/types/src/api.ts (line 121), the documentation clauses
in packages/ui/src/index.ts (line 8), and the comma before “it is” plus the
comma at the later site in packages/ui/src/payment-state.ts (lines 4 and 71)
with semicolons, colons, conjunctions, or separate sentences.

if (stage === "done") return { phase: "done", label: "Proof ready", raw: stage };
if (stage === "proving") return { phase: "proving", label: "Generating proof on your device…", raw: stage };
// A forwarded internal info log stay in "proving" but keep the detail.
// A forwarded internal info log, stay in "proving" but keep the detail.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Clarify the forwarded-log comment.

The current wording is a fragment and awkwardly mixes a noun with an imperative.

Suggested wording
-  // A forwarded internal info log, stay in "proving" but keep the detail.
+  // Forwarded internal info logs keep the phase in "proving" while preserving detail.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// A forwarded internal info log, stay in "proving" but keep the detail.
// Forwarded internal info logs keep the phase in "proving" while preserving detail.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui/src/proving-state.ts` at line 25, Rewrite the comment above the
forwarded internal info log as a complete, clear sentence, avoiding the current
fragment and mixed noun/imperative phrasing while preserving that the state
remains “proving” and the log detail is retained.

const at = (phase: PaymentState["phase"], extra: Partial<PaymentState> = {}): PaymentState => ({ phase, ...extra });

describe("send ceremony phase mapping (slave to the machine)", () => {
describe("send ceremony, phase mapping (slave to the machine)", () => {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Use neutral, descriptive test-suite wording.

"slave to the machine" is ambiguous and distracts from the phase-mapping behavior. Prefer a direct title such as "send ceremony, phase mapping".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@packages/ui/src/send-sequence.test.ts` at line 7, Update the describe suite
title in the send sequence tests to use neutral, descriptive wording focused on
phase mapping, removing the “slave to the machine” phrasing while preserving the
test behavior.

@hitakshiA
hitakshiA merged commit 12ee9cd into main Jul 11, 2026
3 checks passed
@hitakshiA
hitakshiA deleted the chore/console-remove-emdashes branch July 11, 2026 12:55
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