Przeglądaj źródła

Premium footer: show Continue with free plan and dismiss to home

Renames the non-pro primary footer action from "Try Pro" to
"Continue with free plan" and, when tapped, ends the paywall sheet so
the user returns to the dashboard instead of remaining on the paywall.

Co-authored-by: Cursor <cursoragent@cursor.com>
AhtashamShahzad1 2 miesięcy temu
rodzic
commit
3e6f4348bb

+ 4 - 3
App for Indeed/Controllers/PremiumPlansWindowController.swift

@@ -578,11 +578,11 @@ private final class PremiumPlansViewController: NSViewController {
 
     private enum PrimaryFooterSubscriptionTitle {
         static let manage = "Manage Subscription"
-        static let tryPro = "Try Pro"
+        static let continueFree = "Continue with free plan"
     }
 
     private func subscriptionPrimaryFooterTitle() -> String {
-        subscriptionStore.isProActive ? PrimaryFooterSubscriptionTitle.manage : PrimaryFooterSubscriptionTitle.tryPro
+        subscriptionStore.isProActive ? PrimaryFooterSubscriptionTitle.manage : PrimaryFooterSubscriptionTitle.continueFree
     }
 
     private func updateSubscriptionPrimaryFooter() {
@@ -645,7 +645,8 @@ private final class PremiumPlansViewController: NSViewController {
                 NSWorkspace.shared.open(url)
                 return
             }
-            // "Try Pro" while this paywall is visible: stay on the paywall (do not dismiss the sheet).
+            // Non-pro: dismiss paywall and return to the home (dashboard) window.
+            dismissPremiumSheetFromParentIfNeeded()
         }
     }