Skip to content

feat(activity): add print/PDF-friendly receipt styling (closes #459) - #562

Open
Vyacheslav-Tomashevskiy wants to merge 1 commit into
Northgate-Systems:mainfrom
Vyacheslav-Tomashevskiy:fix/459-receipt-print-pdf
Open

Vyacheslav-Tomashevskiy wants to merge 1 commit into
Northgate-Systems:mainfrom
Vyacheslav-Tomashevskiy:fix/459-receipt-print-pdf

Conversation

@Vyacheslav-Tomashevskiy

Copy link
Copy Markdown
Contributor

Closes #459.

What changed

  • Added a Print / Save as PDF button on activity/[id]/page.tsx (uses window.print(), no new deps).
  • Added a @media print block + reusable .no-print utility in globals.css that hides the header, sidebar, breadcrumb nav and non-printable controls (copy button, disabled escrow-release button) when printing.
  • Card borders/shadows/rounding are stripped in print mode so the receipt reads cleanly on paper/PDF, and the Stellar tx hash is shown as plain selectable text instead of the copy button.

Testing

  • npm run lint — no new errors/warnings (pre-existing unrelated errors in not-found.tsx/supabase.ts untouched).
  • npm run build — Turbopack compiles successfully; the only build failure is the pre-existing unrelated isValidStellarPublicKey TS error in src/lib/validations.ts (outside this change's scope).
  • Verified manually via Chrome print preview at desktop and mobile widths: header/sidebar/nav/buttons are hidden, receipt card renders full-width with clean borders, tx hash is readable plain text.

…ate-Systems#459)

- Add Print / Save as PDF button on the transaction detail page
- Hide nav/sidebar/header and non-essential interactive controls via
  print media query and a reusable .no-print utility
- Clean up card borders/shadows and show the raw tx hash as plain
  text when printing so the receipt reads well on paper/PDF
@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the codex723's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add print-friendly / export-as-PDF styling for transaction receipts

1 participant