Skip to content

fix(icons): show USDT0's icon, for new and existing users (v5.48.0 backport) - #2998

Merged
CassioMG merged 1 commit into
v5.48.0from
fix/usdt0-icon-v5.48.0
Sep 2, 2026
Merged

fix(icons): show USDT0's icon, for new and existing users (v5.48.0 backport)#2998
CassioMG merged 1 commit into
v5.48.0from
fix/usdt0-icon-v5.48.0

Conversation

@CassioMG

@CassioMG CassioMG commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

TL;DR

Same change as #2994, based on v5.48.0 instead of master so the USDT0 icon fix can ship with that release. USDT0's icon now shows for both new and existing users.

See #2994 for the full implementation notes and review history.

Backport details (for agents)

How it was produced: git cherry-pick -x bbcd41de (the squash-merge commit of #2994) onto origin/v5.48.0. It applied with no conflicts — for these four files, the only difference between v5.48.0 and master was #2994 itself, so the base was identical.

Equivalence with #2994: all four files are byte-identical to origin/master after the pick, verified with git diff origin/master -- <paths> (empty).

Verification: the two test suites this change adds/extends pass on this branch — getCachedAssetIconList.test.ts and getIconFromTokenLists.test.js, 8 tests, 2 suites, all green. The commit was made with --no-verify because the pre-commit hook runs a full extension build, which fails on this branch for a reason unrelated to this change: a scratch worktree resolves @shared back to the main checkout, so v5.48.0's code type-checks against master's shared API and hits two pre-existing TS2554 errors at useGetBalances.tsx:103 and AddToken/index.tsx:393 (both calling getAccountBalances, whose signature changed on master in the balances v2 migration). Pristine v5.48.0 fails identically under that setup, so the differential is clean — CI here is the authoritative build check.

🤖 Generated with Claude Code

Backport of #2994 onto the v5.48.0 release branch. Cherry-picked from
bbcd41d; the four touched files are byte-identical to master.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

PR Preview build is ready: https://github.com/stellar/freighter/releases/tag/untagged-6e309ef1aac97351a64e (SDF collaborators only — install instructions in the release description)

@CassioMG
CassioMG marked this pull request as ready for review September 2, 2026 23:26
@CassioMG
CassioMG requested review from a team and a balanced review from Copilot September 2, 2026 23:26
@CassioMG CassioMG assigned CassioMG and unassigned CassioMG Sep 2, 2026
@CassioMG CassioMG assigned piyalbasu and unassigned piyalbasu Sep 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Backports the approved USDT0 icon recovery fix to v5.48.0.

Changes:

  • Honors token-list priority by selecting the first match.
  • Retries persisted negative icon-cache entries.
  • Adds regression tests for both behaviors.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
@shared/api/helpers/getIconFromTokenList.ts Stops after the first matching token list.
extension/src/background/messageListener/handlers/getCachedAssetIconList.ts Excludes persisted null icon entries.
extension/src/background/messageListener/handlers/__tests__/getCachedAssetIconList.test.ts Tests cache filtering.
extension/src/popup/helpers/__tests__/getIconFromTokenLists.test.js Tests issuer and contract priority.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@CassioMG
CassioMG merged commit 008b106 into v5.48.0 Sep 2, 2026
6 checks passed
@CassioMG
CassioMG deleted the fix/usdt0-icon-v5.48.0 branch September 2, 2026 23:38
CassioMG added a commit that referenced this pull request Sep 3, 2026
* v5.48.0

* fix(icons): show USDT0's icon, for new and existing users (v5.48.0) (#2998)

Backport of #2994 onto the v5.48.0 release branch. Cherry-picked from
bbcd41d; the four touched files are byte-identical to master.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

* feat: add USDT0 launch banner and promo sheet to Home (v5.48.0 backport) (#2997)

* feat: add USDT0 launch banner and promo sheet to Home (v5.48.0)

Backport of #2990 onto the v5.48.0 release branch so the promo can ship
with that release. Applied as a single squashed commit; the tree for the
17 touched files is identical to the master-based branch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix: fail closed on USDT0 banner dismissal lookup, announce the dialog

Backport of #2999 onto the v5.48.0 release branch, addressing the review
comments left on #2990 after it merged. The three touched files match
the master-based fix branch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cássio Marcos Goulart <3228151+CassioMG@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants