8000 [MBL-2198] Deeplink fallback: backing/details → survey_responses by jovaniks · Pull Request #2404 · kickstarter/ios-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[MBL-2198] Deeplink fallback: backing/details → survey_responses #2404

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

Merged

Conversation

jovaniks
Copy link
Contributor
@jovaniks jovaniks commented Apr 24, 2025

📲 What

Fallback logic for deeplinks: replaces /backing/details with /backing/survey_responses to avoid WebView login prompts / white screen.

🛠 How

  • Introduced a fallback replacement in Navigation.swift inside the projectSurvey route match.
  • Added constants to avoid hardcoding the path strings.
  • Updated NavigationTests.swift to assert the fallback behavior explicitly.

This same workaround exists in the Pledge Management flow:

👀 See

Before 🐛 After 🦋
Simulator Screen Recording - iPhone 16 Pro - 2025-04-24 at 16 40 27 Simulator Screen Recording - iPhone 16 Pro - 2025-04-24 at 16 27 50

✅ Acceptance criteria

  • Navigating to the /backing/details path opens the WebView with /backing/survey_responses instead.
  • Navigating directly to the /backing/survey_responses path works as expected and loads the WebView successfully.

⏰ TODO

  • Revert fallback and restore direct usage of /backing/details once backend auth issue is resolved.

…prompts

Replaces occurrences of `backing/details` with `backing/survey_responses` when matching routes
to prevent re-authentication issues triggered by backend restrictions in the WebView.

This fallback was previously applied in Pledge Management flow as well:
- Backing.swift#L15
- ViewPledgeUseCase.swift#L43

Includes tests to ensure `backing/details` maps correctly to `survey_responses`.
@jovaniks jovaniks changed the title Apply fallback for backing/details deeplinks to avoid WebView auth … [MBL-2198] Deeplink fallback: backing/details → survey_responses Apr 25, 2025
Copy link
Contributor
@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

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

LGTM, love the detailed comment and tests!

@jovaniks jovaniks merged commit f035c4d into main Apr 25, 2025
5 checks passed
@jovaniks jovaniks deleted the jluna/MBL-2198/backing-details-deeplink-from-plot-email branch April 25, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0