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

Extension: Portfolio View: Update activity list copy on Token Details #28766

Closed
9 tasks
hesterbruikman opened this issue Nov 27, 2024 · 0 comments · Fixed by #28764
Closed
9 tasks

Extension: Portfolio View: Update activity list copy on Token Details #28766

hesterbruikman opened this issue Nov 27, 2024 · 0 comments · Fixed by #28764
Assignees
Labels
portfolio-view Used for PRs and issues related to Q4 2024 portfolio view release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-assets

Comments

@hesterbruikman
Copy link

hesterbruikman commented Nov 27, 2024

What is this about?

Update copy on Token Details when a token is shown for a network that the user is not currently on. The current copy can be confusing because it states that there are no transactions, while the user might have transactions for this token, but they are not visible because they are on a different network. This issue is temporary as cross-chain activity polling is planned.

Current copy

You have no transactions

Expected copy

Please switch to [network] to view transactions

Scenario

WHEN All networks is enabled
AND Tapping on a token on a network other than the Globally Selected Network
THEN The Activity list on token details shows You have no transactions >>> Please switch to [network] to view transactions

Design

No response

Technical Details

No response

Threat Modeling Framework

No response

Acceptance Criteria

No response

Stakeholder review needed before the work gets merged

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

@hesterbruikman hesterbruikman added the portfolio-view Used for PRs and issues related to Q4 2024 portfolio view label Nov 27, 2024
github-merge-queue bot pushed a commit that referenced this issue Nov 27, 2024
fixes #28766 

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**


If the token chosen in the token details does not correspond to the
current network, the message displayed in the activity section should be
updated accordingly.

<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/28764?quickstart=1)

## **Related issues**

Fixes: #28766

## **Manual testing steps**

1. run `PORTFOLIO_VIEW=true yarn start`
2. choose any token who is not part of current network and go to token
details
3. go to activity section and check the message

## **Screenshots/Recordings**

<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->

### **Before**

<!-- [screenshots/recordings] -->

### **After**


https://github.com/user-attachments/assets/e0d379b8-dd37-4e87-a845-ff35a08deb76



<!-- [screenshots/recordings] -->

## **Pre-merge author checklist**

- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
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.
@metamaskbot metamaskbot added the release-12.9.0 Issue or pull request that will be included in release 12.9.0 label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
portfolio-view Used for PRs and issues related to Q4 2024 portfolio view release-12.9.0 Issue or pull request that will be included in release 12.9.0 team-assets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants