Procházet zdrojové kódy

Open premium sheet from sidebar Manage Subscription

Route the sidebar Pro card CTA through presentPremiumPlansSheet after
refreshing entitlements, instead of opening the App Store subscriptions
URL. Update the Pro-state subtitle to reference Premium so copy matches
the action.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 před 3 týdny
rodič
revize
1960deff34
1 změnil soubory, kde provedl 2 přidání a 7 odebrání
  1. 2 7
      App for Indeed/Views/DashboardView.swift

+ 2 - 7
App for Indeed/Views/DashboardView.swift

@@ -375,7 +375,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
375
         let descriptionWidth: CGFloat = 158
375
         let descriptionWidth: CGFloat = 158
376
         if active {
376
         if active {
377
             headline.stringValue = "You're on Pro"
377
             headline.stringValue = "You're on Pro"
378
-            upgradeDescription.stringValue = "Manage billing, renewals, and plans in the App Store."
378
+            upgradeDescription.stringValue = "Manage billing, renewals, and plans in Premium."
379
             upgradeDescription.preferredMaxLayoutWidth = descriptionWidth
379
             upgradeDescription.preferredMaxLayoutWidth = descriptionWidth
380
             upgradeButton.title = "Manage Subscription"
380
             upgradeButton.title = "Manage Subscription"
381
         } else {
381
         } else {
@@ -2145,12 +2145,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
2145
         Task { @MainActor in
2145
         Task { @MainActor in
2146
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
2146
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
2147
             applyProSubscriptionToSidebar()
2147
             applyProSubscriptionToSidebar()
2148
-            guard SubscriptionStore.shared.isProActive else {
2149
-                presentPremiumPlansSheet()
2150
-                return
2151
-            }
2152
-            guard let url = URL(string: "https://apps.apple.com/account/subscriptions") else { return }
2153
-            NSWorkspace.shared.open(url)
2148
+            presentPremiumPlansSheet()
2154
         }
2149
         }
2155
     }
2150
     }
2156
 
2151