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 3 tygodni temu
rodzic
commit
3e6f4348bb

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

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