Skip to content

Redesign Currency screen and fix broken rate sources - #130

Merged
theanmolsharma merged 7 commits into
CypherCommons:masterfrom
chaitika:fix-currency
Jul 31, 2026
Merged

Redesign Currency screen and fix broken rate sources #130
theanmolsharma merged 7 commits into
CypherCommons:masterfrom
chaitika:fix-currency

Conversation

@chaitika

@chaitika chaitika commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Currency Screen

image image

Search Bar

image

Copilot AI review requested due to automatic review settings July 16, 2026 15:48

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 16, 2026 16:12

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings July 16, 2026 16:40

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@notTanveer

notTanveer commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

search bar not accurate / not working..
image

@notTanveer

Copy link
Copy Markdown
Contributor
  • the font weight should be regular for the icons.
  • a lil more space between "USD" and "US Dollar".
  • the top currencies, USD, EUR, GBP, CAD, INR, etc, should be available at the top, and the rest could follow later alphabetically
Expected Current
Expected Current

@chaitika

Copy link
Copy Markdown
Contributor Author

search bar not accurate / not working..

INR is selected already, so doesnot show up in search. can you try with some other currency like usd, etc.

@notTanveer

notTanveer commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

INR is selected already, so doesnot show up in search. can you try with some other currency like usd, etc.

not working

WhatsApp.Video.2026-07-19.at.4.57.16.PM.mp4

Copilot AI review requested due to automatic review settings July 24, 2026 14:40

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Comment thread models/fiatUnit.ts Outdated
Comment thread screen/settings/Currency.tsx Outdated
Comment thread screen/settings/Currency.tsx Outdated
Comment thread hooks/useDeleteWallet.ts
Comment thread components/navigationStyle.tsx
Comment thread screen/settings/Currency.tsx
Comment thread screen/settings/Currency.tsx Outdated
Comment thread screen/settings/Settings.tsx Outdated
Comment thread navigation/DetailViewStackParamList.ts
Comment thread components/SettingsRow.tsx Outdated

@theanmolsharma theanmolsharma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Follow-up pass, code quality only — none of this is a bug, and none of it blocks. The changes-requested review above still holds the things I think need action.

The two I'd actually like a decision on are inline: the generated Android asset, and whether SettingsRow is meant to replace ListItem or live alongside it.

Remaining small stuff, not worth its own thread each:

  • styles.transparent is fighting an abstraction. It exists only to override the backgroundColor that SafeAreaFlatList hardcodes. That component assumes it's the screen root — nesting it inside a card is off-label. A plain FlatList here would be more honest, since the card already handles the background.
  • Naming. SettingsRow.tsx default-exports a component named Row, so it shows as Row in DevTools and gets imported under a name that doesn't match its file. Same idea with roundIcon on Row mapping to circle on SettingsIconWrapper — two names for one concept.
  • The three stub screens are byte-identical. If they have to land, one shared PlaceholderScreen is less to delete later.
  • loc key pairing. Every new *_subtitle has a matching sibling except security_subtitle, which pairs with the pre-existing encrypt_title. Slightly surprising to grep for.

And credit where it's due — extracting SettingsRow + SettingsIconWrapper instead of inlining the layout twice is the right instinct, and the six new theme tokens are correctly mirrored across both themes (dark spreads ShroudDefaultTheme.colors, so nothing dangles). The comments below are about finishing those two ideas, not backing out of them.

Comment thread android/app/src/main/assets/fiatUnits.json Outdated
Comment thread components/SettingsRow.tsx Outdated
Comment thread components/SettingsRow.tsx Outdated
Comment thread screen/settings/Settings.tsx Outdated
Comment thread screen/settings/Currency.tsx
Comment thread screen/settings/Settings.tsx Outdated
Copilot AI review requested due to automatic review settings July 28, 2026 17:04

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

chaitika added 6 commits July 30, 2026 14:50
The Currency.tsx redesign dropped the last references to loc._.never
that find-unused-loc.js could see, since the script never scans loc/
itself where transactionTimeToReadable() still uses that key. Add
loc/ to the scanned dirs to close that gap, and fix two real lint
errors the unused-loc gate had been masking: a missing colors.successCheck
dependency in Currency's renderItem callback, and an inline-style
ternary in SettingsIconWrapper.
Drops the dead CoinDesk/cryptocompare source (COP/KES now on Coinbase)
and surfaces Kraken's own error message instead of a generic one. Fixes
the double-tap bug on search results (keyboardShouldPersistTaps), restores
loading feedback via a new SettingsRow isLoading prop, keeps item.country
in the search-match set while still ranking by short name, and moves
SettingsRow's separator onto the Pressable's own border so ITEM_HEIGHT is
exact. Also fixes SearchIcon sizing, listCard's safe-area bottom margin,
and adds accessibilityState to SettingsRow.
Copilot AI review requested due to automatic review settings July 30, 2026 10:31

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Untrack android/app/src/main/assets/fiatUnits.json - it's a build
artifact copied from models/fiatUnits.json by the copyFiatUnits Gradle
task on every build, so hand-editing it in git is a standing trap for
silent drift. Gitignore it like the sibling generated
index.android.bundle.

Add a comment noting Kraken's XXBTZ pair prefix only covers its
Z-class quote assets (USD/EUR/GBP today) and would need a different
prefix for others.

Memoize SettingsRow and the icon/rightElement elements passed into it
from Settings.tsx and Currency.tsx, so React.memo has stable props to
compare against instead of a fresh element on every render.
Copilot AI review requested due to automatic review settings July 30, 2026 14:47

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chaitika
chaitika requested a review from theanmolsharma July 30, 2026 14:49
@theanmolsharma
theanmolsharma merged commit b29b315 into CypherCommons:master Jul 31, 2026
4 checks passed
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.

4 participants