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

Refactor: Add external link button #1554

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Jdecristi
Copy link
Contributor

@Jdecristi Jdecristi commented Apr 15, 2023

General Changes

Fixes bug #1140

Replace all buttons with endIcon="ExternalLinkIcon" to ExternalLinkButton

Replaced in 8/8 places
  • FaucetButton.tsx
  • [proposalId].governance.tsx
  • GovernanceTopPanel.tsx
  • ListItemAPYButton.tsx
  • ReserveConfiguration.tsx
  • BuyWithFiatModal.tsx
  • GetABPTokenModal.tsx
  • BridgeButton.tsx

Author Checklist

Please ensure you, the author, have gone through this checklist to ensure there is an efficient workflow for the reviewers.

  • The base branch is set to main
  • The title is using Conventional Commit formatting
  • The Github issue has been linked to the PR in the Development section
  • The General Changes section has been filled out
  • Developer Notes have been added (optional)

If the PR is ready for review:

  • The PR is in Open state and not in Draft mode
  • The Ready for Dev Review label has been added

Reviewer Checklist

Please ensure you, as the reviewer(s), have gone through this checklist to ensure that the code changes are ready to ship safely and to help mitigate any downstream issues that may occur.

  • End-to-end tests are passing without any errors
  • Code style generally follows existing patterns
  • Code changes do not significantly increase the application bundle size
  • If there are new 3rd-party packages, they do not introduce potential security threats
  • If there are new environment variables being added, they have been added to the .env.example file as well as the pertinant .github/actions/* files
  • There are no CI changes, or they have been approved by the DevOps and Engineering team(s)
  • Code changes have been quality checked in the ephemeral URL
  • QA verification has been completed
  • There are two or more approvals from the core team
  • Squash and merge has been checked

@height
Copy link

height bot commented Apr 15, 2023

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@Jdecristi Jdecristi force-pushed the Add-ExternalLink-Button branch from 51e5183 to 624ba01 Compare April 15, 2023 04:23
@Jdecristi Jdecristi changed the title Add external link button Refactor: Add external link button Apr 15, 2023
@Jdecristi Jdecristi marked this pull request as ready for review April 15, 2023 23:03
Copy link
Collaborator

@defispartan defispartan left a comment

Choose a reason for hiding this comment

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

Other than that small change, LGTM

src/modules/governance/GovernanceTopPanel.tsx Outdated Show resolved Hide resolved
@Jdecristi Jdecristi force-pushed the Add-ExternalLink-Button branch from 2b87548 to 59e78c0 Compare April 25, 2023 19:55
@Jdecristi
Copy link
Contributor Author

Other than that small change, LGTM

@defispartan Fixed

@defispartan
Copy link
Collaborator

@Jdecristi Sorry for the delay on this, could you run yarn i18n and commit the translations file, then we'll get this merged 👍

@Jdecristi
Copy link
Contributor Author

Jdecristi commented May 17, 2023

@defispartan ran it, but no files were changed, however I fixed the conflict with a rebase

@Jdecristi Jdecristi force-pushed the Add-ExternalLink-Button branch 2 times, most recently from 0e1dbee to 25c7410 Compare May 18, 2023 02:33
defispartan
defispartan previously approved these changes May 18, 2023
@defispartan defispartan added the Ready for QA Review Ready for QA engineer reviews label May 18, 2023
@github-actions
Copy link

github-actions bot commented May 19, 2023

❌ CI run has failed!
Please see logs at https://github.com/aave/interface/actions/runs/5022925420'

@github-actions
Copy link

📦 Next.js Bundle Analysis for aave-ui

This analysis was generated by the Next.js Bundle Analysis action. 🤖

⚠️ Global Bundle Size Increased

Page Size (compressed)
global 519.09 KB (🟡 +22 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Seven Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 41.59 KB (🟡 +138 B) 560.68 KB
/governance 82.81 KB (🟡 +93 B) 601.91 KB
/governance/ipfs-preview 111.65 KB (🟡 +124 B) 630.74 KB
/governance/proposal 111.8 KB (🟡 +124 B) 630.9 KB
/governance/proposal/[proposalId] 66.51 KB (🟡 +124 B) 585.61 KB
/reserve-overview 66.25 KB (🟡 +119 B) 585.34 KB
/staking 20.85 KB (🟡 +128 B) 539.94 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

@MareskoY
Copy link
Contributor

hellp @Jdecristi

found one problem over this pr on faucet button

if try to get fuacet for any asset we get internal loader

Screenshot 2023-05-19 at 11 37 36

@MareskoY MareskoY added QC Failed and removed Ready for QA Review Ready for QA engineer reviews labels May 19, 2023
@Jdecristi
Copy link
Contributor Author

@MareskoY I don't understand your problem, could you provide more information about what you mean?

I did manage to find an issue where the faucet button loads indefinitely. However this also happened on main branch as well.

@MareskoY
Copy link
Contributor

MareskoY commented Jun 7, 2023

Hello @Jdecristi , I found the reason for this bug. It's not related to the changes in this PR and shouldn't affect the functionality of the asset faucet

@foodaka foodaka added priority:low Ready for Dev Review Read for frontend engineer reviews labels Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants