Skip to content

CHECK-395: Hook new project page fetch into ProjectPageViewModel - #2952

Open
amy-at-kickstarter wants to merge 3 commits into
feat/adyer/check-395/2from
feat/adyer/check-395/3
Open

CHECK-395: Hook new project page fetch into ProjectPageViewModel#2952
amy-at-kickstarter wants to merge 3 commits into
feat/adyer/check-395/2from
feat/adyer/check-395/3

Conversation

@amy-at-kickstarter

@amy-at-kickstarter amy-at-kickstarter commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

📲 What

Use ProjectPageFetcher.fastFastProjectPage in ProjectPageViewModel when the InstantPledgeButtonExperiment is on.

🤔 Why

This actually integrates the faster fetch with ProjectPageViewModel.

👀 See

Not all pages have this dramatic of a speedup, but here's one that makes a particular satisfying before-and-after gif.

Before 🐛 After 🦋
page-load-before-example page-load-after-example

@amy-at-kickstarter
amy-at-kickstarter changed the base branch from main to feat/adyer/check-395/2 August 6, 2026 01:29
@nativeksr

Copy link
Copy Markdown
Collaborator

SwiftLint found issues

Warnings

File Line Reason
ProjectPageViewModel.swift 226 Function should have complexity 10 or less; currently complexity is 13 (cyclomatic_complexity)
ProjectPageViewModel.swift 959 Prefer != nil over let _ = (unused_optional_binding)
ProjectPageViewModel.swift 964 Prefer != nil over let _ = (unused_optional_binding)
ProjectPageViewModelTests.swift 1460 An XCTFail call should include a description of the assertion (xctfail_message)
ProjectPageViewModelTests.swift 1510 An XCTFail call should include a description of the assertion (xctfail_message)

Generated by 🚫 Danger

AppEnvironment.popEnvironment()
}

static func mockNetworkRequests_newQuery(

@amy-at-kickstarter amy-at-kickstarter Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When we conclude the experiment, it will be easy to replace the old mocking helper for the old query with this new mocking helper.

@amy-at-kickstarter
amy-at-kickstarter marked this pull request as ready for review August 6, 2026 13:45
@amy-at-kickstarter
amy-at-kickstarter requested review from a team, scottkicks and stevestreza-ksr and removed request for a team August 6, 2026 17:34
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.

2 participants