Skip to content

Conversation

@hieu-w
Copy link
Contributor

@hieu-w hieu-w commented Nov 14, 2025

Description

Map recently added error code in Shield claim service API.

Open in GitHub Codespaces

Changelog

CHANGELOG entry:

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Maps newly added Shield Claims API error codes to UI error handling and adds corresponding English locales.

  • Shield Claims UI:
    • Update ui/pages/settings/transaction-shield-tab/types.ts to include new SUBMIT_CLAIM_ERROR_CODES (E106, E205, E401–E404).
    • Map new codes in ui/pages/settings/transaction-shield-tab/claims-form/constants.ts ERROR_MESSAGE_MAP, including affected fields for chain/tx-related errors.
  • Localization:
    • Add i18n strings in app/_locales/en/messages.json and app/_locales/en_GB/messages.json for new errors: shieldClaimChainNotSupported, shieldClaimSignatureCoverageNotCovered, shieldClaimTransactionNotFound, shieldClaimTransactionNotFromWalletAddress, shieldClaimTransactionNotSuccessful, shieldClaimWalletOwnershipValidationFailed.

Written by Cursor Bugbot for commit 94392da. This will update automatically on new commits. Configure here.

@hieu-w hieu-w requested a review from a team as a code owner November 14, 2025 16:03
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-onboarding Onboarding team label Nov 14, 2025
@hieu-w hieu-w self-assigned this Nov 14, 2025
@hieu-w hieu-w added no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed area-shield labels Nov 14, 2025
@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

🔐 @MetaMask/web3auth (2 files, +30 -0)
  • 📁 ui/
    • 📁 pages/
      • 📁 settings/
        • 📁 transaction-shield-tab/
          • 📁 claims-form/
            • 📄 constants.ts +22 -0
            • 📄 types.ts +8 -0

@metamaskbot
Copy link
Collaborator

Builds ready [94392da]
UI Startup Metrics (1234 ± 92 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1234108716419212841390
load105891713678611141195
domContentLoaded105191213618511091183
domInteractive2315104182072
firstPaint64090137342710731177
backgroundConnect2322182778236249
firstReactRender29195683146
getState23866112744
initialActions104112
loadScripts825689111284891952
setupStore1163241119
numNetworkReqs1367219670
BrowserifyPower User HomeuiStartup21041924258915721492589
load1109974152217413111522
domContentLoaded1089960151217612961512
domInteractive521717752116177
firstPaint609189151843210041518
backgroundConnect24823628011255280
firstReactRender73521392494139
getState22016634849260348
initialActions102112
loadScripts862736127917010701279
setupStore271658103458
numNetworkReqs1199218124134181
WebpackStandard HomeuiStartup83770212161068341176
load61655498497608953
domContentLoaded60955095893602915
domInteractive181193151553
firstPaint22858983226202748
backgroundConnect251281142859
firstReactRender3219161163643
getState1162231315
initialActions103111
loadScripts60654894890600905
setupStore1163441315
numNetworkReqs1367520872
WebpackPower User HomeuiStartup1068922154621412651546
load656578934119743934
domContentLoaded640566895109705895
domInteractive33131003381100
firstPaint36461898304708898
backgroundConnect581019067144190
firstReactRender40374424144
getState1409216926158169
initialActions101011
loadScripts636564885106694885
setupStore15635102535
numNetworkReqs836513225112132
FirefoxBrowserifyStandard HomeuiStartup14901322211614015281810
load1255113715599513081461
domContentLoaded1254113615579513081461
domInteractive57332684261150
firstPaint------
backgroundConnect4223206254468
firstReactRender28227182850
getState1178891021
initialActions213123
loadScripts1229110914818712831405
setupStore147197201231
numNetworkReqs1266416760
BrowserifyPower User HomeuiStartup31482530457466438774574
load15211312195222117941952
domContentLoaded15211312195222117931952
domInteractive25887621183483621
firstPaint------
backgroundConnect55913613424109351342
firstReactRender85561732692173
getState17989618120202618
initialActions213123
loadScripts14631270187820716831878
setupStore983631078109310
numNetworkReqs1197722853133228
WebpackStandard HomeuiStartup15961389219715416171951
load13521183175610713841603
domContentLoaded13521182175610713841602
domInteractive56302373163113
firstPaint------
backgroundConnect50202463051116
firstReactRender3225154153148
getState147177181342
initialActions103122
loadScripts1320116316579713561532
setupStore166184221260
numNetworkReqs1366717764
WebpackPower User HomeuiStartup33962692465557536954655
load16561418213221118522132
domContentLoaded16551418213221118502132
domInteractive21761576172441576
firstPaint------
backgroundConnect51613212043458341204
firstReactRender967313518115135
getState221124577122237577
initialActions214134
loadScripts15981384200520018132005
setupStore14728488136140488
numNetworkReqs1288423254203232
📊 Page Load Benchmark Results

Current Commit: 94392da | Date: 11/14/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.09s (±42ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 735ms (±40ms) 🟢 | historical mean value: 722ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 84ms (±11ms) 🟢 | historical mean value: 77ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.09s 42ms 1.06s 1.37s 1.12s 1.37s
domContentLoaded 735ms 40ms 707ms 1.01s 765ms 1.01s
firstPaint 84ms 11ms 72ms 172ms 92ms 172ms
firstContentfulPaint 84ms 11ms 72ms 172ms 92ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 1.03 KiB (0.01%)
  • common: 550 Bytes (0.01%)

@chaitanyapotti chaitanyapotti added this pull request to the merge queue Nov 17, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 17, 2025
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**
Map recently added error code in Shield claim service API.

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/37865?quickstart=1)

## **Changelog**

<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`

If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`

(This helps the Release Engineer do their job more quickly and
accurately)
-->

CHANGELOG entry:

## **Related issues**

Fixes:

## **Manual testing steps**

1. Go to this page...
2.
3.

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**

<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Maps newly added Shield Claims API error codes to UI error handling
and adds corresponding English locales.
> 
> - **Shield Claims UI**:
> - Update `ui/pages/settings/transaction-shield-tab/types.ts` to
include new `SUBMIT_CLAIM_ERROR_CODES` (`E106`, `E205`, `E401–E404`).
> - Map new codes in
`ui/pages/settings/transaction-shield-tab/claims-form/constants.ts`
`ERROR_MESSAGE_MAP`, including affected fields for chain/tx-related
errors.
> - **Localization**:
> - Add i18n strings in `app/_locales/en/messages.json` and
`app/_locales/en_GB/messages.json` for new errors:
`shieldClaimChainNotSupported`,
`shieldClaimSignatureCoverageNotCovered`,
`shieldClaimTransactionNotFound`,
`shieldClaimTransactionNotFromWalletAddress`,
`shieldClaimTransactionNotSuccessful`,
`shieldClaimWalletOwnershipValidationFailed`.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
94392da. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 17, 2025
@hieu-w hieu-w added this pull request to the merge queue Nov 17, 2025
Merged via the queue into main with commit bd97dfb Nov 17, 2025
174 checks passed
@hieu-w hieu-w deleted the fix/hieu/shield-claim-form-new-errorCode branch November 17, 2025 13:26
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2025
@metamaskbot metamaskbot added the release-13.11.0 Issue or pull request that will be included in release 13.11.0 label Nov 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-shield no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed release-13.11.0 Issue or pull request that will be included in release 13.11.0 size-S team-onboarding Onboarding team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants