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

fix: Bug 28347 - Privacy mode tweaks (#28367) #28372

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

gambinish
Copy link
Contributor

@gambinish gambinish commented Nov 7, 2024

Description

Cherry pick of 82fdd64

Original PR: #28367

Privacy Mode should only effect PortfolioView and main account picker popover. It should not impact other areas of the App like Send/Swap/Gas because the toggle only exists on PortfolioView.

Open in GitHub Codespaces

Related issues

Fixes: #28347

Manual testing steps

You can toggle privacyMode with eyeball on main PortfolioView

Should respect privacyMode:

  1. Go to PortfolioView, toggling eyeball should show/hide balances for tokens as well as main balance
  2. Go to AccountPicker from main Portfolio View, balances should hide/show
  3. Go to AccountPicker from asset detail view, balances should hide/show

Should not respect privacyMode:

  1. Go to AssetDetails, token balance should show on main page
  2. Should not be respected on send/swap/gas screens
  3. Balances should not be impacted elsewhere in the app. Please try to verify this while reviewing.

Screenshots/Recordings

Screen.Recording.2024-11-07.at.1.07.05.PM.mov

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.

Description

Open in GitHub Codespaces

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.

## **Description**

Privacy Mode should only effect PortfolioView and main account picker
popover. It should not impact other areas of the App like Send/Swap/Gas
because the toggle only exists on PortfolioView.

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

## **Related issues**

Fixes: #28347

## **Manual testing steps**

You can toggle privacyMode with eyeball on main PortfolioView

Should respect privacyMode:
1. Go to PortfolioView, toggling eyeball should show/hide balances for
tokens as well as main balance
2. Go to AccountPicker from main Portfolio View, balances should
hide/show
3. Go to AccountPicker from asset detail view, balances should hide/show

Should _not_ respect privacyMode:
1. Go to AssetDetails, token balance should show on main page
2. Should not be respected on send/swap/gas screens
3. Balances should not be impacted elsewhere in the app. Please try to
verify this while reviewing.

## **Screenshots/Recordings**

https://github.com/user-attachments/assets/695fa68a-c9bb-4871-b03c-8c41c88b1344

## **Pre-merge author checklist**

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

## **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.
@gambinish gambinish marked this pull request as ready for review November 7, 2024 23:58
@gambinish gambinish requested review from a team as code owners November 7, 2024 23:58
Copy link
Contributor

github-actions bot commented Nov 7, 2024

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
Copy link
Collaborator

Builds ready [343c952]
Page Load Metrics (1834 ± 81 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint16242308183916579
domContentLoaded16082220181115675
load16232310183416981
domInteractive16125492613
backgroundConnect894242411
firstReactRender47156862814
getState45619199
initialActions01000
loadScripts11401645132312962
setupStore1177342411
uiStartup18112554203518086
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 657 Bytes (0.01%)
  • ui: 2 KiB (0.03%)
  • common: 34 Bytes (0.00%)

@gambinish gambinish merged commit a40cb29 into Version-v12.7.0 Nov 8, 2024
84 checks passed
@gambinish gambinish deleted the cherry-pick-12.7.0-privacy-mode-tweaks branch November 8, 2024 00:37
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2024
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.

3 participants