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

UI4: Replace Legacy Tile & Card #4681

Merged
merged 14 commits into from
Jan 10, 2024
Merged

UI4: Replace Legacy Tile & Card #4681

merged 14 commits into from
Jan 10, 2024

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Jan 5, 2024

image
image
image
image
image
image
image
image

image

  • Replace all legacy Card and Tile components with CardUi4 and RowUi4.
  • At least the first tap from the tab or side menu items are restyled in this PR.
  • Some additional changes for buttons will be added after rebase on top of latest jon/ui4/hack-legacy-buttons

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

#4676
#4673

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

src/components/modals/TextInputModal.tsx Outdated Show resolved Hide resolved
src/components/tiles/CryptoFiatAmountTile.tsx Show resolved Hide resolved
src/components/scenes/CryptoExchangeScene.tsx Outdated Show resolved Hide resolved
src/components/scenes/SendScene2.tsx Outdated Show resolved Hide resolved
src/components/settings/SettingsHeaderRow.tsx Outdated Show resolved Hide resolved
@Jon-edge Jon-edge force-pushed the jon/ui4/replace-tile-card branch 5 times, most recently from 217ba2c to 9b579ed Compare January 10, 2024 01:20
- Simple find/replace for Tile.
- Rename type->rightButtonType
- Replace "static" -> "none" where applicable. Fully removed rightButtonType="none/static" if no press handler since that's redundant.
- TODO's have been noted at the top of some files to ensure it works without specific 'contentPadding'
Simple find/replace of jsx and imports
HomeCardUi4 and any future evenly tiled layouts is the only case in which we really need flex: 1.
No design spec so just make it similar to UI4 for now.
Needs more thought on how we should group/rearrange this, but it's a start.
Punting updates to RowUi4 to support these new row types to a future update. This looks good enough for now pending a general UI4 scene redesign.
Needs redesign for new organization of the elements. Perhaps 2 labeled sections for country and providers, allowing providers to be grouped into one card, or some other way to distinguish region selection from the other tappable items.
Leaving naked MainButtons for now, simply changing the type to primary.
Allow CardUi4 to control styling of an icon when just a uri is given. Icon will be the same size as original IconTile.
@Jon-edge Jon-edge merged commit 69c2e95 into develop Jan 10, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/ui4/replace-tile-card branch January 10, 2024 04:41
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.

2 participants