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

feat: credits top-up warning #662

Merged
merged 7 commits into from
Jul 31, 2024
Merged

feat: credits top-up warning #662

merged 7 commits into from
Jul 31, 2024

Conversation

Syn-McJ
Copy link
Member

@Syn-McJ Syn-McJ commented Jul 23, 2024

Issue being fixed or feature implemented

We want to show a warning dialog if the user is low on credits and allow them to buy more.

What was done?

  • Some Obj-C classes migrated to Swift
  • Top-up warning dialog
  • "Buy credits" screen

How Has This Been Tested?

QA

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@Syn-McJ Syn-McJ requested a review from pankcuf July 23, 2024 14:09
@Syn-McJ Syn-McJ self-assigned this Jul 23, 2024
}

@Published var amount: AmountObject!

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, with how the BaseAmountViewController works, it's confusing where descendants should watch for amount updates - in an overridden method or in the amountChangeHandler of the model.

To fix this, I've hidden the methods and only the amount field is exposed on the model. It's made @Published to allow multiple subscribers with Combine.

Copy link
Collaborator

@pankcuf pankcuf left a comment

Choose a reason for hiding this comment

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

LGTM

@Syn-McJ Syn-McJ merged commit f743980 into dashpay:develop Jul 31, 2024
1 check passed
@Syn-McJ Syn-McJ deleted the feat/top-up branch July 31, 2024 08:31
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