Skip to content

Conversation

@sejas
Copy link
Member

@sejas sejas commented Nov 19, 2024

Related issues

Proposed Changes

  • Let's limit the ARM translation modal to be shown only on MacOS. Currently, we were receiving this alert on some Windows Machines.

Testing Instructions

  • If you have a Win machine with ARM chip, run npm start and observe there is no alert
  • If you have a M1,2,3 Mac, download the x64 build from the CI of this PR and observe the prompt appears.
Screenshot 2024-11-19 at 01 45 58

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@sejas sejas self-assigned this Nov 19, 2024
@sejas sejas requested a review from a team November 19, 2024 01:46
// Show warning if running an ARM64 translator
if ( appGlobals.arm64Translation && ! localStorage.getItem( 'dontShowARM64Warning' ) ) {
if (
appGlobals.platform === 'darwin' &&
Copy link
Member Author

Choose a reason for hiding this comment

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

I considered limiting it to appGlobals.platform !== 'win32', but I decided to exclude Linux as well.

Copy link
Contributor

@wojtekn wojtekn left a comment

Choose a reason for hiding this comment

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

I don't have a machine to test it, but the code change looks correct. Nice catch!

@sejas sejas merged commit 9c7dc52 into trunk Nov 20, 2024
16 checks passed
@sejas sejas deleted the udpate/limit-arm-translation-alert-to-mac branch November 20, 2024 10:22
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