Skip to content

feat(links): render and download short-link QR codes - #45

Draft
brennenho wants to merge 1 commit into
brennen/demo-mainfrom
brennen/demo-ctc-42
Draft

brennenho wants to merge 1 commit into
brennen/demo-mainfrom
brennen/demo-ctc-42

Conversation

@brennenho

Copy link
Copy Markdown
Contributor

Summary

Render a QR code for the exact short URL displayed by the links tool and let the user save the preview as a standalone SVG. Implements CTC-42.

Changes

  • CTC-41 can import ShortLinkQr from @/features/links/short-link-qr and render <ShortLinkQr shortUrl={shortUrl} /> alongside the created link.
  • The download serializes the displayed SVG. The four-module quiet zone is included in both the preview and the file.
  • CTC-43 can supply logoDataUrl to center an embedded image and use higher error correction. The component generates the code locally using qrcode.react.

Testing

  • Ran pnpm check. Formatting, ESLint, TypeScript, and all 96 tests passed.
  • Mounted the component on a temporary Chromium test page, clicked Download QR code (SVG), and reopened the downloaded file. OpenCV independently decoded the preview and export to the exact displayed short URL.
  • Updated the URL in the mounted component and supplied a test logo. Both scans returned the updated URL, and all four decoded URLs followed a local HTTP 302 to the expected fixture destination.
  • Verification used a local redirect fixture. The real tool page and public redirect are covered by CTC-41 and CTC-40.

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

CTC-42

@github-actions

Copy link
Copy Markdown

Preview deployment

Open preview ↗

Last deployed 2026-11-19T04:16:22Z

Commit Workflow
c168113 Run #72 · attempt 1

Fallback preview

This branch was successfully deployed

1 active deployment
pr-45 — c1681130 Deployed Nov 19, 2026 by github-actions[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