Skip to content

fix: add missing isPortfolioUrl import and update portfolio url name#9243

Merged
ameliejyc merged 2 commits intomainfrom
fix-portfolio-urls
Apr 16, 2024
Merged

fix: add missing isPortfolioUrl import and update portfolio url name#9243
ameliejyc merged 2 commits intomainfrom
fix-portfolio-urls

Conversation

@ameliejyc
Copy link
Copy Markdown
Contributor

@ameliejyc ameliejyc commented Apr 15, 2024

Description

Fixes #9242 and #9244

More specifically, fixes these 2 issues:

  • URL not called properly for Stake button since constant name changes (broken Portfolio Stake link)
  • isPortfolioUrl is not imported in app/components/UI/Tokens/index.tsx (broken Portfolio home link)

NOTE: These breaking issues should have been caught by the typechecker which is currently disabled for the components folder. I'd strongly advise that this is re-implemented as these issues could have been easily been caught at the commit or CI level.

Related issues

Fixes: #9242 and #9244

Manual testing steps

Screenshots/Recordings

Before

Portfolio.link.bug.mov

After

bug.fix.mov

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

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.

@github-actions
Copy link
Copy Markdown
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.

@ameliejyc ameliejyc added the team-stake-deprecated DEPRECATED: please use "team-earn" instead label Apr 15, 2024
@ameliejyc ameliejyc marked this pull request as ready for review April 15, 2024 16:35
@ameliejyc ameliejyc requested a review from a team as a code owner April 15, 2024 16:36
@ameliejyc ameliejyc added release-7.21.0 Issue or pull request that will be included in release 7.21.0 Run Smoke E2E labels Apr 15, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: e269ceb
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/851fed7a-68f4-4bb9-bbb4-5f64bb57d465

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@ameliejyc ameliejyc changed the title fix: add missing import and update portfolio url name fix: add missing isPortfolioUrl import and update portfolio url name Apr 15, 2024
@chrisleewilcox chrisleewilcox added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Apr 15, 2024
@sethkfman sethkfman added the regression-RC DEPRECATED: Please use "regresssion-RC-x.y.z" label instead label Apr 15, 2024
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: c5dc7f4
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/b1d04265-a88d-47e4-ad46-284f17ce8b34

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link
Copy Markdown
Contributor

@NicolasMassart NicolasMassart left a comment

Choose a reason for hiding this comment

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

Looks good to me.
image

Copy link
Copy Markdown
Contributor

@sethkfman sethkfman left a comment

Choose a reason for hiding this comment

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

LGTM

@ameliejyc ameliejyc merged commit a8dd6e3 into main Apr 16, 2024
@ameliejyc ameliejyc deleted the fix-portfolio-urls branch April 16, 2024 15:23
@github-actions github-actions bot locked and limited conversation to collaborators Apr 16, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Apr 16, 2024
@metamaskbot metamaskbot added the release-7.22.0 Issue or pull request that will be included in release 7.22.0 label Apr 16, 2024
@metamaskbot metamaskbot removed the release-7.22.0 Issue or pull request that will be included in release 7.22.0 label Apr 16, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

More than one release label on PR. Keeping the lowest one (release-7.21.0) on PR and removing other release labels (release-7.22.0).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

regression-RC DEPRECATED: Please use "regresssion-RC-x.y.z" label instead release-7.21.0 Issue or pull request that will be included in release 7.21.0 team-stake-deprecated DEPRECATED: please use "team-earn" instead

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Bug]: app closes when tapping portfolio button on wallet view

5 participants