Skip to content

fix: TASK-22452 receipt mechanical fixes - #3171

Closed
kushagrasarathe wants to merge 1 commit into
devfrom
fix/TASK-22452-receipts-mechanical
Closed

kushagrasarathe wants to merge 1 commit into
devfrom
fix/TASK-22452-receipts-mechanical

Conversation

@kushagrasarathe

Copy link
Copy Markdown
Contributor

Summary

PR-C (mechanical half) of the TASK-22452 audit:

  • PEANUT_LOGO → PEANUT_LOGO_BLACK on the receipt + ReceiptUnavailable (white wordmark on white page).
  • DataRow owns copy rows: reference/To/TxID/bank-account/transferId rows converted to allowCopy+copyValue (reference row now middleEllipsisAccount, last 4 visible); the shared copy glyph gains shrink-0 print:hidden.
  • DownloadReceiptPdfLink → real LinkButton; LinkButton grows download + renders external/download hrefs as plain anchors (kills next/link viewport-prefetch of the PDF route; DOM-identical for existing external consumers). Capacitor intercept preserved; its test passes unchanged.
  • ReceiptUnavailable: <Link><Button/></Link> → Button + router.push; legacy primary-soft → stroke.

Decision-blocked receipt items (CTA hierarchy, hasReceiptPage widening) are NOT here.

Task

TASK-22452 (audit section 2, PR-C mechanical)

Risks / breaking changes

  • LinkButton onClick signature widened to accept the event (zero-arg closures unaffected, ~40 consumers checked).
  • Visual: PDF link Body/S→Body/XS with 44px hit area + focus ring per link board 17980:17351; copy glyphs now hidden in print.

Flagged, not changed

  • ❓ Logo component gap: no DS Logo component — 8+ raw svg imports incl. a hand-transcribed PDF twin.
  • app/app page <a><Button> nesting — migration surface, out of scope.
  • DataRow value cell wraps (min-w-0 break-words) rather than single-line-ellipsizing — per-row ellipsis done at value construction; a DataRow-level rule needs a ruling.

QA

typecheck, prettier, TransactionDetails+0_Bruddle suites (42 suites, 438 pass; receipt-download-pdf test unchanged), new LinkButton download test, ds-lint ratchet green.

Screenshots: receipt visual deltas (black wordmark, ellipsized reference) — will attach with the stack's evidence pass.

Stacked on #3161 — retarget to dev after it merges.

…link (TASK-22452)

the white wordmark was invisible on the white receipt; five
hand-rolled value+copy rows bypass DataRow's overflow protection
and allowCopy; the PDF link was a raw-anchor LinkButton clone
with no hit area; the go-home CTA nested a Button inside a Link.
LinkButton grows external/download plain-anchor rendering so the
PDF route is never viewport-prefetched.
@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
peanut-wallet Ready Ready Preview Sep 15, 2026 9:23am UTC

Request Review

@notion-workspace

Copy link
Copy Markdown

ds smells

@coderabbitai

coderabbitai Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 01f0220a-d6b0-451f-b6d4-9b7c64c139a6

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

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

@kushagrasarathe

Copy link
Copy Markdown
Contributor Author

/chip review

@chip-peanut-bot chip-peanut-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Chip review — no blocking findings — this is not an approval

No findings in the receipt component migration or its link and copy behavior changes.

Checked clean

  • Verified the exact head SHA, supplied base SHA, merge base, trusted author, and eight-file diff scope.
  • Checked DataRow copy migrations for displayed-value and copied-value parity across counterparty, transaction hash, bank account, transfer ID, and public receipt reference rows.
  • Checked LinkButton plain-anchor behavior and DownloadReceiptPdfLink web and Capacitor paths, including new-tab isolation and URL encoding.
  • Checked ReceiptUnavailable navigation semantics, public receipt branding, keyboard behavior, and print-only copy-icon suppression against the design-system contract.
  • Exact-head substantive CI did not run for this stacked base; git diff --check passed, while focused local Jest execution was unavailable because the detached worktree has no current dependency installation.

Security review: did not run — this change has no security, privacy or money surface, so it was not asked. This review is one reviewer short.

Third opinion by claude-opus: 0 finding(s), marked with the model name. It answers only product truth, missing tests and the cross-repo contract, so treat its findings as advice.

Exact head: c8fe41208c44 · Context: repo, design · Took 12m (queued 7m)

@kushagrasarathe
kushagrasarathe changed the base branch from codex/TASK-22452-dev-ds-conformance to dev September 16, 2026 09:49
@kushagrasarathe

Copy link
Copy Markdown
Contributor Author

Closing in favor of #3225. The valid dark-logo and DataRow work from this PR is absorbed there as part of the full receipt rework. The PDF-link half was superseded by #3159, so #3171 no longer has an independent change to land.

This branch was successfully deployed

1 active deployment
Preview — c8fe4120 Deployed Sep 15, 2026 by vercel[bot]
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