Skip to content

Prerelease#6

Merged
carnach merged 3 commits into
feat-qrcodefrom
prerelease
Jan 31, 2026
Merged

Prerelease#6
carnach merged 3 commits into
feat-qrcodefrom
prerelease

Conversation

@carnach
Copy link
Copy Markdown
Owner

@carnach carnach commented Jan 31, 2026

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 31, 2026

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

Project Deployment Actions Updated (UTC)
my-spliit-instance Ready Ready Preview, Comment Jan 31, 2026 4:16pm

@carnach
Copy link
Copy Markdown
Owner Author

carnach commented Jan 31, 2026

@copilot review the PR

Copy link
Copy Markdown

Copilot AI commented Jan 31, 2026

@carnach I've opened a new pull request, #7, to work on those changes. Once the pull request is ready, I'll request review from you.

- Add internationalization (i18n) to QrCodeScanner component using next-intl
  - Extract hardcoded UI strings: "Start Camera", "Stop Scanning", camera error messages
  - Add QrCodeScanner translation keys across all 24 supported languages
  - Follow existing translation conventions used in other components

- Fix ShareQrCodeDialog to support multiple instances on same page
  - Replace hardcoded id="qr-code-svg" with per-instance unique id via useId()
  - Update handleDownload to reference dynamic id instead of document.getElementById()
  - Ensures no DOM id conflicts when multiple dialogs are rendered
@carnach carnach marked this pull request as ready for review January 31, 2026 16:15
Copilot AI review requested due to automatic review settings January 31, 2026 16:15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces improvements to QR code functionality in the application, including better ID generation and internationalization support. The changes replace hardcoded and randomly-generated element IDs with React's useId() hook and add translation support for QR code scanner messages.

Changes:

  • Replaced hardcoded and random element IDs with React's useId() hook for better SSR compatibility and following React best practices
  • Added internationalization support for QR code scanner error messages and UI text
  • Added new translation keys for QR code sharing and scanning features in English

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
src/components/share-qr-code-dialog.tsx Replaced hardcoded 'qr-code-svg' ID with useId() hook for dynamic, unique ID generation
src/components/qr-code-scanner.tsx Replaced Math.random()-based ID with useId(), added internationalization for all user-facing text
messages/en-US.json Added translation keys for scanner UI elements and QR code sharing dialog
package-lock.json Added dependencies for html5-qrcode and qrcode.react packages (with duplicate entries that need resolution)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@carnach carnach merged commit 7c7f23a into feat-qrcode Jan 31, 2026
8 checks passed
@carnach carnach deleted the prerelease branch January 31, 2026 16:19
carnach added a commit that referenced this pull request Feb 1, 2026
carnach added a commit that referenced this pull request Feb 1, 2026
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.

3 participants