Web: paywall UX for is_locked conversations/tasks/memories#5548
Web: paywall UX for is_locked conversations/tasks/memories#5548omi-discord-vector[bot] wants to merge 2 commits intomainfrom
Conversation
Greptile SummaryThis PR brings web feature-parity with the mobile app for Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant U as User
participant Card as Card (Conv/Memory/Task)
participant LO as LockedOverlay
participant Router as Next.js Router
participant SP as SettingsPage
participant UP as UpgradePanel
U->>Card: Interact (click / action button)
Card->>Card: Check is_locked
alt is_locked = true
Card->>LO: Render LockedOverlay (absolute inset-0, z-10)
U->>LO: Click "Upgrade to unlimited" button
LO->>LO: e.stopPropagation()
LO->>Router: push('/settings?section=account&upgrade=1')
Router->>SP: Mount with section=account & upgrade=1
SP->>SP: useSearchParams → shouldOpenUpgrade=true
SP->>UP: useEffect → setShowUpgradeOptions(true)
UP-->>U: Upgrade plan panel auto-opened
else is_locked = false
Card->>Card: Execute normal action
end
|
|
@greptile-apps review |
|
@krushnarout can you pls test this PR once and lmk if it works? thanks |
Adds mobile-parity handling for
is_lockedon web.?upgrade=1auto-opens the plan upgrade options