Skip to content

fix: remove gap between symbol and price change on default token card watchlist cp-8.5.0 - #33859

Merged
sahar-fehri merged 2 commits into
mainfrom
cursor/watchlist-symbol-percentage-gap-017a
Jul 28, 2026
Merged

fix: remove gap between symbol and price change on default token card watchlist cp-8.5.0#33859
sahar-fehri merged 2 commits into
mainfrom
cursor/watchlist-symbol-percentage-gap-017a

Conversation

@sahar-fehri

@sahar-fehri sahar-fehri commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Description

Removes the unintended 12px vertical gap between the token symbol and price change percentage on default watchlist token cards in the empty watchlist view.

The card container uses flexDirection: 'column' with gap: 12, which was applying between the symbol and percentage when they were separate direct children. Wrapping them in a parent View groups them into a single card child so only the gap between the top row (logo + checkbox) and the text group remains.

Changelog

CHANGELOG entry: Fixed spacing between token symbol and price change on empty watchlist default token cards

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3774

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

Screenshot 2026-07-27 at 17 12 17

After

image

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

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.

Note

Low Risk
Layout-only JSX grouping in one watchlist card component; no logic, API, or data changes.

Overview
Fixes extra vertical space between the token symbol and 24h price change on default watchlist token cards (empty watchlist).

The card column uses gap: 12, which previously applied between the symbol and percentage because they were separate direct children of the pressable. Symbol and price change are now wrapped in a single parent View, so they read as one block and only the intended 12px gap remains between the top row (logo + checkbox) and that text group.

Test IDs and conditional rendering for the price change line are unchanged.

Reviewed by Cursor Bugbot for commit 11654db. Bugbot is set up for automated code reviews on this repo. Configure here.

… token card

Co-authored-by: sahar-fehri <sahar.fehri@consensys.net>
@sahar-fehri
sahar-fehri requested a review from a team as a code owner July 27, 2026 15:01
@github-actions github-actions Bot added the pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. label Jul 27, 2026
@metamask-ci metamask-ci Bot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 27, 2026
@metamask-ci

metamask-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

PR template — items to address before "Ready for review"

Warnings — informational, address before merging:

  • Manual testing steps still contain template content (the Gherkin example title or a [...] placeholder). Replace with real steps, or write N/A — <reason>.
  • Pre-merge author checklist has unchecked items (e.g. "I've followed MetaMask Contributor Docs and MetaMask Mobile Coding Standards."). Every box must be consciously checked — see docs/readme/ready-for-review.md.

See docs/readme/ready-for-review.md for the full Definition of Ready for Review.

@github-actions github-actions Bot added size-S risk:low AI analysis: low risk labels Jul 27, 2026
@metamask-ci metamask-ci Bot removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 27, 2026
@sahar-fehri sahar-fehri removed the pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. label Jul 27, 2026
@sahar-fehri sahar-fehri changed the title fix(watchlist): remove gap between symbol and price change on default token card fix: remove gap between symbol and price change on default token card watchlist cp-8.5.0 Jul 27, 2026
@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.

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: None (no tests recommended)
  • Selected Performance tags: None (no tests recommended)
  • Risk Level: low
  • AI Confidence: 95%
click to see 🤖 AI reasoning details

E2E Test Selection:
The only changed file is WatchlistDefaultTokenCard.tsx, and the diff shows a purely structural UI layout change: two <Text> elements (token symbol and price change label) are wrapped in a <View> container. No logic, props, state, test IDs, or behavioral changes are introduced. The test IDs remain identical, so existing unit tests are unaffected. This component is used only within WatchlistEmptyCTA (a watchlist feature) and is not referenced by any E2E smoke test files. The change has no functional impact on any user flow covered by the available smoke tags. Per the cosmetic changes guidance, this structural-only layout change does not warrant any E2E test execution.

Performance Test Selection:
The change is a minor layout refactor (wrapping Text elements in a View) with no impact on rendering performance, data fetching, or any performance-sensitive flow. No performance test tags are warranted.

View GitHub Actions results

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 84.78%. Comparing base (8171bdd) to head (11654db).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...listDefaultTokenCard/WatchlistDefaultTokenCard.tsx 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #33859      +/-   ##
==========================================
- Coverage   84.78%   84.78%   -0.01%     
==========================================
  Files        6246     6246              
  Lines      168298   168304       +6     
  Branches    41177    41181       +4     
==========================================
+ Hits       142695   142697       +2     
- Misses      15856    15858       +2     
- Partials     9747     9749       +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

@sahar-fehri
sahar-fehri added this pull request to the merge queue Jul 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 28, 2026
@sahar-fehri
sahar-fehri added this pull request to the merge queue Jul 28, 2026
Merged via the queue into main with commit 5324d4d Jul 28, 2026
140 of 142 checks passed
@sahar-fehri
sahar-fehri deleted the cursor/watchlist-symbol-percentage-gap-017a branch July 28, 2026 08:23
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 28, 2026
@metamask-ci metamask-ci Bot added the release-8.6.0 Issue or pull request that will be included in release 8.6.0 label Jul 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-8.6.0 Issue or pull request that will be included in release 8.6.0 risk:low AI analysis: low risk size-S team-assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants