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 dropdown for multiple transaction insight snaps #21022

Merged
merged 7 commits into from
Sep 26, 2023

Conversation

david0xd
Copy link
Contributor

@david0xd david0xd commented Sep 25, 2023

Description

This PR will fix dropdown behaviour when multiple transaction insight snaps are available.
This PR will also refactor code in terms of removing deprecated UI components and constants.

Manual testing steps

  1. Install multiple transaction insight Snaps.
  2. Got to test dapp and send test transaction.
  3. By clicking on the tab text, dropdown should not open.
  4. By clicking on the dropdown arrow icon, dropdown should open.

Screenshots/Recordings

Before and After

Note: Before and after UI is the same, only click behaviour is changed. Only the padding of the clickable area is increased for small amount as requested from UI/UX engineer.

Screenshot 2023-09-25 at 13 13 18
Screenshot 2023-09-25 at 13 13 34

Related issues

Fixes: #20885

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@david0xd david0xd added the team-snaps DEPRECATED: Use "team-snaps-platform" or "team-snaps-ecosystem" instead label Sep 25, 2023
@david0xd david0xd self-assigned this Sep 25, 2023
@github-actions
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.

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (7e72f21) 68.39% compared to head (5182032) 68.39%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #21022   +/-   ##
========================================
  Coverage    68.39%   68.39%           
========================================
  Files         1007     1007           
  Lines        40252    40252           
  Branches     10764    10764           
========================================
  Hits         27529    27529           
  Misses       12723    12723           

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

@david0xd david0xd marked this pull request as ready for review September 25, 2023 09:38
@david0xd david0xd requested a review from a team as a code owner September 25, 2023 09:38
@metamaskbot
Copy link
Collaborator

Builds ready [d83062c]
Page Load Metrics (1590 ± 56 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint116182141178
domContentLoaded14231906159011756
load14241907159011756
domInteractive14231906159011756
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 24 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/fix-insights-tab-click branch 3 times, most recently from 588f7a1 to 3c836fe Compare September 25, 2023 15:59
@metamaskbot
Copy link
Collaborator

Builds ready [3c836fe]
Page Load Metrics (1700 ± 87 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint88135107147
domContentLoaded72136100168
load15532308170018287
domInteractive72136100168
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -9 Bytes (-0.00%)
  • common: 0 Bytes (0.00%)

DDDDDanica
DDDDDanica previously approved these changes Sep 25, 2023
@metamaskbot
Copy link
Collaborator

Builds ready [d5ccbab]
Page Load Metrics (995 ± 428 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint95158121209
domContentLoaded761521082210
load902211995890428
domInteractive761521082210
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 51 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd force-pushed the dd/fix-insights-tab-click branch from d5ccbab to 5182032 Compare September 26, 2023 12:03
@metamaskbot
Copy link
Collaborator

Builds ready [5182032]
Page Load Metrics (475 ± 347 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint941701202010
domContentLoaded771691042411
load891969475724347
domInteractive771691042411
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 51 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@david0xd david0xd merged commit 5fffa65 into develop Sep 26, 2023
9 checks passed
@david0xd david0xd deleted the dd/fix-insights-tab-click branch September 26, 2023 12:57
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.3.0 Issue or pull request that will be included in release 11.3.0 team-snaps DEPRECATED: Use "team-snaps-platform" or "team-snaps-ecosystem" instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown should not open on insights tab click
5 participants