Skip to content

chore: removing deprecated unused site icon component from codebase#24411

Merged
georgewrmarshall merged 1 commit intodevelopfrom
remove-siteicon
May 8, 2024
Merged

chore: removing deprecated unused site icon component from codebase#24411
georgewrmarshall merged 1 commit intodevelopfrom
remove-siteicon

Conversation

@georgewrmarshall
Copy link
Copy Markdown
Contributor

@georgewrmarshall georgewrmarshall commented May 7, 2024

Description

This PR focuses on cleaning up the codebase by removing the unused SiteIcon component. The SiteIcon component, initially intended for displaying website icons it has been deprecated in favor of AvatarFavicon. The removal of this component's code will streamline the codebase, reduce clutter, and improve maintainability by eliminating dead code. This cleanup effort aligns with our ongoing initiatives to replace deprecated components with design system components in the MetaMask extension's codebase for better accessibility, performance and design system alignment.

Related issues

Part of: #20459

Manual testing steps

To ensure no instances of the SiteIcon component remain:

  1. Search SiteIcon, site icon and site-icon in the codebase.
  2. Verify that no instances remain that relate to component logic

Screenshots/Recordings

After

Search in code base for site icon returns no results

Screenshot 2024-05-07 at 8 39 45 AM
Screenshot 2024-05-07 at 8 40 13 AM
Screenshot 2024-05-07 at 8 40 23 AM

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability.
  • I’ve ensured that the removal of the SiteIcon component does not introduce any regressions or errors.
  • I’ve documented the rationale behind the removal using JSDoc format for any related code changes.
  • I’ve applied the right labels on the PR.

Pre-merge reviewer checklist

  • I've manually reviewed the changes, ensuring that the removal of the SiteIcon component is justified and does not affect the application's functionality.
  • I confirm that this PR addresses the intended cleanup and simplification of the codebase without introducing new issues.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented May 7, 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.

@georgewrmarshall georgewrmarshall self-assigned this May 7, 2024
@georgewrmarshall georgewrmarshall added the team-design-system All issues relating to design system in Extension label May 7, 2024
@georgewrmarshall georgewrmarshall marked this pull request as ready for review May 7, 2024 16:06
@georgewrmarshall georgewrmarshall requested review from a team and kumavis as code owners May 7, 2024 16:06
@codecov
Copy link
Copy Markdown

codecov bot commented May 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.34%. Comparing base (e775193) to head (1efae90).
Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #24411      +/-   ##
===========================================
- Coverage    67.36%   67.34%   -0.01%     
===========================================
  Files         1282     1281       -1     
  Lines        50011    50007       -4     
  Branches     12983    12982       -1     
===========================================
- Hits         33685    33677       -8     
- Misses       16326    16330       +4     

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

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [1efae90]
Page Load Metrics (168 ± 224 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint5511375157
domContentLoaded85014115
load442199168466224
domInteractive85014115
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Copy link
Copy Markdown
Contributor

@legobeat legobeat left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Contributor

@garrettbear garrettbear left a comment

Choose a reason for hiding this comment

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

🪦 RIP site icon - LGTM

@georgewrmarshall georgewrmarshall merged commit 11002eb into develop May 8, 2024
@georgewrmarshall georgewrmarshall deleted the remove-siteicon branch May 8, 2024 23:45
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Missing release label release-11.17.0 on PR. Adding release label release-11.17.0 on PR and removing other release labels(release-11.18.0), as PR was added to branch 11.17.0 when release was cut.

@gauthierpetetin gauthierpetetin added the release-12.0.0 Issue or pull request that will be included in release 12.0.0 label Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-12.0.0 Issue or pull request that will be included in release 12.0.0 team-design-system All issues relating to design system in Extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants