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

Third party asset deposit rule - local #679

Merged
merged 35 commits into from
Aug 24, 2023

Conversation

GhenadieVP
Copy link
Contributor

@GhenadieVP GhenadieVP commented Aug 20, 2023

Brings in Third Party deposits:

  • Added the section for managing deposit rules.
  • Added the asset exception lists.
  • Added Allowed Depositors.
  • Added separate client to load the resources.
  • Linked UI to profile

Video -> https://drive.google.com/file/d/1530qDqWas1-PUNsfk82zOmbdu70dQHhx/view?usp=drive_link

@GhenadieVP GhenadieVP changed the title WIP - Third party asset deposit rule Third party asset deposit rule - local Aug 23, 2023
@GhenadieVP GhenadieVP marked this pull request as ready for review August 23, 2023 12:22
if !viewStore.resources.isEmpty {
listView(viewStore)
}
Spacer()
Copy link
Contributor

Choose a reason for hiding this comment

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

Spacer needed? should use minLength: 0 if so?

Group {
if case let .allowDenyAssets(exceptionRule) = viewStore.mode {
Picker(
"",
Copy link
Contributor

Choose a reason for hiding this comment

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

What are the implications of using "" here? I think for accessibility sake we wanna set it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It describes the purpose, meant to add it, but forgot. Thx for reminder.

}
.padding(.leading, .medium3)

Spacer()
Copy link
Contributor

Choose a reason for hiding this comment

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

Spacer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes.

.padding(.large3)
.background(.app.background)

Spacer()
Copy link
Contributor

Choose a reason for hiding this comment

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

trailing Spacer needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, to push the content of the VStack on top.

.keyboardType(.asciiCapable)
.autocorrectionDisabled()

WithControlRequirements(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should WithControlReq... be in a footer?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For this scenario no, the button is shown near the text field as it is the only UI element in the screen.


case .allowDenyAssets:
state.destinations = .allowDenyAssets(.init(
mode: .allowDenyAssets(.allow),
Copy link
Contributor

Choose a reason for hiding this comment

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

.allowDenyAsserts(.allow) is a little hard to understand, does this mean we start in segment allow, a label would help!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, will add a label

Copy link
Contributor

@CyonAlexRDX CyonAlexRDX left a comment

Choose a reason for hiding this comment

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

Good job! Looks great overall, left some potentially non-helping comments :P

@GhenadieVP GhenadieVP merged commit 1410a34 into main Aug 24, 2023
@GhenadieVP GhenadieVP deleted the fix/ABW-1766-i-os-third-party-asset-deposit-rule branch August 24, 2023 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants