Repository navigation
Bugfix/make-brands-perfect - #169
Conversation
…ailable on mobile
|
Caution Review failedThe pull request is closed. WalkthroughAdds GrowthBook payWall flag integration across contexts and UI, introduces platform-aware paywall behavior, restructures modal navigation, implements responsive two-column layouts (xl) for explore and collaboration details, overhauls drawer/menu (including a web-specific variant), adds upgrade gating flows (free trial) to create-collaboration and preferences, and updates top-tab navigation to support href-driven tabs and split layouts. Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant PP as PricingPage
participant GB as GrowthBookProvider
participant R as Router
U->>PP: Open /pricing
PP->>GB: useMyGrowthBook() -> { loading, payWall }
Note over PP: useEffect([loading, payWall])
alt loading && !payWall
PP->>R: resetAndNavigate("/explore-influencers")
else loading && payWall
PP-->>U: Render PricingPage within GrowthBookProtected
end
sequenceDiagram
participant U as User
participant CC as CreateCollaboration
participant PR as PreferencesTab
participant CM as ConfirmationModal
participant R as Router
U->>CC: Save (status=active)
CC->>CC: Check isOnFreeTrial
alt Free trial + publish
CC->>CM: Open “Upgrade” modal
CM-->>U: Confirm?
alt Confirm
CM->>R: push("/billing")
CC->>CC: Downgrade to draft
else Cancel
CC-->>U: Stay on page
end
else Not on trial
CC-->>U: Proceed save
end
U->>PR: Update preference
PR->>PR: Check isOnFreeTrial
alt Free trial
PR->>CM: Open “Upgrade” modal
CM-->>U: Confirm?
alt Confirm
CM->>R: push("/billing")
else Cancel
PR-->>U: Abort update
end
else Not on trial
PR-->>U: Save preference
end
sequenceDiagram
participant U as User
participant TT as TopTabNavigation
participant R as Router
U->>TT: Tap tab
alt tab.component exists
TT->>TT: Set activeTab
TT-->>U: Render component
else tab.href exists
TT->>R: push(tab.href)
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (31)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit