Skip to content

Wallet search redesign - #6799

Merged
crossle merged 29 commits into
masterfrom
feat/wallet-search-redesign
Dec 2, 2026
Merged

crossle merged 29 commits into
masterfrom
feat/wallet-search-redesign

Conversation

@SeniorZhai

Copy link
Copy Markdown
Member

No description provided.

@SeniorZhai SeniorZhai changed the title Testing: wallet search redesign Wallet search redesign Oct 27, 2026
@SeniorZhai SeniorZhai added the testing Now testing, but you can review label Oct 27, 2026
Remove empty-state market recommendations and cap recent chips at three rows using the existing token chip spacing. Limit balance width to half the screen, open Earn with the selected production, and close wallet search when opening market search.
Give two wide chips half the row, and let one wide chip use the space beside shorter chips so long balances stay visible.
List up to six recent tokens when the query is empty, seeded from send and receive until this wallet has its own list.
@SeniorZhai
SeniorZhai force-pushed the feat/wallet-search-redesign branch from e958a59 to 3e7823a Compare October 30, 2026 11:07
@SeniorZhai
SeniorZhai force-pushed the feat/wallet-search-redesign branch from 81e5ef6 to b895d77 Compare November 8, 2026 04:08
@SeniorZhai

Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

@SeniorZhai
SeniorZhai marked this pull request as ready for review November 16, 2026 07:20
@gaotic

gaotic Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

AI review done for 0e4155a in 2m 48s · 1 comment

Quality: Needs a fix before merge. Static review found no new defects from the merge with master, and Android compilation and unit tests remain unverified.

Role Model Status
Reviewer Codex codex/gpt-6.2-sol · effort high ok

…redesign

# Conflicts:
#	app/src/main/res/values-es/strings.xml
#	app/src/main/res/values-in/strings.xml
#	app/src/main/res/values-ja/strings.xml
#	app/src/main/res/values-ko/strings.xml
#	app/src/main/res/values-ms/strings.xml
#	app/src/main/res/values-ru/strings.xml
#	app/src/main/res/values-zh-rCN/strings.xml
#	app/src/main/res/values-zh-rTW/strings.xml
#	app/src/main/res/values/strings.xml

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Merged master and resolved the string-resource conflicts in commit f7e3807.

…redesign

# Conflicts:
#	app/src/main/res/values-es/strings.xml
#	app/src/main/res/values-in/strings.xml
#	app/src/main/res/values-ja/strings.xml
#	app/src/main/res/values-ko/strings.xml
#	app/src/main/res/values-ms/strings.xml
#	app/src/main/res/values-ru/strings.xml
#	app/src/main/res/values-zh-rCN/strings.xml
#	app/src/main/res/values-zh-rTW/strings.xml
#	app/src/main/res/values/strings.xml

@gaotic gaotic Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

AI review · Codex (Grok failed) · 4a4a8c9

Needs a fix before merge: upgrading drops the previous wallet search history. git diff --check passed. Compilation and the WalletSearch unit tests were not run because the Gradle wrapper cannot reach services.gradle.org.


private fun readRecentSearches(): List<RecentSearch> =
runCatching {
preferences.getString(PREF_WALLET_SEARCH_RECENT, null)?.let {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Existing wallet search history is never migrated. readRecentSearches() only parses PREF_WALLET_SEARCH_RECENT, and loadRecentSearches() only supplements that with PREF_WALLET_SEND and PREF_WALLET_RECEIVE. Nothing reads PREF_RECENT_SEARCH_ASSETS, which the old WalletSearchFragment.loadRecentSearchAssets() showed under Recent searches and which WalletViewModel.updateRecentSearchAssets() still stores as =-separated asset ids. After upgrade, users who searched tokens they never sent or received see an empty Recent section even though those ids are still on disk.

On first load, when PREF_WALLET_SEARCH_RECENT is absent and ${PREF_WALLET_SEARCH_RECENT}_cleared is false, split PREF_RECENT_SEARCH_ASSETS on = and seed the new list as RecentSearch(RecentSearchType.ASSET, primaryKey = id) in that order. Do not seed again after the user clears history.

…redesign

# Conflicts:
#	app/src/main/java/one/mixin/android/ui/home/web3/market/MarketSearchPage.kt

@gaotic gaotic Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

AI review · Codex · f07f317

git diff --check passed for both comparison ranges, and all 10 changed XML files parsed. The offline Gradle run could not resolve the Foojay plugin, so Android compilation and the WalletSearch unit tests remain unverified.


private fun readRecentSearches(): List<RecentSearch> =
runCatching {
preferences.getString(PREF_WALLET_SEARCH_RECENT, null)?.let {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Upgrading still drops wallet search history stored only in PREF_RECENT_SEARCH_ASSETS. The old screen read that key as =-separated asset IDs, while this reader loads the new JSON list and only supplements it with send and receive history. When the new key is absent and history has never been cleared, migrate the legacy IDs in order as ASSET entries.

@gaotic gaotic Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

AI review · Codex · 0e4155a

git diff --check passed for both comparison ranges, and all changed XML files parsed. The focused offline Gradle run stopped at settings evaluation because it could not resolve the Foojay plugin.


private fun readRecentSearches(): List<RecentSearch> =
runCatching {
preferences.getString(PREF_WALLET_SEARCH_RECENT, null)?.let {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Upgrading still drops wallet search history stored only in PREF_RECENT_SEARCH_ASSETS. The old screen reads that key as =-separated asset IDs, while the new screen reads the new JSON key and supplements it with send and receive history. When the JSON key is absent and the user has never cleared history, migrate the legacy IDs in order as ASSET entries.

@crossle
crossle merged commit 4dacc31 into master Dec 2, 2026
1 check passed
@crossle
crossle deleted the feat/wallet-search-redesign branch December 2, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Now testing, but you can review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants