Add additional confirmation to link price changes and airplane purchase for significant changes #634
+81
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
UX improvement to help reduce the chance for users to make accidental changes, like unintentional price changes or larger than desired airplane orders. To accomplish this, I added a check box when a 'significant' event is detected (more below) and disable the purchase/confirm buttons. I opted for a checkbox rather than a button to intentionally disrupt the standard UX (e.g., like if a button were used) to help break any tunnel vision that occurs (e.g., when trying to quickly make lots of price changes back to back). On check, the purchase/confirm buttons are re-enabled. Feel free to tweak any values, I opted for a somewhat arbitrary 50% threshold. Same for the label wording, feel free to adjust.
Airplane Purchase
UX when a 'significant'(purchase price >= 50% of available cash) airplane purchase is detected:
Link Price Change
UX when a 'significant' (any of eco/bus/first percent price change >= 50%) price change is detected: