8000 [MBL-2317] View Your Pledge Web View by scottkicks · Pull Request #2380 · kickstarter/ios-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[MBL-2317] View Your Pledge Web View #2380

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
merged 3 commits into from
Apr 11, 2025
Merged

[MBL-2317] View Your Pledge Web View #2380

merged 3 commits into from
Apr 11, 2025

Conversation

scottkicks
Copy link
Contributor
@scottkicks scottkicks commented Apr 10, 2025

📲 What

Creates a new web view controller that will display a user's backing details.

🤔 Why

For backers who pledged to a campaign and completed PM or who just completed PM, we'll show a web view when they want to see their backing details.

This is a crunch time approach. There are plans to update our native screen with PM backing details, etc., once we're out of crunch time 🤞.

🛠 How

  • Creates a new ViewController that inherits from our WebViewController class.
  • Load the existing backing details URL on viewDidLoad using a passed in Project.

This is just the view controller. The next PR will wire it up and use the new Backing.Order object, and the feature flag, to determine when to show this web view and when to show the existing native screen.

The entry points will include the Project Page and Messages.

Checkout the SPIKE for more details

👀 See

I replaced the creator profile webview with this new one for testing purposes.

Simulator Screen Recording - iPhone 15 Pro 17 5 - 2025-04-10 at 09 43 52

✅ Acceptance criteria

  • when presented this new web view controller loads the backing details page.

⏰ TODO

  • wire this up using the A/C I mentioned above.

@scottkicks scottkicks self-assigned this Apr 10, 2025
@scottkicks scottkicks marked this pull request as ready for review April 10, 2025 16:07
Comment on lines 32 to 34
let urlString =
"\(AppEnvironment.current.apiService.serverConfig.webBaseUrl)/projects/\($0.creator.id)/\($0.slug)/backing/details"
return URL(string: urlString)
Copy link
Contributor

Choose a reason for hiding this comment

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

There's a function getProjectBackingDetailsURL that appears to do this, can you move this to a publicly available function somewhere and use it here?

Copy link
Contributor

Choose a reason for hiding this comment

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

I added ProjectURLBuilder with a public version of getProjectBackingDetailsURL.

Copy link
Contributor
@jovaniks jovaniks left a comment

Choose a reason for hiding this comment

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

LGTM

@jovaniks jovaniks merged commit 312383c into main Apr 11, 2025
5 checks passed
@jovaniks jovaniks deleted the scott/mbl-2317 branch April 11, 2025 14:08
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.

3 participants
0