Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[MBL-1631] Remove Shipping Dropdown From Add-Ons #2106

Merged
merged 7 commits into from
Jul 30, 2024

Conversation

scottkicks
Copy link
Contributor

📲 What

Removes the shipping drop-down from our AddOns screen

🤔 Why

The shipping dropdown will only be used on the Rewards screen to filter rewards shown based on location. This is the first step in removing the dropdown from the other places in the app where it's displayed.

🛠 How

This adds a new view controller, RewardAddOnSelectionNoShippingViewController, which is just a copy of RewardAddOnSelectionViewController without the shipping location dropdown.

The duplicate class makes it easier for us to gate this behind a feature flag.

👀 See

Feature flag is on

Crowdfunding (Local/No shipping) Crowdfunding Late Pledge Manage Pledge
remove-add-ons-local remove-add-ons-with-shipping late-pledge-remove-add-ons-shipping Simulator Screen Recording - iPhone 15 Pro Max - 2024-07-18 at 13 39 08

✅ Acceptance criteria

  • The shipping dropdown no longer shows on AddOns screen in normal crowdfunding, late, or manage pledge flow.
  • AddOns screen still shows the correct and available AddOns for the selected reward
  • Late Pledge and Checkout flows are still complete successfully; the shipping total will be hardcoded to 0.
  • None of these changes are visible if the feature flag is off

@scottkicks scottkicks force-pushed the scott/remove-shipping-dropdown-from-addons branch from 56c8eab to 59f7ce2 Compare July 30, 2024 18:38
@@ -254,7 +254,7 @@ private func getRewardIDsToQuery(for project: Project) -> Set<Int> {
if rewardIDsToQuery.isEmpty {
let restrictedRewards = project.rewards
.filter {
($0.isRestrictedShippingPreference || $0.isLocalShippingPreference || $0.hasNoShippingPreference)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

local shipping items by default have shipping disabled. removing this check since it isn't a possible case here.

@nativeksr
Copy link
Collaborator

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@scottkicks scottkicks marked this pull request as ready for review July 30, 2024 19:22
@scottkicks scottkicks merged commit 5012683 into main Jul 30, 2024
5 checks passed
@scottkicks scottkicks deleted the scott/remove-shipping-dropdown-from-addons branch July 30, 2024 19:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants