Open Ankur1493 opened 6 days ago
The changes in this pull request introduce a new JSON configuration file (components.json
) that outlines various settings for a React application, including support for TypeScript and Tailwind CSS. Additionally, a new SQL migration file is added to create a Tool
table in the database, along with corresponding Prisma schema updates. Multiple new React components are implemented for displaying tools, loading states, and pagination, enhancing the user interface. The changes also introduce new utility functions and interfaces for managing tool data, ensuring a structured approach to tool-related functionalities.
File Path | Change Summary |
---|---|
components.json |
New configuration file added defining schema, styles, RSC, TSX support, Tailwind config, and aliases. |
prisma/migrations/20241119120057_tool_temp_added/migration.sql |
New SQL migration creating Tool table with various columns and indexes. |
prisma/schema.prisma |
New Tool model added with fields and indexes for database operations. |
src/app/api/tools/route.ts |
New async GET function for retrieving a paginated list of tools. |
src/app/tools/[slug]/loading.tsx |
New Loading component for displaying loading state. |
src/app/tools/[slug]/page.tsx |
New component for displaying tool details based on a slug. |
src/app/tools/loading.tsx |
New full-screen loading spinner component. |
src/app/tools/page.tsx |
New tools page component with pagination support. |
src/components/tools/ToolCard.tsx |
New ToolCard component for displaying individual tool information. |
src/components/tools/ToolSkeleton.tsx |
New ToolSkeleton component for loading placeholders. |
src/components/tools/ToolsPage.tsx |
New ToolsPage component for displaying a list of tools with pagination. |
src/components/tools/ToolsPagination.tsx |
New ToolsPagination component for handling pagination. |
src/components/tools/toolDetails/ToolDetailsPage.tsx |
New ToolDetailsPage component for displaying detailed tool information. |
src/components/ui/pagination.tsx |
New pagination components for navigation through paginated content. |
src/lib/tools.ts |
New getToolDetails function for fetching tool details based on slug. |
src/lib/types.ts |
New ToolCardInterface and ToolDetailsInterface defining the structure for tool cards and details. |
src/app/api/tools/similar/route.ts |
New API endpoint for retrieving similar tools based on tags and categories. |
src/components/tools/toolDetails/SimilarTools.tsx |
New SimilarTools component for displaying tools similar to a specified tool. |
src/components/tools/toolDetails/ToolNotFound.tsx |
New ToolNotFound component for displaying a message when a tool is not found. |
sequenceDiagram
participant User
participant ToolsPage
participant API
participant Database
User->>ToolsPage: Request tools
ToolsPage->>API: GET /api/tools?page=1
API->>Database: Query tools with pagination
Database-->>API: Return tools data
API-->>ToolsPage: Return tools and total pages
ToolsPage-->>User: Display tools
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?
@Ankur1493 is attempting to deploy a commit to the Ankur 's projects Team on Vercel.
A member of the Team first needs to authorize it.
@tyaga001 review needed!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
devtoolsacademy | ❌ Failed (Inspect) | Nov 25, 2024 5:09pm |
Features Added
-- Tools card added -- loading skeletons added -- Added a tool details page, needs improvement and need to add more details to db -- Added pagination
Demo
Screencast from 22-11-24 09:01:08 PM IST.webm
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Documentation