Repository navigation
Bugfix/make-brands-perfect - #183
Conversation
Will improove further later
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new Discover feature (panels, filters, placeholders, mock data) and credit tags; integrates pro/enterprise gating in drawer and headers; introduces profile-lock logic via BrandContext events; updates explore-influencers to support “connected” mode; revises collaboration actions and status filters; relocates Toast providers; minor header and screen tweaks; bumps submodules. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Discover as DiscoverInfluencersScreen
participant Right as RightPanelDiscover
participant List as DiscoverInfluencer
participant Bus as Subjects (OpenCurrentSelectedDatabase / DiscoverChannel)
User->>Discover: Open /discover (xl)
Discover->>Right: render(selectedDb, setSelectedDb)
Discover->>List: render(selectedDb)
Right-->>Right: User selects DB / opens filters
Right-->>Bus: OpenCurrentSelectedDatabase.next(db)
Note over Right,List: Filters may publish data (e.g., TrendlyAdvancedFilter)
Bus-->>List: DiscoverCommuninicationChannel {loading,data}
List-->>User: Render cards or placeholders
User->>List: Tap card/stat
List-->>User: Show InfluencerStatsModal
sequenceDiagram
autonumber
participant UI as ProfileBottomSheet / InfluencerCard
participant Brand as BrandContextProvider
participant FS as Firestore/API
participant Nav as Navigation
participant Toast as Toaster
UI->>Brand: ProfileModalUnlockRequest(influencerId, cb)
alt Has credits
Brand->>FS: Update unlockedInfluencers & credits
FS-->>Brand: OK / Error
Brand-->>UI: cb()
Toast-->>User: Success/Info
else No credits
Brand-->>UI: cb()
Toast-->>User: Error (exhausted)
end
UI->>Brand: ProfileModalSendMessage(influencerId, cb)
Brand->>FS: Create thread (if monetization)
FS-->>Brand: OK / Error
Brand->>Nav: Navigate /messages (on success)
Brand-->>UI: cb()
Toast-->>User: Success/Error
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60–75 minutes Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (38)
✨ 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. Comment |
Summary by CodeRabbit
New Features
Enhancements
Changes
Chores