소스 검색

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 달 전
부모
커밋
3e6f4348bb
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      App for Indeed/Controllers/PremiumPlansWindowController.swift

+ 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()
         }
     }