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

chore: removes portfolio button & fixes code fence of receive modal #27286

Merged
merged 9 commits into from
Sep 23, 2024

Conversation

zone-live
Copy link
Contributor

@zone-live zone-live commented Sep 19, 2024

Description

In MMI we don't want to show the new Portfolio button, therefore we are code fencing it.
Fixes the "receive" modal for MMI build, because of a misplaced code fence.
Also adds a small code improvement for MMI note to trader component.

Screenshot 2024-09-19 at 16 27 38

Screenshot 2024-09-19 at 16 27 22

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.

@zone-live zone-live requested a review from a team as a code owner September 19, 2024 15:29
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.

@github-actions github-actions bot added the team-mmi PRs from the MMI team label Sep 19, 2024
NidhiKJha
NidhiKJha previously approved these changes Sep 19, 2024
albertolive
albertolive previously approved these changes Sep 20, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [5718e63]
Page Load Metrics (1844 ± 155 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint152628041837327157
domContentLoaded151927901814318153
load154228021844322155
domInteractive219337178
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@zone-live zone-live requested a review from NidhiKJha September 23, 2024 08:32
@@ -34,6 +34,8 @@ const NoteToTrader: React.FC = () => {
getIsNoteToTraderSupported(state, fromChecksumHexAddress),
);

const MAX_LENGTH = 280;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -42,7 +44,11 @@ const NoteToTrader: React.FC = () => {
return () => clearTimeout(timer);
}, [noteText]);

return isNoteToTraderSupported && !isSignature ? (
if (!isNoteToTraderSupported || isSignature) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pedronfigueiredo And here.

Copy link

@metamaskbot
Copy link
Collaborator

Builds ready [2b8a98f]
Page Load Metrics (2011 ± 136 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint21028271749674323
domContentLoaded163828191985285137
load165728282011284136
domInteractive16145482713
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@zone-live zone-live merged commit 24f8bf4 into develop Sep 23, 2024
80 checks passed
@zone-live zone-live deleted the MMI-5489-remove-portfolio-new-link branch September 23, 2024 13:42
@github-actions github-actions bot locked and limited conversation to collaborators Sep 23, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 23, 2024
@metamaskbot metamaskbot added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-mmi PRs from the MMI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants