Skip to content

Conversation

@amy-at-kickstarter
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter commented Sep 30, 2025

📲 What

Support edit order links - as both deeplinks, and as push notifications.

order edit

🤔 Why

We want to alert users (via e-mail and push) when they have a pending order edit. This change will route them to the PledgeManagerWebViewController (see: #2637) for both cases.

return self[key].flatMap { Int($0) }
}

public func orderEditParam() -> Int? {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't currently use this param - we use the path, same as the survey URL - but figured I'd implement it so that the :order_edit_id was clear and functional.

@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/mbl-2722/implement-link branch from a8221e8 to 22af97f Compare September 30, 2025 13:55
@nativeksr
Copy link
Collaborator

SwiftLint found issues

Warnings

File Line Reason
Navigation.swift 736 File should contain 400 lines or less: currently contains 736 (file_length)

Generated by 🚫 Danger

EOF

echo $APNS_DATA
xcrun simctl push booted com.kickstarter.kickstarter.debug - <<< $APNS_DATA No newline at end of file
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This handy script will send a test notification to the debug app, which links to a survey URL (or other pledge manager URL).

Screenshot 2025-09-30 at 9 58 01 AM

@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review September 30, 2025 14:24
@amy-at-kickstarter amy-at-kickstarter requested review from a team and ifosli and removed request for a team September 30, 2025 14:25
Copy link
Contributor

@ifosli ifosli left a comment

Choose a reason for hiding this comment

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

Code changes look good and I love the addition of the send push script. But can we fix it to attempt to match what we actually get from the server? It'd be nice to fix in this pr, but I'm also okay with merging this for now and updating it after team b adds push support for the order edit.

"aps": {
"alert": "This is a pledge manager push notification.",
},
"pledgeRedemption": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on Yun's explorations and the info from Aidan in this thread https://kickstarter.slack.com/archives/C06EKGN4MHU/p1759175026019329 it looks like we're expecting the wrong pledge manager format (which explains why I've never seen a pledge manager notification; I meant to test this but went on leave before I was able to, and I think it just never got tested). So we probably want to change what this payload looks like, to match the actual payload.

Base automatically changed from feat/adyer/mbl-2722/rename-classes to main October 1, 2025 18:23
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