Просмотр исходного кода

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 2 месяцев назад
Родитель
Сommit
1960deff34
1 измененных файлов с 2 добавлено и 7 удалено
  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 {
         let descriptionWidth: CGFloat = 158
         let descriptionWidth: CGFloat = 158
         if active {
         if active {
             headline.stringValue = "You're on Pro"
             headline.stringValue = "You're on Pro"
-            upgradeDescription.stringValue = "Manage billing, renewals, and plans in the App Store."
+            upgradeDescription.stringValue = "Manage billing, renewals, and plans in Premium."
             upgradeDescription.preferredMaxLayoutWidth = descriptionWidth
             upgradeDescription.preferredMaxLayoutWidth = descriptionWidth
             upgradeButton.title = "Manage Subscription"
             upgradeButton.title = "Manage Subscription"
         } else {
         } else {
@@ -2145,12 +2145,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
         Task { @MainActor in
         Task { @MainActor in
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
             applyProSubscriptionToSidebar()
             applyProSubscriptionToSidebar()
-            guard SubscriptionStore.shared.isProActive else {
-                presentPremiumPlansSheet()
-                return
-            }
-            guard let url = URL(string: "https://apps.apple.com/account/subscriptions") else { return }
-            NSWorkspace.shared.open(url)
+            presentPremiumPlansSheet()
         }
         }
     }
     }