Преглед на файлове

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 месеца
родител
ревизия
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
         if active {
             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
             upgradeButton.title = "Manage Subscription"
         } else {
@@ -2145,12 +2145,7 @@ final class DashboardView: NSView, NSTextFieldDelegate {
         Task { @MainActor in
             await SubscriptionStore.shared.refreshEntitlements(deep: true)
             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()
         }
     }