Skip to content

Conversation

@ignaciosantise
Copy link
Collaborator

This pull request introduces a configuration update to support asset loading in the POS app and refactors error handling in the PaymentFailureScreen. The most important changes are grouped below:

Configuration for asset loading:

  • Added a vercel.json file with a rewrite rule to ensure canvaskit.wasm is served correctly for Expo web deployments.

Error handling improvements:

  • Removed the import and usage of showErrorToast in payment-failure.tsx, replacing it with a console.error call for reporting payment errors. This simplifies error reporting and avoids unnecessary UI toast notifications on payment failures. [1] [2]

Copilot AI review requested due to automatic review settings November 27, 2025 16:46
@vercel
Copy link

vercel bot commented Nov 27, 2025

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

Project Deployment Preview Comments Updated (UTC)
react-native-examples Ready Ready Preview Comment Nov 27, 2025 4:48pm

@claude
Copy link

claude bot commented Nov 27, 2025

Claude finished @ignaciosantise's task —— View job


Code Review Complete

No issues found

Review Summary

Analyzed 2 changed files:

  • dapps/pos-app/vercel.json (added) - Vercel rewrite configuration for canvaskit.wasm
  • dapps/pos-app/app/payment-failure.tsx (modified) - Error handling simplification

Changes verified:

  • Vercel configuration correctly rewrites canvaskit.wasm path for Expo web deployments
  • Error handling change from toast to console.error is appropriate for this failure screen (error is already displayed visually to user)
  • No external domain URLs detected
  • No cache-control issues (not applicable to these changes)
  • No GitHub Actions workflow changes

@ignaciosantise ignaciosantise merged commit c89f43d into main Nov 27, 2025
11 checks passed
@ignaciosantise ignaciosantise deleted the chore/vercel branch November 27, 2025 16:49
Copilot finished reviewing on behalf of ignaciosantise November 27, 2025 16:49
Copy link

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 adds Vercel deployment configuration for proper asset loading and simplifies error reporting in the payment failure flow by removing redundant toast notifications.

  • Adds vercel.json with a rewrite rule to correctly serve the CanvasKit WebAssembly file for Expo web deployments
  • Removes redundant error toast notification from the payment failure screen, keeping only console.error for debugging since the error is already displayed prominently on the screen itself

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
dapps/pos-app/vercel.json New Vercel configuration file with rewrite rule for canvaskit.wasm to support Expo web deployments
dapps/pos-app/app/payment-failure.tsx Simplifies error handling by replacing showErrorToast with console.error, avoiding redundant notifications since the screen already displays the error message

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

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

}
]
}

Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

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

[nitpick] The file has an extra blank line at the end (two blank lines total). Other JSON files in this project (app.json, tsconfig.json) have only a single trailing newline. Consider removing one blank line for consistency.

Suggested change

Copilot uses AI. Check for mistakes.
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.

2 participants