-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] discover v2 #1045
[Feat] discover v2 #1045
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Caution Review failedThe pull request is closed. WalkthroughThis PR introduces several new React components and corresponding TypeScript interfaces to display issues, projects, and tailored discoveries. Components such as IssueCard, NewProjectCard, PageBanner, PageCarousel, and PageHeader were added, while DiscoverPage was refactored to utilize DiscoverPageV2. In addition, the PR expands the domain, query adapter, and API client adapters to support tailored discovery features. Changes also include updates to shared components like ListBanner and PageContainer, along with the addition of new mock methods for testing. Changes
Sequence Diagram(s)sequenceDiagram
participant PB as PageBanner
participant HRA as HackathonReactQueryAdapter
participant SK as Skeleton
participant ES as ErrorState
participant LB as ListBanner
participant LHC as LiveHackathonCard
PB->>HRA: Fetch hackathon data
alt Loading
HRA-->>PB: Loading state
PB->>SK: Render Skeleton
else Error
HRA-->>PB: Error response
PB->>ES: Render ErrorState
else No Data
HRA-->>PB: Empty data
PB->>LB: Render ListBanner
else Data Available
HRA-->>PB: Live hackathon data
PB->>LHC: Render LiveHackathonCard
end
sequenceDiagram
participant DP as DiscoverPageV2
participant Q as useGetTailoredDiscoveries
participant PC as PageCarousel
participant NPC as NewProjectCard
participant IC as IssueCard
participant PB as PageBanner
DP->>Q: Request tailored discoveries
Q-->>DP: Return discoveries (sections)
loop For each section
DP->>PC: Render carousel with section details
alt Projects available
PC->>NPC: Render NewProjectCard for each project
end
alt Issues available
PC->>IC: Render IssueCard for each issue
end
end
alt First section exists
DP->>PB: Render PageBanner
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (25)
✨ Finishing Touches
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:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Co-authored-by: Hayden Cleary <[email protected]>
Summary by CodeRabbit