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

feat(3448): header update #11763

Merged
merged 52 commits into from
Nov 8, 2024
Merged

feat(3448): header update #11763

merged 52 commits into from
Nov 8, 2024

Conversation

vinnyhoward
Copy link
Contributor

@vinnyhoward vinnyhoward commented Oct 11, 2024

Description

The header is being updated according to this Figma design (second to last screen).

Because WalletAccount is being removed, the more icon or overflow icon will be moved to the AccountSelectorList. Here is the PR for more info

Regression Tests Passing (11/04/24): https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6224a4f4-1c55-43cf-a622-ec6d91f42110?tab=workflows

Related issues

Ticket: #3448

Manual testing steps

  1. Wallet Home Page

    • Open the account picker and switch between accounts
    • Verify functionality remains the same as before
  2. Copy Address

    • Use the copy address feature in the top right
    • Confirm it works as expected
  3. Network Switcher

    • Switch between different networks
    • Ensure all networks load correctly and balances update
  4. Overflow (Edit Account): This is on feat(3481): overflow update #11823

    • Tap on account picker and a bottom sheet will appear
    • Click on the overflow icon (the vertical more icon) and edit your account just like before

Screenshots/Recordings

Light Dark
light_mode_header_update dark_mode_header_update

Before

Light Dark
light_mode_original dark_mode_original

After

Light Dark
light_mode_screenshot dark_mode_screenshot

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**
This is NOT being merged into `main` and is being merged into the
feature branch of
[feat-header-update](https://github.com/MetaMask/metamask-mobile/tree/feat-header-update)

Updating the `NetworkPicker` design according to this
[Figma](https://www.figma.com/design/aMYisczaJyEsYl1TYdcPUL/Portfolio-View?m=auto&node-id=5019-59597).
This is just a component update only and NOT the full header redesign.
The prop of `hideNetworkName` is introduced to the component and the
default value is `false`.

We could potentially just remove that flag altogether and remove the
actual network name. Just need confirmation from DS team

## **Related issues**

Feature:
[#3447](MetaMask/MetaMask-planning#3447)

## **Manual testing steps**

1. Goto wallet home page
2. Goto `app/components/UI/Navbar/index.js` and scroll down to
`PickerNetwork` and add prop `hideNetworkName={true}`
3. Or goto storybook

## **Screenshots/Recordings**

### Light Mode
| Regular  | Hidden  |
|:---:|:---:|

|![light_mode_regular](https://github.com/user-attachments/assets/0a889689-2d2f-4066-ba8b-355736a0228d)|![light_mode_hidden](https://github.com/user-attachments/assets/d0f0bade-9094-4973-bef6-1f4915b04b4d)|

### Dark Mode
| Regular  | Hidden  |
|:---:|:---:|

|![dark_mode_regular](https://github.com/user-attachments/assets/2a2a1fb3-4004-4715-b3eb-822ad3faf572)|![dark_mode_hidden](https://github.com/user-attachments/assets/efafd673-50a7-4bee-84ba-6553db55528d)|

### Storybook

<img
src="https://github.com/user-attachments/assets/590d5ce2-4d21-4c09-9e24-edcb7784897c"
width="320px" alt="storybook"/>

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.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-mobile/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).
- [x] 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**
This is NOT being merged into `main` and is being merged into the
feature branch of
[feat-header-update](https://github.com/MetaMask/metamask-mobile/tree/feat-header-update)

Updating the `AddressCopy` component to be the new design according to
this
[Figma](https://www.figma.com/design/aMYisczaJyEsYl1TYdcPUL/Portfolio-View?m=auto&node-id=5019-59597).
This is just a component update only and NOT the full header redesign.
The component has been simplified and there are no other affected
screens other than `WalletAccount` component

The `WalletAccount` will possibly be removed in this PR as well after
some feedback from the @MetaMask/design-system team on what they think.
It exists no where else and isn't needed

## **Related issues**

Feature:
[#3449](MetaMask/MetaMask-planning#3449)

## **Manual testing steps**

1. Goto wallet home page (ignore the fact the wallet action component is
missing)

## **Screenshots/Recordings**


![address_copy](https://github.com/user-attachments/assets/64f76cbb-9e09-45a1-bbbd-c0e94ddbdf05)

### **Before**

NA

### **After**

NA

## **Pre-merge author checklist**

- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.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-mobile/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).
- [x] 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.
@vinnyhoward vinnyhoward added No QA Needed Apply this label when your PR does not need any QA effort. team-wallet-ux labels Oct 11, 2024
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.

@devin-ai-integration devin-ai-integration bot added team-ai AI team (for the Devin AI bot) area-qa Relating to QA work (Quality Assurance) labels Oct 11, 2024
@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed No QA Needed Apply this label when your PR does not need any QA effort. labels Oct 16, 2024
Copy link
Contributor

github-actions bot commented Oct 16, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 8a0b55b
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/92e89506-51c2-410c-b3f3-29c4682b0687

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 16, 2024
@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 16, 2024
Copy link
Contributor

github-actions bot commented Oct 16, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: bf53cb4
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/348b6ca8-90e4-43c6-8ce0-d55a256e6675

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@codecov-commenter
Copy link

codecov-commenter commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 70.73171% with 12 lines in your changes missing coverage. Please review.

Project coverage is 55.57%. Comparing base (ead35c4) to head (0b01463).
Report is 41 commits behind head on main.

Files with missing lines Patch % Lines
...nts/UI/AccountSelectorList/AccountSelectorList.tsx 45.45% 5 Missing and 1 partial ⚠️
...mponents/Views/EditAccountName/EditAccountName.tsx 62.50% 0 Missing and 3 partials ⚠️
app/components/Views/Wallet/index.tsx 50.00% 0 Missing and 2 partials ⚠️
app/components/UI/Navbar/index.js 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11763      +/-   ##
==========================================
+ Coverage   55.35%   55.57%   +0.22%     
==========================================
  Files        1767     1781      +14     
  Lines       39841    40083     +242     
  Branches     4965     4995      +30     
==========================================
+ Hits        22052    22275     +223     
- Misses      16274    16286      +12     
- Partials     1515     1522       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vinnyhoward vinnyhoward changed the title feat: Header Update feat(3448): header update Oct 16, 2024
@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Oct 16, 2024
Copy link
Contributor

github-actions bot commented Oct 16, 2024

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: fc63b0a
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/347fdaf6-6f92-4e1e-83ff-d4af77cade57

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@vinnyhoward vinnyhoward removed the Run Smoke E2E Triggers smoke e2e on Bitrise label Oct 17, 2024
@metamaskbot
Copy link
Collaborator

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0e0ed35c-d5ae-4776-ae5d-4c714161637e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6648144c-654c-444e-9b48-e868c9cc3911

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link
Contributor

@EtherWizard33 EtherWizard33 left a comment

Choose a reason for hiding this comment

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

looks good to me, good work!

@metamaskbot
Copy link
Collaborator

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/6648144c-654c-444e-9b48-e868c9cc3911

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

Copy link
Contributor

@chrisleewilcox chrisleewilcox left a comment

Choose a reason for hiding this comment

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

LGTM

@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b63d4f98-dba0-448e-9ceb-3ac2c10ff47e

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@metamaskbot
Copy link
Collaborator

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b63d4f98-dba0-448e-9ceb-3ac2c10ff47e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

2 similar comments
@metamaskbot
Copy link
Collaborator

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b63d4f98-dba0-448e-9ceb-3ac2c10ff47e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@metamaskbot
Copy link
Collaborator

https://bitrise.io/ Bitrise

❌❌❌ pr_smoke_e2e_pipeline failed on Bitrise! ❌❌❌

Commit hash: 9ea8a5e
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b63d4f98-dba0-448e-9ceb-3ac2c10ff47e

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Tip

  • Check the documentation if you have any doubts on how to understand the failure on bitrise

@vinnyhoward vinnyhoward added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

https://bitrise.io/ Bitrise

🔄🔄🔄 pr_smoke_e2e_pipeline started on Bitrise...🔄🔄🔄

Commit hash: 0132dfb
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3e0a20aa-baa0-41ed-aa4b-0fa2cfd6375c

Note

  • This comment will auto-update when build completes
  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

sonarcloud bot commented Nov 8, 2024

@metamaskbot
Copy link
Collaborator

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 0132dfb
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3e0a20aa-baa0-41ed-aa4b-0fa2cfd6375c

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@vinnyhoward vinnyhoward added this pull request to the merge queue Nov 8, 2024
Merged via the queue into main with commit 1b48bbc Nov 8, 2024
42 of 43 checks passed
@vinnyhoward vinnyhoward deleted the feat-header-update branch November 8, 2024 22:40
@github-actions github-actions bot locked and limited conversation to collaborators Nov 8, 2024
@gauthierpetetin gauthierpetetin added the release-7.36.0 Issue or pull request that will be included in release 7.36.0 label Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.36.0 Issue or pull request that will be included in release 7.36.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-ai AI team (for the Devin AI bot) team-wallet-ux
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.