Skip to content

feat: added check for if the selected account is BTC in transaction-list#25642

Merged
danroc merged 12 commits intodevelopfrom
feat/update-btc-activity-view
Jul 4, 2024
Merged

feat: added check for if the selected account is BTC in transaction-list#25642
danroc merged 12 commits intodevelopfrom
feat/update-btc-activity-view

Conversation

@k-g-j
Copy link
Copy Markdown
Contributor

@k-g-j k-g-j commented Jul 2, 2024

Description

Updates the activity tab view to display the message "Bitcoin activity is not supported" if the selected account is a Bitcoin account. It also adds a button to redirect to the Bitcoin block explorer.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/accounts-planning/issues/499

Manual testing steps

  1. Create a Bitcoin account
    1. Clone the Bitcoin Manager snap
    2. Change emitEvents here from false to true
    3. Run yarn && yarn start
    4. Go to http://localhost:8000/
    5. Create a Bitcoin account
  1. Ensure that the new Bitcoin account is your selected account and navigate to the activity tab in the extension
  2. You should see the message "Bitcoin activity is not supported"
  3. You should see a button that says "View on block explorer" that opens to "https://blockstream.info/testnet/address/YourBitcoinAddress"

Screenshots/Recordings

Before

Screenshot 2024-07-02 at 7 23 43 PM

After

Screenshot 2024-07-03 at 11 47 19 AM

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 2, 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 metamaskbot added the team-accounts-framework Accounts team label Jul 2, 2024
@k-g-j k-g-j added the area-UI Relating to the user interface. label Jul 2, 2024
@k-g-j k-g-j marked this pull request as ready for review July 3, 2024 15:51
@k-g-j k-g-j requested a review from a team as a code owner July 3, 2024 15:51
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.67%. Comparing base (363a8f4) to head (53264ac).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25642      +/-   ##
===========================================
+ Coverage    69.67%   69.67%   +0.01%     
===========================================
  Files         1366     1366              
  Lines        48240    48249       +9     
  Branches     13307    13308       +1     
===========================================
+ Hits         33607    33616       +9     
  Misses       14633    14633              

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

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [76e4879]
Page Load Metrics (136 ± 142 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint642701004220
domContentLoaded97129157
load391419136296142
domInteractive97129157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 2.29 KiB (0.03%)
  • common: 74 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [4a2ec33]
Page Load Metrics (147 ± 162 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint79141102168
domContentLoaded95128136
load441619147338162
domInteractive95128136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 2.29 KiB (0.03%)
  • common: 74 Bytes (0.00%)

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [7b880d2]
Page Load Metrics (145 ± 158 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint642681004320
domContentLoaded87732199
load391577145330158
domInteractive87732199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 2.29 KiB (0.03%)
  • common: 74 Bytes (0.00%)

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jul 3, 2024

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [53264ac]
Page Load Metrics (69 ± 8 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7612698147
domContentLoaded105726136
load4710769168
domInteractive105726136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 2.29 KiB (0.03%)
  • common: 74 Bytes (0.00%)

Copy link
Copy Markdown
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

LGTM, also tested manually on my side 👍

@ccharly
Copy link
Copy Markdown
Contributor

ccharly commented Jul 4, 2024

Just adding a quick recording too:

Screen.Recording.2024-07-04.at.11.10.42.mov

Copy link
Copy Markdown
Contributor

@danroc danroc left a comment

Choose a reason for hiding this comment

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

I tested it, LGTM, thanks @k-g-j!

@danroc danroc merged commit d0a0227 into develop Jul 4, 2024
@danroc danroc deleted the feat/update-btc-activity-view branch July 4, 2024 14:01
@danroc danroc changed the title feat: added check for if the selected account is btc in transaction-list feat: added check for if the selected account is BTC in transaction-list Jul 4, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-UI Relating to the user interface. release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-accounts-framework Accounts team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants