Skip to content

[NMA-1167] (Coinbase) Authorization limit dialog - #900

Merged
HashEngineering merged 6 commits into
feature-coinbase-error-handlingfrom
coinbase-authorization-limit
Feb 24, 2022
Merged

HashEngineering merged 6 commits into
feature-coinbase-error-handlingfrom
coinbase-authorization-limit

Conversation

@Syn-McJ

@Syn-McJ Syn-McJ commented Feb 23, 2022

Copy link
Copy Markdown
Member

The first time user tries to log in to Conbase, we need to show a dialog about the correct authorization limit.

Issue being fixed or feature implemented

  • The dialog is the same as what's implemented in Feat(coinbase): error handling #897, however, there are some problems with UI - lack of shadows in particular. We should not ignore shadows if they are in the design. It's not hard to add - just use CardViewRaised style or android:elevation. I've added ViewRaised style that implements the correct shadow color.

I have also moved some of the old styles from the common module to the wallet, to encourage developers to use the new typography and button styles in feature modules. This allows us to start to address a couple of UI issues we have:

  • RTL problems for most of which there is a simple fix which is to add android:textAlignment="viewStart" to the typography styles. We can only do this for the new styles as adding it to the old ones can break things in the wallet module. However, because we keep mixing the new and the old styles this fix is not as easy.
  • There are some changes we can make to typography and button styles to make the introduction of a dark theme easier.

Related PR's and Dependencies

This PR should be merged to feature-coinbase-integration if done after #897

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

@Syn-McJ Syn-McJ self-assigned this Feb 23, 2022
android:src="@drawable/ic_blue_support"
app:layout_constraintBottom_toBottomOf="@+id/buy_dialog_contact_coinbase_support"
app:layout_constraintEnd_toStartOf="@+id/buy_dialog_contact_coinbase_support"
app:layout_constraintTop_toTopOf="@+id/buy_dialog_contact_coinbase_support" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This can all be done with just a button

LIQUID(org.dash.wallet.integration.liquid.R.string.liquid, org.dash.wallet.common.R.drawable.ic_liquid),
UPHOLD(org.dash.wallet.integration.uphold.R.string.uphold_account, org.dash.wallet.common.R.drawable.ic_uphold),
COINBASE(org.dash.wallet.integration.coinbase_integration.R.string.coinbase, org.dash.wallet.common.R.drawable.ic_coinbase)
COINBASE(org.dash.wallet.integration.coinbase_integration.R.string.coinbase, R.drawable.ic_coinbase)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I see no reason to put module-specific resources in the Common. If we do, it will grow to enormous proportions. Separation of resources is also a benefit in modular structure.


@AndroidEntryPoint
class BuyAndSellLiquidUpholdActivity : LockScreenActivity(), FancyAlertDialog.FancyAlertButtonsClickListener {
class BuyAndSellIntegrationsActivity : LockScreenActivity(), FancyAlertDialog.FancyAlertButtonsClickListener {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Seemed like a better name given that there are more integrations now.

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.

Yes, great idea to change this class name.


private var liquidClient: LiquidClient? = null
private var loadingDialog: ProgressDialog? = null
private var bottomSheetDialog: BottomSheetDialog? = null

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not used

@ClaudeHangui ClaudeHangui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All good for me !
thanks for the heads up in the PR description regarding the design

@HashEngineering
HashEngineering merged commit eba53eb into feature-coinbase-error-handling Feb 24, 2022
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.

3 participants