Skip to content

chore: add message to error events#4994

Merged
enesozturk merged 4 commits intomainfrom
chore/add-message-to-error-events
Sep 11, 2025
Merged

chore: add message to error events#4994
enesozturk merged 4 commits intomainfrom
chore/add-message-to-error-events

Conversation

@enesozturk
Copy link
Copy Markdown
Contributor

Description

Add missing message property to error events

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-xxx
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copilot AI review requested due to automatic review settings September 10, 2025 14:39
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 10, 2025

🦋 Changeset detected

Latest commit: 1ca9e0c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@reown/appkit-controllers Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-pay Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-ui Patch
@reown/appkit-core Patch
@reown/appkit-utils Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-wallet-button Patch
@reown/appkit-experimental Patch
@reown/appkit-cdn Patch
@reown/appkit-universal-connector Patch
@reown/appkit-testing Patch
@reown/appkit-common Patch
@reown/appkit-polyfills Patch
@reown/appkit-wallet Patch
@reown/appkit-cli Patch
@reown/appkit-codemod Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 10, 2025

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

Project Deployment Preview Comments Updated (UTC)
appkit-basic-html Ready Ready Preview Comment Sep 11, 2025 9:16am
appkit-demo Ready Ready Preview Comment Sep 11, 2025 9:16am
appkit-gallery Ready Ready Preview Comment Sep 11, 2025 9:16am
appkit-laboratory Ready Ready Preview Comment Sep 11, 2025 9:16am
10 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
appkit-basic-example Ignored Ignored Sep 11, 2025 9:16am
appkit-basic-sign-client-example Ignored Ignored Sep 11, 2025 9:16am
appkit-basic-up-example Ignored Ignored Sep 11, 2025 9:16am
appkit-ethers5-bera Ignored Ignored Sep 11, 2025 9:16am
appkit-nansen-demo Ignored Ignored Sep 11, 2025 9:16am
appkit-vue-solana Ignored Ignored Sep 11, 2025 9:16am
appkit-wagmi-cdn-example Ignored Ignored Sep 11, 2025 9:16am
ethereum-provider-wagmi-example Ignored Ignored Sep 11, 2025 9:16am
next-wagmi-solana-bitcoin-example Ignored Ignored Sep 11, 2025 9:16am
vue-wagmi-example Ignored Ignored Sep 11, 2025 9:16am

Copy link
Copy Markdown
Contributor

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 missing message properties to error events across the AppKit codebase, ensuring consistent error reporting in analytics. The changes standardize error event handling by utilizing CoreHelperUtil.parseError() to extract meaningful error messages and include them in event tracking.

Key changes:

  • Standardized error message extraction using CoreHelperUtil.parseError()
  • Added message properties to social login, payment, and transaction error events
  • Updated TypeScript type definitions to include optional message fields

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/scaffold-ui/src/views/w3m-wallet-send-preview-view/index.ts Replaced manual error message parsing with CoreHelperUtil.parseError() for send transaction errors
packages/scaffold-ui/src/views/w3m-register-account-name-view/index.ts Updated name registration error events to use CoreHelperUtil.parseError()
packages/scaffold-ui/src/views/w3m-connecting-social-view/index.ts Added message properties to social login error events with proper error parsing
packages/scaffold-ui/src/views/w3m-connecting-farcaster-view/index.ts Added message property to Farcaster connection error events
packages/pay/tests/controllers/PayController.test.ts Updated test expectations to include message property in PAY_ERROR events
packages/pay/src/controllers/PayController.ts Added message properties to payment error and success events
packages/controllers/tests/controllers/ExchangeController.test.ts Updated test to expect message property in exchange error events
packages/controllers/src/utils/TypeUtil.ts Added optional message field to social login and payment event type definitions
packages/controllers/src/utils/ConnectorControllerUtil.ts Added message properties to social login error events
packages/controllers/src/controllers/ExchangeController.ts Added message property to exchange payment error events
.changeset/clean-states-lick.md Added changeset documentation for the error event updates

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Sep 10, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.33% 35279 / 45036
🔵 Statements 78.33% 35279 / 45036
🔵 Functions 75.98% 3875 / 5100
🔵 Branches 86.59% 8360 / 9654
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/controllers/src/controllers/ExchangeController.ts 93.03% 90.41% 81.25% 93.03% 75, 106-114, 119-120, 177, 266-274, 307
packages/controllers/src/utils/ConnectorControllerUtil.ts 22.68% 66.66% 46.66% 22.68% 75-76, 96-109, 112-282, 285-315, 322-323, 326-327, 339-361, 364-370
packages/pay/src/controllers/PayController.ts 87.87% 83.5% 85.71% 87.87% 102-103, 163-164, 198, 300-301, 304-306, 310-322, 332-333, 339-340, 345-346, 351-352, 355-356, 398-406, 424-425, 540-553, 562-563
packages/scaffold-ui/src/views/w3m-connecting-farcaster-view/index.ts 75.56% 92.3% 66.66% 75.56% 58-61, 64-66, 69, 78-81, 93-94, 118, 143, 147-172, 229-241, 266, 281, 290-298
packages/scaffold-ui/src/views/w3m-connecting-social-view/index.ts 80.92% 64.7% 62.5% 80.92% 66-69, 75-76, 78-79, 82, 135, 219-231, 237-244, 196-210
packages/scaffold-ui/src/views/w3m-register-account-name-view/index.ts 21.25% 100% 0% 21.25% 51-66, 70-71, 74-77, 81-102, 106-130, 145-148, 152-155, 158-175, 178-191, 194-233, 236-240
packages/scaffold-ui/src/views/w3m-wallet-send-preview-view/index.ts 76.06% 84% 85.71% 76.06% 140, 151, 159-162, 167, 173-200, 198
Generated in workflow #14992 for commit 1ca9e0c by the Vitest Coverage Report Action

@enesozturk enesozturk added this pull request to the merge queue Sep 11, 2025
Merged via the queue into main with commit 7050573 Sep 11, 2025
42 checks passed
@enesozturk enesozturk deleted the chore/add-message-to-error-events branch September 11, 2025 09:46
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants