-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[NT-969] Show full-screen "processing" state during create/update backing requests #1150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, @ifbarrera . I just left a minor comment and a suggestion.
@@ -744,6 +764,7 @@ public class PledgeViewModel: PledgeViewModelType, PledgeViewModelInputs, Pledge | |||
public let paymentMethodsViewHidden: Signal<Bool, Never> | |||
public let pledgeAmountViewHidden: Signal<Bool, Never> | |||
public let pledgeAmountSummaryViewHidden: Signal<Bool, Never> | |||
public let processingViewIsHidden: Signal<Bool, Never> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you alpha here?
|> ksr_addSubviewToParent() | ||
|> ksr_constrainViewToEdgesInParent() | ||
|
||
self.processingView.activityIndicator.startAnimating() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could start animating the indicator in the ProcessingView's init method. This way we don't need to expose its UIActivityIndicatorView property and it's one less thing to worry about, since we don't need to start/stop the animation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea!
|> \.numberOfLines .~ 0 | ||
|> \.text %~ { _ -> String in | ||
var processingString = Strings.project_checkout_finalizing_title() | ||
processingString.append("...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering the localizations, I wonder if it's ok to append the ...
to the string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 ⛵ 🏊
📲 What
Adds a full-screen "processing" view that displays when a create or update backing request is in flight, to prevent users from interacting with the app during critical requests.
🤔 Why
We want to guarantee that the user can't submit another backing request while one is in flight.
🛠 How
ProcessingView
which is added to the app'smainWindow
when either thecreateBacking
orupdateBacking
requests are in flightProcessingView
is removed from the hierarchy when the request terminates👀 See
Trello, screenshots, external resources?
✅ Acceptance criteria
⏰ TODO