Skip to content

Conversation

@mrbadri
Copy link
Contributor

@mrbadri mrbadri commented Apr 2, 2025

Closes #292

Summary by CodeRabbit

  • New Features

    • Introduced a tabbed interface for browsing products organized under Trends, UIUX, 3D Model, and Graphic Design.
  • Style

    • Enhanced layout responsiveness including a fixed footer and improved navigation display.
    • Refined product cards with customizable avatars and optimized image handling for better visual performance.
  • Chores

    • Expanded allowed image sources to ensure smoother content delivery.

@pixel-dockploy
Copy link

pixel-dockploy bot commented Apr 2, 2025

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
client ✅ Done Preview URL 2025-04-02T22:34:29.340Z

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 2, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request implements several UI enhancements and layout adjustments for the landing and dashboard pages. It adds new product data arrays and introduces a tabbed interface to display product cards by category. Several components had their CSS classes updated (notably adding shrink-0 to flex containers) to achieve the desired styling. Minor formatting updates were made including the removal of an unused import and the addition of new properties to the ProductCard component. The Next.js image configuration was also updated to accommodate an additional image source.

Changes

Files Change Summary
apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx
apps/core/app/(landing)/_components/desktop-navbar/features-navbar.tsx
Added shrink-0 class to flex container divs; removed unused Shoppingbagicon import and added a comment for future removal of the mr-4 class.
apps/core/app/(landing)/layout.tsx Modified layout classes to change height behavior, adjusted the navbar login state, and fixed the footer at the bottom.
apps/core/app/(landing)/page.tsx Introduced a tabbed interface using TabProvider, TabList, TabTrigger, and TabContent to render product cards from category-specific mock data.
apps/core/app/(landing)/_constant/mock-product-list.ts Added new file exporting product arrays for digital, UI/UX, 3D design, and graphic design products.
apps/core/app/dashboard/layout.tsx Updated the SidebarProvider class from "flex h-full" to "flex min-h-full" to adjust height styling.
apps/core/app/dashboard/products/create/page.tsx Made a minor whitespace adjustment in a component comment.
apps/core/next.config.mjs Updated the images configuration to include "images.ui8.net" in the allowed domains.
packages/ui/src/components/molecules/prodoct-card.tsx Added className and avatar properties to the ProductCard props; replaced the <img> tag with Next.js <Image> component and updated styling with shrink-0.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant TP as TabProvider
    participant TT as TabTrigger
    participant TC as TabContent
    participant PC as ProductCard

    U->>TT: Clicks on a tab (e.g., "UIUX")
    TT->>TP: Notifies tab selection
    TP->>TC: Renders content for selected tab
    TC->>PC: Displays product cards using mock data
Loading

Assessment against linked issues

Objective Addressed Explanation
Enhance landing (#292)

Possibly related PRs

Poem

I'm a rabbit in the code field, hopping free,
Tweaking classes with shrink-0 as my key.
Tabs now showcase products bright,
Layouts fixed, everything's just right.
With each commit, I dance in glee—
Code and carrots, a perfect spree!
🐇🌟


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b7f960c and 79817d0.

⛔ Files ignored due to path filters (3)
  • apps/core/public/favicon.ico is excluded by !**/*.ico
  • bun.lock is excluded by !**/*.lock
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (9)
  • apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx (1 hunks)
  • apps/core/app/(landing)/_components/desktop-navbar/features-navbar.tsx (1 hunks)
  • apps/core/app/(landing)/_constant/mock-product-list.ts (1 hunks)
  • apps/core/app/(landing)/layout.tsx (2 hunks)
  • apps/core/app/(landing)/page.tsx (3 hunks)
  • apps/core/app/dashboard/layout.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/page.tsx (1 hunks)
  • apps/core/next.config.mjs (1 hunks)
  • packages/ui/src/components/molecules/prodoct-card.tsx (4 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@mrbadri mrbadri merged commit cc9dff5 into main Apr 2, 2025
1 of 2 checks passed
@mrbadri mrbadri deleted the feat/#292-enhance-landing branch April 2, 2025 22:27
@mrbadri
Copy link
Contributor Author

mrbadri commented Apr 2, 2025

This pull request is related to issue #292

Closes #292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhance landing

2 participants