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] Shipping Dropdown Loading State #2126

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

scottkicks
Copy link
Contributor

@scottkicks scottkicks commented Aug 15, 2024

📲 What

Makes sure the shimmer view loads while the shipping dropdown fetches it's locations.

🤔 Why

Without this the dropdown appears empty and visually stutters once the locations have loaded.

🛠 How

  • Update the view model's isLoading property so that it automatically starts loading when the no checkout at shipping feature flag is enabled.

  • The current behavior will start loading if the passed in reward has shipping enabled.
    This only applies to the existing flow where the dropdown is on the AddOns screen.
    Not that it's on the Rewards screen the behavior is different in that we aren't passing in a reward.

👀 See

hard to see the before, but with slower internet it's pretty bad.

Before 🐛 After 🦋
no-shimmer with-shimmer

✅ Acceptance criteria

  • Shimmer view shows until shipping dropdown has finished loading

@scottkicks scottkicks self-assigned this Aug 15, 2024
@scottkicks scottkicks marked this pull request as ready for review August 15, 2024 18:48
@scottkicks scottkicks merged commit fcd5e6f into main Aug 15, 2024
4 checks passed
@scottkicks scottkicks deleted the scott/shipping-dropdown-shimmerview branch August 15, 2024 19:55
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