Explorar o código

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 hai 3 semanas
pai
achega
1960deff34
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  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 375
         let descriptionWidth: CGFloat = 158
376 376
         if active {
377 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 379
             upgradeDescription.preferredMaxLayoutWidth = descriptionWidth
380 380
             upgradeButton.title = "Manage Subscription"
381 381
         } else {
@@ -2145,12 +2145,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
2145 2145
         Task { @MainActor in
2146 2146
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
2147 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