-
Notifications
You must be signed in to change notification settings - Fork 51
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
resource page added with few free resource list issue #226 #231
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Caution Review failedThe pull request is closed. WalkthroughThe recent updates introduce an array of new components designed to enhance the presentation and accessibility of web development resources. Key additions include the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Header
participant Resources
participant ResourceSection
participant ResourceCard
User->>Header: Navigate to Resources
Header->>Resources: Route to Resources page
Resources->>ResourceSection: Load resource categories
ResourceSection->>ResourceCard: Generate cards for each resource
ResourceCard-->>Resources: Display resource details
Resources-->>User: Render completed resource page
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (9)
- src/components/Common/MainTitle.jsx (1 hunks)
- src/components/Header/Header.jsx (2 hunks)
- src/components/Layout/Layout.jsx (1 hunks)
- src/components/Resources/ResourceCard.jsx (1 hunks)
- src/components/Resources/ResourceSection.jsx (1 hunks)
- src/data/Resources.json (1 hunks)
- src/main.jsx (2 hunks)
- src/pages/Doc/index.jsx (2 hunks)
- src/pages/Resources.jsx (1 hunks)
Files skipped from review due to trivial changes (1)
- src/components/Layout/Layout.jsx
Additional context used
Biome
src/components/Resources/ResourceSection.jsx
[error] 8-8: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
src/pages/Doc/index.jsx
[error] 45-45: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
Additional comments not posted (17)
src/components/Common/MainTitle.jsx (1)
1-8
: LGTM!The
MainTitle
component is well-written and follows best practices for functional components.src/components/Resources/ResourceCard.jsx (1)
1-27
: LGTM!The
ResourceCard
component is well-written and follows best practices for functional components.src/main.jsx (3)
13-13
: Approved: Import statement for theResources
component.The import statement is correct and necessary for the new route.
30-32
: Approved: New route for theResources
component.The new route is correctly configured to use the
Resources
component.
34-36
: Approved: Path change for theContributors
component.The path change to lowercase is consistent with the routing structure.
src/pages/Resources.jsx (5)
1-1
: Approved: Import statement for theLayout
component.The import statement is correct and necessary for the
Resources
component.
2-2
: Approved: Import statement for theSpace
component fromantd
.The import statement is correct and necessary for the
Resources
component.
3-3
: Approved: Import statement for theMainTitle
component.The import statement is correct and necessary for the
Resources
component.
4-4
: Approved: Import statement for theResourceSection
component.The import statement is correct and necessary for the
Resources
component.
5-24
: Approved: Import statement for theresources
data and theResources
component implementation.The import statement is correct, and the component implementation is consistent and adheres to best practices.
src/pages/Doc/index.jsx (2)
6-6
: Approved: Import statement for theMainTitle
component.The import statement is correct and necessary for the
DocList
component.
41-46
: Approved: Usage ofMainTitle
component.The usage of the
MainTitle
component is correct and enhances the flexibility and reusability of the title rendering.Tools
Biome
[error] 45-45: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
src/components/Header/Header.jsx (2)
7-7
: Import statement for MdStore looks good.The import statement for
MdStore
is necessary for the new "Resources" navigation item.
40-42
: Navigation item changes look good.The navigation item for "Contributors" has been correctly replaced with "Resources," including updates to the name, link, and icon.
src/data/Resources.json (3)
2-62
: Learning resources section looks good.The entries are well-structured and provide valuable information. Ensure that all links and images are valid and appropriate.
64-124
: Tools and libraries section looks good.The entries are well-structured and provide valuable information. Ensure that all links and images are valid and appropriate.
126-186
: Career roadmaps section looks good.The entries are well-structured and provide valuable information. Ensure that all links and images are valid and appropriate.
{resources.map((resource, index) => ( | ||
<ResourceCard idx={index} resource={resource} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a key
property to the ResourceCard
component.
The ResourceCard
component is missing a key
property, which is necessary for React to efficiently update and manage the list of components.
- <ResourceCard idx={index} resource={resource} />
+ <ResourceCard key={index} idx={index} resource={resource} />
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
{resources.map((resource, index) => ( | |
<ResourceCard idx={index} resource={resource} /> | |
{resources.map((resource, index) => ( | |
<ResourceCard key={index} idx={index} resource={resource} /> |
Tools
Biome
[error] 8-8: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
@@ -37,12 +38,12 @@ const DocList = () => { | |||
return ( | |||
<Layout> | |||
<div className="container mx-auto p-4 min-h-screen"> | |||
<h1 className="text-3xl font-bold mb-20 mt-5 text-center">Documentation</h1> | |||
<MainTitle highlight={'Documentation'} /> | |||
<ul className='grid gap-5 mx-auto md:max-w-2xl'> | |||
{ | |||
docs.map(item => | |||
<Link to={item.title} className='capitalize group flex items-center justify-between bg-white/10 p-5 rounded-md'>{item.title.replace(/_/g, ' ')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a key property to the list items.
The list items are missing a key property, which can help React identify which item was moved.
- <Link to={item.title} className='capitalize group flex items-center justify-between bg-white/10 p-5 rounded-md'>{item.title.replace(/_/g, ' ')}
+ <Link key={item.title} to={item.title} className='capitalize group flex items-center justify-between bg-white/10 p-5 rounded-md'>{item.title.replace(/_/g, ' ')}
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
<Link to={item.title} className='capitalize group flex items-center justify-between bg-white/10 p-5 rounded-md'>{item.title.replace(/_/g, ' ')} | |
<Link key={item.title} to={item.title} className='capitalize group flex items-center justify-between bg-white/10 p-5 rounded-md'>{item.title.replace(/_/g, ' ')} |
Tools
Biome
[error] 45-45: Missing key property for this element in iterable.
The order of the items may change, and having a key can help React identify which item was moved.
Check the React documentation.(lint/correctness/useJsxKeyInIterable)
closes #226
Summary by CodeRabbit
Summary by CodeRabbit
New Features
MainTitle
component for dynamic title rendering.ResourceCard
component for displaying individual resource information.ResourceSection
component to organize resources in a grid layout.Resources
page showcasing various web development resources.Resources.json
for managing educational content.UI/UX Improvements
Documentation Updates
MainTitle
component.