== Spec ==
=== Global Error Banner View ===
Given I just did something that triggered a global error banner
When it is displayed
Then it should slide down from the top of the screen
And it should contain localized text describing details of the error (e.g. Internet connection appears to be offline).
And it should be presented on top of everything in the app
And it should have styling appropriate for its severity
=== Editing View ===
//TODO: spec out banner behaviors on editing view. e.g. preview fetching "progress", etc.//
=== Account Creation View ===
All account creation states are communicated using banners for the time being.
==== Scenario: Account Creation ====
Background: Given I am on the account creation view
When I attempt to create an account
Then I should see a notification that tells me the account is being created (i.e. "Saving...")
And I should not be able to dismiss the banner manually
And the "create account" button should be disabled
And I am currently waiting for an account creation response
When I receive an error response
Then I should see an error banner
And I am currently waiting for an account creation response
When I receive a successful response
Then I should see a notification that tells me I am logging in
And I should not be able to dismiss the banner manually
And I am currently waiting to login
When I login successfully
Then I should see a notification that says I have logged in
And the account creation view should be dismissed
And I am currently waiting to login
When I fail to login
Then I should see an error banner
And the "create account" button should be enabled
---
Currently we use top and bottom gray bars for notifications. Lets design something better and make it consistent throughout the app.
Make UI for alerting users modern and consistent across the app.
- Do not block the UI
- Use legible type
- Use colors to denote purpose/importance (red bad / yellow meh / green good)
Suggested Pods:
https://github.com/Loadex/MessageBanner
https://github.com/KrauseFx/TSMessages
https://github.com/atljeremy/JFMinimalNotifications
What we have now - {F2717628}