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

Jon/ui4/fix/post-upgrade-styling #4698

Merged
merged 5 commits into from
Jan 11, 2024
Merged

Conversation

Jon-edge
Copy link
Collaborator

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

TextInput spacing for the modal not addressed in this PR.

image

image

image

image image image image Screenshot 2024-01-10 at 3 44 56 PM Screenshot 2024-01-10 at 3 34 00 PM

Sanity check (SplitRowsView styling update)
Screenshot 2024-01-10 at 3 35 06 PM

Sanity check (RowUi4):
image
image
image
image
Screenshot 2024-01-10 at 4 52 32 PM
image

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

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)

@Jon-edge Jon-edge force-pushed the jon/ui4/fix/post-upgrade-styling branch from 59b6f20 to 8f91e61 Compare January 10, 2024 06:26
src/components/tiles/AddressTile2.tsx Outdated Show resolved Hide resolved
@@ -80,7 +80,7 @@ export const RowUi4 = (props: Props) => {
const content = (
<>
{icon == null ? null : icon}
<View style={styles.content}>
<View style={[styles.content, rightButtonVisible ? styles.tappableIconMargin : styles.fullWidth]}>
Copy link
Member

Choose a reason for hiding this comment

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

This change makes me nervous. It's possibility for regression is high as this is a very reused component. Please provide screenshots of everywhere RowUi4 is used to verify it hasn't broken anything.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All I'm doing here is removing the reliance on an empty view to deal with the content spacing to accomadate the absolutely positioned tappable icon as it was causing problems with some legacy styling for custom row children.

Provided various example screenshots

onPress={() => bridge.resolve(alpha)}
/>
<CardUi4 marginRem={[0.5, 0, 0.5, 0]}>
<RowUi4 title={name} body={alpha} icon={<FastImage source={source} style={styles.image} />} onPress={() => bridge.resolve(alpha)} />
Copy link
Member

Choose a reason for hiding this comment

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

Using RowUi4 changes the design altogether. These rows do not mimic the design of the original Tile which RowUi4 uses.

The design should have the top Text is primaryText color and rem=1 while the second row is smaller with the secondary text color.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Reverted, retaining original SelectableRow styling.

@Jon-edge Jon-edge force-pushed the jon/ui4/fix/post-upgrade-styling branch 5 times, most recently from 84566e8 to 487e4c0 Compare January 11, 2024 00:54
Copy link
Member

@paullinator paullinator left a comment

Choose a reason for hiding this comment

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

Approved but with the request you remove disableFontScaling unless you have a very good reason not to

{/* HACK: Keeping the iconContainer instead of CardUi4's built-in icon prop because the prop's behavior is inconsistent in legacy use cases */}
<View style={styles.iconContainer}>{icon}</View>
<View style={styles.textContainer}>
<EdgeText numberOfLines={1} disableFontScaling>
Copy link
Member

Choose a reason for hiding this comment

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

why did you add disableFontScaling. This would help with long country names

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Madison's request

@@ -619,6 +619,8 @@ const strings = {
title_add_token: 'Add Token',
title_password_recovery: 'Password Recovery',
title_plugin_buy: 'Buy Cryptocurrency',
title_select_region: 'Select Region:',
Copy link
Member

Choose a reason for hiding this comment

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

No need for ":"

@Jon-edge Jon-edge force-pushed the jon/ui4/fix/post-upgrade-styling branch from 487e4c0 to 8d30f83 Compare January 11, 2024 02:23
@Jon-edge Jon-edge force-pushed the jon/ui4/fix/post-upgrade-styling branch from 8d30f83 to a54dd9d Compare January 11, 2024 02:23
Removed chevron. Removed text shrinking per new design
spec
- Fix allowing the wallet name to take up as much space as possible.
- Remove chevrons
- Left justify Powered By
- Add CTA headers. Intentionally did not reuse old "Select your region" string because it's not capitalized in a way that looks like a title.
@Jon-edge Jon-edge force-pushed the jon/ui4/fix/post-upgrade-styling branch from a54dd9d to 9f85799 Compare January 11, 2024 02:42
@Jon-edge Jon-edge merged commit a4ebce7 into develop Jan 11, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/ui4/fix/post-upgrade-styling branch January 11, 2024 04:54
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