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: update css for modals #25961

Merged
merged 8 commits into from
Jul 22, 2024
Merged

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Jul 19, 2024

Description

Few css updates on nft and token detection modal

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

image

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.

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.

@sahar-fehri sahar-fehri marked this pull request as ready for review July 19, 2024 15:59
@sahar-fehri sahar-fehri requested review from a team as code owners July 19, 2024 15:59
@sahar-fehri sahar-fehri added the needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. label Jul 19, 2024
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.66%. Comparing base (721a38b) to head (bd03784).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25961      +/-   ##
===========================================
- Coverage    69.67%   69.66%   -0.01%     
===========================================
  Files         1402     1402              
  Lines        49652    49656       +4     
  Branches     13720    13719       -1     
===========================================
- Hits         34594    34591       -3     
- Misses       15058    15065       +7     

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

salimtb
salimtb previously approved these changes Jul 22, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [df37dea]
Page Load Metrics (145 ± 169 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint7113095168
domContentLoaded95927147
load431674145351169
domInteractive95927147
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -18 Bytes (-0.00%)
  • common: 525 Bytes (0.01%)

…ops to change modal footer button styles and alignment
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

CSS updates for NFT and token detection modals to enhance visual presentation and user experience.

  • ui/components/app/assets/auto-detect-nft/auto-detect-nft-modal.tsx: Removed textAlign from Text and Box components; added ButtonVariant to cancel button; updated ModalFooter containerProps to FlexDirection.ColumnReverse.
  • ui/components/app/assets/auto-detect-token/auto-detect-token-modal.tsx: Removed textAlign from Text and Box components; added style property to cancelButtonProps to remove border; added isConfirmButtonFirst to ModalFooter.

2 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

LGTM! This is great use of design system components pushed a small update to prevent the need to update design system components. It also looks like a design pattern that we may want to promote so I'll create an issue to better document this in Figma and storybook. I really appreciate you reaching out and the before/after screenshots in the PR description. Thank you!

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

(updates since last review)

CSS updates for NFT and token detection modals to enhance visual presentation and user experience.

  • ui/components/app/assets/auto-detect-token/auto-detect-token-modal.tsx: Removed isConfirmButtonFirst property from ModalFooter component.
  • Ensure the removal of isConfirmButtonFirst does not affect button order or user experience in the modal.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Re-reviewed, I missed the auto-detect-token modal on initital review. Left one suggestion

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

(updates since last review)

CSS updates for NFT and token detection modals to enhance visual presentation and user experience.

  • ui/components/app/assets/auto-detect-nft/auto-detect-nft-modal.tsx: Removed padding from Text component and added variant to cancel button for consistent styling.
  • ui/components/app/assets/auto-detect-nft/auto-detect-nft-modal.tsx: Updated containerProps to use FlexDirection.ColumnReverse for improved layout.
  • ui/components/app/assets/auto-detect-token/auto-detect-token-modal.tsx: Removed textAlign from Text and Box components.
  • ui/components/app/assets/auto-detect-token/auto-detect-token-modal.tsx: Added ButtonVariant to cancelButtonProps to style the button as a link.

2 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

Apologies again for further changes, but on third review, I noticed that we may want to duplicate the entire approach from the auto-detect-nft ModalFooter as it's likely intentional to have the same pattern on both modals.

Screenshot 2024-07-22 at 11 25 33 AM
Screenshot 2024-07-22 at 11 25 52 AM

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

(updates since last review)

No major changes found since the last review.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link

sonarcloud bot commented Jul 22, 2024

Copy link
Contributor

@georgewrmarshall georgewrmarshall left a comment

Choose a reason for hiding this comment

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

LGTM!

  • checked AutoDetectNftModal button positioning in storybook ✅
  • checked AutoDetectTokenModal button positioning in storybook ✅

@metamaskbot
Copy link
Collaborator

Builds ready [bd03784]
Page Load Metrics (85 ± 14 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint691931112914
domContentLoaded115327115
load46170853014
domInteractive115327115
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 40 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@sahar-fehri sahar-fehri merged commit 70955a5 into develop Jul 22, 2024
77 checks passed
@sahar-fehri sahar-fehri deleted the fix/token-nft-modal-css-update branch July 22, 2024 19:53
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2024
@metamaskbot metamaskbot added the release-12.3.0 Issue or pull request that will be included in release 12.3.0 label Jul 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-12.3.0 Issue or pull request that will be included in release 12.3.0 team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants