Open tyaga001 opened 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
devtoolsacademy | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 13, 2024 3:36pm |
[!IMPORTANT]
Review skipped
Review was skipped due to path filters
:no_entry: Files ignored due to path filters (8)
* `public/tool-logos/cal.png` is excluded by `!**/*.png` * `public/tool-logos/clickhouse.png` is excluded by `!**/*.png` * `public/tool-logos/gitea.png` is excluded by `!**/*.png` * `public/tool-logos/joplin.png` is excluded by `!**/*.png` * `public/tool-logos/meilisearch.png` is excluded by `!**/*.png` * `public/tool-logos/pocketbase.png` is excluded by `!**/*.png` * `public/tool-logos/rocketchat.png` is excluded by `!**/*.png` * `public/tool-logos/sentry.png` is excluded by `!**/*.png`CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including
**/dist/**
will override the default block on thedist
directory, by removing the pattern from both the lists.You can disable this status message by setting the
reviews.review_status
tofalse
in the CodeRabbit configuration file.
The changes in this pull request encompass significant updates across various files, primarily focused on enhancing database operations, modifying API routes, and introducing new components. The package.json
file has been updated to streamline database scripts and adjust dependencies. Several SQL migration files have been deleted, which impacted the structure of the Post
, Comment
, and BlogUser
tables. New models and components, such as Tool
, Category
, and various UI elements, have been added to improve the application’s functionality and user experience.
File Path | Change Summary |
---|---|
package.json |
Updated scripts for database operations, added new scripts, and modified dependencies in dependencies and devDependencies . |
prisma/migrations/.../migration.sql |
Deleted SQL migration files affecting the Post , Comment , and BlogUser tables, which included definitions for table structures and foreign key constraints. |
prisma/schema.prisma |
Added new models: Tool and Category , and made formatting adjustments to existing model definitions. |
prisma/seed.ts |
Introduced a new seeding script for categories and tools using Prisma Client. |
prisma/seeds/blog.ts |
Introduced a new seeding script for blog posts using Prisma Client. |
scripts/download-logos.ts |
Introduced a script to download logos from specified URLs and save them locally. |
scripts/seed-blog.ts |
Introduced a script that calls the main function from the blog seeding script. |
src/app/api/comments/route.ts |
Made stylistic changes, including semicolon removals and simplified code for retrieving comments. |
src/app/api/cron/sync-tools/route.ts |
Introduced a new API route for synchronizing GitHub metrics with error handling. |
src/app/api/tools/route.ts |
Added a new API route for retrieving tools with query parameters and error handling. |
src/app/api/views/[slug]/route.ts |
Modified import statement for prisma from default to named import. |
src/app/layout.tsx |
Updated layout structure, metadata descriptions, and styling. |
src/app/providers.tsx |
Introduced a new Providers component for context management. |
src/app/tools/loading.tsx |
Introduced a new Loading component to display skeleton screens during loading states. |
src/app/tools/page.tsx |
Introduced a new ToolsPage component for displaying developer tools with asynchronous data fetching. |
src/components/Navbar.tsx |
Enhanced Navbar functionality and layout, introduced new navigation items. |
src/components/tools/ToolCard.tsx |
Introduced a new ToolCard component for displaying tool information. |
src/components/tools/ToolLogo.tsx |
Introduced a new ToolLogo component for displaying tool logos with fallback behavior. |
src/components/tools/ToolsGrid.tsx |
Introduced a new ToolsGrid component for rendering a grid of tools. |
src/components/ui/input.tsx |
Introduced a new Input component for styled input fields. |
src/components/ui/skeleton.tsx |
Introduced a new Skeleton component for loading placeholders. |
src/lib/api/github.ts |
Introduced a GitHubService class for interacting with the GitHub API and synchronizing metrics. |
src/lib/api/tools.ts |
Introduced functionality for managing and retrieving tools from a database using Prisma. |
src/lib/github.ts |
Introduced functionality for fetching GitHub repository data. |
src/lib/prisma.ts |
Modified the initialization and export of the prisma instance for improved management and logging capabilities. |
src/types/tool.ts |
Introduced new TypeScript interfaces and types related to tools and categories. |
prisma/migrations/20241108054148_init/migration.sql |
Introduced new migration script creating tables for Post , Comment , BlogUser , Tool , Category , and a join table _CategoryToTool with appropriate foreign key constraints and indexes. |
src/app/api/tools/[slug]/route.ts |
Added a new API route for retrieving tool details based on a slug parameter with error handling. |
src/app/tools/[slug]/error.tsx |
Introduced a new component for displaying error messages when a tool page fails to load. |
src/app/tools/[slug]/loading.tsx |
Introduced a new loading component that displays skeleton screens for loading states. |
src/app/tools/[slug]/not-found.tsx |
Introduced a new component to display a user-friendly message when a tool is not found. |
src/app/tools/[slug]/page.tsx |
Introduced a new component for displaying detailed information about a specific tool based on a slug parameter. |
sequenceDiagram
participant User
participant API
participant Database
User->>API: GET /api/tools
API->>Database: Fetch tools with parameters
Database-->>API: Return tools data
API-->>User: Return JSON response with 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?
Summary by CodeRabbit
New Features
ToolCard
,ToolLogo
, andToolsGrid
.Loading
for improved user experience during data fetching.Bug Fixes
Documentation
Chores