Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token allowance i18n interpolation system #16347

Merged
merged 4 commits into from
Nov 25, 2022

Conversation

adnansahovic
Copy link
Contributor

@adnansahovic adnansahovic commented Nov 2, 2022

Explanation

Fixed setSpendingCap and revokeSpendingCap(#16157 (review)) locale string using the i18n interpolation system.

More Information

Manual Testing Steps

BEFORE TESTING - in your .metamaskrc file, set TOKEN_ALLOWANCE_IMPROVEMENTS=1 and then start the app

  1. Open the Test Dapp: https://metamask.github.io/test-dapp/
  2. Under the section Send Tokens click on CREATE TOKEN
  3. Wait for the token to be created and then, under the same section, click on APPROVE TOKENS or APPROVE TOKENS WITHOUT GAS in order to see the newly created screen

To see how the screen looks like when the enhanced gas fee is enabled, go to Settings (Experimental tab) and enable it (Enable enhanced gas fee UI toggle)

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

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.

@adnansahovic adnansahovic changed the title added i18n interpolation system to token-allowance screen Token allowance i18n interpolation system Nov 2, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [d5b65d3]
Page Load Metrics (2341 ± 155 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint883131235225
domContentLoaded174832212301331159
load180832222341324155
domInteractive174832212301331159

highlights:

storybook

@mirjanaKukic
Copy link
Contributor

Verified by QA

@adnansahovic adnansahovic marked this pull request as ready for review November 3, 2022 10:39
@adnansahovic adnansahovic requested a review from a team as a code owner November 3, 2022 10:39
@brad-decker
Copy link
Contributor

@adnansahovic can you rebase, then review can continue. LGTM thouigh

@adnansahovic adnansahovic force-pushed the token-allowance-i18n-interpolation-system branch from d5b65d3 to b4c5b51 Compare November 8, 2022 10:38
@adnansahovic
Copy link
Contributor Author

@adnansahovic can you rebase, then review can continue. LGTM thouigh

Hi @brad-decker, Done, also modified revokeSpendingCap (#16157 (review))

@metamaskbot
Copy link
Collaborator

Builds ready [8168c85]
Page Load Metrics (2547 ± 219 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint96100117619292
domContentLoaded189038102518446214
load189038102547456219
domInteractive189038102518446214

highlights:

storybook

brad-decker
brad-decker previously approved these changes Nov 10, 2022
@metamaskbot
Copy link
Collaborator

Builds ready [14c3785]
Page Load Metrics (2028 ± 77 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint89138105147
domContentLoaded17012293200616278
load17562316202816177
domInteractive17012293200616278
Bundle size diffs
  • background: 0 bytes
  • ui: 93 bytes
  • common: 0 bytes

highlights:

storybook

@adnansahovic adnansahovic self-assigned this Nov 21, 2022
@seaona seaona added this to the v10.23.0 milestone Nov 23, 2022
@danjm danjm merged commit 6f21c48 into develop Nov 25, 2022
@danjm danjm deleted the token-allowance-i18n-interpolation-system branch November 25, 2022 10:26
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix use of setSpendingCap locale string to properly use our i18n interpolation system
6 participants