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

Feature maya enter amount #1265

Merged
merged 63 commits into from
Mar 25, 2024
Merged

Conversation

HashEngineering
Copy link
Collaborator

@HashEngineering HashEngineering commented Mar 7, 2024

Issue being fixed or feature implemented

This interface is taken from the Coinbase integration and modified to meet the new designs.

Some Coinbase items remain and will be refactored or deleted in the next stories.

Related PR's and Dependencies

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@HashEngineering HashEngineering self-assigned this Mar 7, 2024
@HashEngineering HashEngineering marked this pull request as draft March 7, 2024 03:16
@HashEngineering HashEngineering marked this pull request as ready for review March 25, 2024 14:44
@@ -207,17 +236,11 @@ class AmountView(context: Context, attrs: AttributeSet) : ConstraintLayout(conte
binding.resultCurrencyToggle.isVisible = showCurrencySelector && dashToFiat

if (dashToFiat) {
binding.inputSymbolDash.isVisible = isCurrencySymbolFirst
binding.inputSymbolDashPostfix.isVisible = !isCurrencySymbolFirst

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The symbol is now inserted into the Text Span, rather than being in a separate view.

// }
//
// listOf()
// }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

for now we will mock the result of the inbound_addresses api.

Comment on lines +34 to +38
data class SwapTradeResponseData(
val fee: SwapApiAmount? = null,
val id: String? = null,
@SerializedName("applied_subscription_benefit")
val applied_subscription_benefit: Boolean? = null,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This class and many others were copied from Coinbase. We will delete them or modify them in the next stories.

Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

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

Great work. The variable font size for AmountView works really well

app:autoSizeMaxTextSize="48sp"
android:gravity="center"
android:layout_gravity="center|bottom"
app:sizeToFit="true" /-->
Copy link
Member

Choose a reason for hiding this comment

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

Not needed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, not needed.

@@ -73,6 +73,9 @@ dependencies {
implementation "com.google.android.material:material:$materialVersion"
implementation "androidx.constraintlayout:constraintlayout:$constrainLayoutVersion"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshLayoutVersion"
implementation "io.coil-kt:coil:$coilVersion"
implementation "androidx.browser:browser:$browserVersion"
implementation 'me.grantland:autofittextview:0.2.1'
Copy link
Member

Choose a reason for hiding this comment

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

AutofitTextView seems to be commented out, maybe we don't need this import

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, this will be removed.

@HashEngineering HashEngineering merged commit 8037372 into feature-maya Mar 25, 2024
2 checks passed
@HashEngineering HashEngineering deleted the feature-maya-enter-amount branch April 30, 2024 13:43
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