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/smol-4.12 #5201

Merged
merged 9 commits into from
Aug 20, 2024
Merged

Jon/smol-4.12 #5201

merged 9 commits into from
Aug 20, 2024

Conversation

Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Aug 14, 2024

image
imageimage
image
image
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/smol-4.12 branch 3 times, most recently from 08f9c32 to 381bbe8 Compare August 15, 2024 00:27
@Jon-edge
Copy link
Collaborator Author

Pending fix to SwapSuccessScene unit test

renderConfetti() {
if (!this.state.showConfetti) return null
React.useEffect(() => {
showConfettiAsync().catch(err => showError(err))
Copy link
Member

Choose a reason for hiding this comment

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

Just put the code for showConfettiAsync inside the useEffect or useAsyncAffect. That avoids declaring the function on every render and the overhead of useHandler.

@@ -153,13 +153,13 @@ export const SwapCreateScene = (props: Props) => {
if (exchangeInfo != null) {
const disableSrc = checkDisableAsset(exchangeInfo.swap.disableAssets.source, swapRequest.fromWallet.id, fromTokenId)
if (disableSrc) {
showError(sprintf(lstrings.exchange_asset_unsupported, fromCurrencyCode))
Copy link
Member

Choose a reason for hiding this comment

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

remove exchange_asset_unsupported if unused


/** Display the asset icon */
wallet?: EdgeCurrencyWallet
tokenId?: EdgeTokenId
Copy link
Member

Choose a reason for hiding this comment

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

This whole change is a misunderstanding of the task. The task is to Put asset icon and subicon on top of QRcode not on top of the scanning camera view. This should go on to the request scene

@Jon-edge Jon-edge force-pushed the jon/smol-4.12 branch 7 times, most recently from f29be42 to 7b14dee Compare August 19, 2024 23:04
package.json Outdated
@@ -142,6 +141,7 @@
"react-native-patina": "^0.1.6",
"react-native-permissions": "^4.1.5",
"react-native-piratechain": "^0.4.16",
"react-native-qr-svg": "^1.3.2",
Copy link
Member

Choose a reason for hiding this comment

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

This adds 1MB of javascript to our code which is pretty sizeable. I talked to William and he agreed this could easily create a perf issue. The icon could just be a View that you overlay on top of the QRcode. No additional library needed.

@Jon-edge Jon-edge force-pushed the jon/smol-4.12 branch 2 times, most recently from ec0f566 to f9839ea Compare August 19, 2024 23:59
Prop-less with UI4-compatible split margins
We're already applying the Android `visible-password` hack in `FilledTextInput.` Callers setting `secureTextEntry` nullifies the hack.
Not possible to use a `KeyboardAvoidingView` in the previous commit because a `FilledTextInput` squished smaller than 1 line causes it to immediately blur on focus, and this scene has too much content above the input.
Had to make a hacky `EdgeAnim` full overlay to make this work, `ButtonsView` was not designed with this behavior in mind.
@Jon-edge Jon-edge merged commit 0b584cd into develop Aug 20, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/smol-4.12 branch August 20, 2024 00:20
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