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

[NO TICKET] Rewards Load Before Shipping Locations Have Loaded #2136

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

scottkicks
Copy link
Contributor

@scottkicks scottkicks commented Aug 28, 2024

📲 What

Waits for the shipping locations to finish loading to show rewards carousel.

We don't have loading states for this in the designs, so I'll be bringing this up with Alison as well.

🤔 Why

Noticed an issue where the rewards can load before the shipping location is selected.
Since the rewards should be filtered by location, we don't want users to be able to select a reward that may not be available for that location.

🛠 How

The Location Selector is already set up to make it easy to pass a Bool that tells us when it has finished loading.
This allows us to control the reward collection view's hidden state dynamically.

👀 See

Simulator Screen Recording - iPhone 15 Pro - 2024-08-28 at 12 43 32

✅ Acceptance criteria

  • [] Rewards only show once the shipping location has finished loading

@scottkicks scottkicks self-assigned this Aug 28, 2024
@scottkicks scottkicks marked this pull request as ready for review August 28, 2024 20:15
@scottkicks scottkicks requested a review from ifosli August 28, 2024 20:15
Copy link
Contributor

@ifosli ifosli left a comment

Choose a reason for hiding this comment

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

I definitely like this better than potentially not knowing what your shipping location is! Will you file a ticket to explore nicer alternatives and tag that in the code before submitting this?

@scottkicks scottkicks merged commit 40d4356 into main Aug 29, 2024
5 checks passed
@scottkicks scottkicks deleted the scott/redemption/reward-loading-state branch August 29, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants