Skip to content

Conversation

@mrbadri
Copy link
Contributor

@mrbadri mrbadri commented Jul 17, 2025

Description

  • Added Prettier configuration to package.json for consistent code formatting.
  • Updated pnpm-lock.yaml to reflect new package versions.
  • Integrated bundle analyzer in the Next.js configuration for better performance insights.
  • Refactored pre-commit hook to use lint-staged for improved code quality checks.
  • Introduced new UI components across various landing page sections for enhanced user experience.
  • Removed unused Storybook files and configurations to streamline the project.
  • Added ReactScan component to enhance client-side scanning functionality.
  • Updated package.json to include new dependencies: react-scan, input-otp, and lucide-react.
  • Removed unused NochNavbar component to streamline the codebase.
  • Adjusted pnpm-lock.yaml to reflect updated package versions and new dependencies.
  • Added support for multiple file uploads in the ImagesTab component.
  • Updated the thumbnail image upload section with a new endpoint for file uploads.

Changes

Checks

  • Storybook updated
  • Build succeeds
  • Standards followed

Summary by CodeRabbit

  • New Features

    • Added bundle analysis capability to the build process, including a new analyze script and integration with Next.js.
    • Introduced a development-only ReactScan component for enhanced development tooling.
    • Added lint-staged for improved pre-commit linting and formatting.
  • Chores

    • Updated and reorganized npm scripts and dependencies for improved development workflow.
    • Refined pre-commit and pre-push git hooks to focus on linting and build steps.
  • Refactor

    • Updated import paths across the app for more granular and maintainable UI component structure.
    • Improved code formatting and JSX readability throughout various components.
  • Bug Fixes

    • Corrected import path typos for certain components.
  • Revert

    • Removed the entire Storybook app, including configuration, stories, and related dependencies.
    • Deleted the NochNavbar navigation component.
    • Simplified the foundation page to a minimal test output.

mrbadri added 4 commits July 17, 2025 12:18
…w endpoint

- Added support for multiple file uploads in the ImagesTab component.
- Updated the thumbnail image upload section with a new endpoint for file uploads.
- Added ReactScan component to enhance client-side scanning functionality.
- Updated package.json to include new dependencies: react-scan, input-otp, and lucide-react.
- Removed unused NochNavbar component to streamline the codebase.
- Adjusted pnpm-lock.yaml to reflect updated package versions and new dependencies.
- Added Prettier configuration to package.json for consistent code formatting.
- Updated pnpm-lock.yaml to reflect new package versions.
- Integrated bundle analyzer in the Next.js configuration for better performance insights.
- Refactored pre-commit hook to use lint-staged for improved code quality checks.
- Introduced new UI components across various landing page sections for enhanced user experience.
- Removed unused Storybook files and configurations to streamline the project.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This change removes the Storybook app and its configuration, deletes related files and dependencies, and updates import paths throughout the core app to use more granular atom/molecule UI component paths. It introduces a new ReactScan development tool, integrates Next.js bundle analysis, and revises pre-commit and pre-push scripts to use lint-staged and pnpm, respectively.

Changes

File(s) Change Summary
apps/storybook/** (all files) Entire Storybook app and all related config, scripts, data, and stories deleted.
apps/core/app/(landing)/, apps/core/app/auth/, apps/core/app/dashboard/**, ... Refactored all UI component imports from general @repo/ui/components to specific atom/molecule sub-paths.
apps/core/app/_components/react-scan.tsx Added new exported ReactScan component for dev-only dynamic import of react-scan.
apps/core/app/layout.tsx Imported and rendered ReactScan in layout; updated Toaster import path.
apps/core/next.config.mjs Integrated @next/bundle-analyzer for conditional bundle analysis export.
apps/core/package.json Added analyze script, new UI dependencies, and devDeps for bundle analyzer and react-scan.
.husky/pre-commit Changed from bun run build to pnpm lint-staged for pre-commit linting.
.husky/pre-push Changed from bun run build to pnpm build; removed commented-out rebase line.
package.json Added lint-staged config, new scripts for rebase:dev and analyze:core, and lint-staged as a dev dependency.
apps/core/app/foundation/page.tsx Replaced complex Page component with a minimal Typography "Test" component.
apps/core/components/layouts/navbar/NochNavbar.tsx Deleted NochNavbar component and its export.

Sequence Diagram(s)

sequenceDiagram
    participant Dev as Developer
    participant Git as Git Hooks
    participant Lint as lint-staged
    participant Build as pnpm build

    Dev->>Git: git commit
    Git->>Lint: pnpm lint-staged
    Note right of Lint: Lints & formats staged files

    Dev->>Git: git push
    Git->>Build: pnpm build
    Note right of Build: Builds project before push
Loading
sequenceDiagram
    participant App as App in Dev Mode
    participant ReactScan as ReactScan Component
    participant ScanModule as react-scan

    App->>ReactScan: Mounts ReactScan
    ReactScan->>ScanModule: Dynamically import if NODE_ENV=development
    ScanModule-->>ReactScan: scan({ enabled: true })
Loading

Possibly related PRs

  • pixel-genius/pixel-client#161: Refactors the UI package to adopt an atom structure and reorganizes component exports, directly related to this PR's import path changes.
  • pixel-genius/pixel-client#218: Modifies imports and usage of useCartStore in addtoCard.tsx, related as both PRs affect the same file and its imports.
  • pixel-genius/pixel-client#162: Introduces a new Typography component and updates usage, related since this PR updates import paths for Typography.

Poem

A bunny hopped through fields of code,
Tidying imports, lightening the load.
Storybook’s tales now softly fade,
While atom paths are neatly laid.
With linting swift and bundles scanned,
The garden’s clean, just as planned!
🐇✨


📜 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 a44baa6 and 8afb63f.

⛔ Files ignored due to path filters (8)
  • apps/storybook/public/fonts/CalSans-SemiBold.ttf is excluded by !**/*.ttf
  • apps/storybook/public/fonts/CalSans-SemiBold.woff is excluded by !**/*.woff
  • apps/storybook/public/fonts/CalSans-SemiBold.woff2 is excluded by !**/*.woff2
  • apps/storybook/public/fonts/Inter-Bold.ttf is excluded by !**/*.ttf
  • apps/storybook/public/fonts/Inter-Regular.ttf is excluded by !**/*.ttf
  • apps/storybook/public/vite.svg is excluded by !**/*.svg
  • apps/storybook/src/assets/react.svg is excluded by !**/*.svg
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (107)
  • .husky/pre-commit (1 hunks)
  • .husky/pre-push (1 hunks)
  • apps/core/app/(landing)/_components/PurchaseCard.tsx (1 hunks)
  • apps/core/app/(landing)/_components/TextGenerateEffect.tsx (3 hunks)
  • apps/core/app/(landing)/_components/addtoCard.tsx (2 hunks)
  • apps/core/app/(landing)/_components/background-landing.tsx (1 hunks)
  • apps/core/app/(landing)/_components/browseMegaMenu/bottomPart/bottom-part-menu.tsx (1 hunks)
  • apps/core/app/(landing)/_components/browseMegaMenu/browse-mega-menu.tsx (1 hunks)
  • apps/core/app/(landing)/_components/browseMegaMenu/topPart/top-part-menu.tsx (1 hunks)
  • apps/core/app/(landing)/_components/card.tsx (1 hunks)
  • apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-authenticated.tsx (1 hunks)
  • apps/core/app/(landing)/_components/desktop-navbar/feature-navbar-guest.tsx (1 hunks)
  • apps/core/app/(landing)/_components/desktop-navbar/navbar-links.tsx (1 hunks)
  • apps/core/app/(landing)/_components/desktop-navbar/navbar.tsx (1 hunks)
  • apps/core/app/(landing)/_components/landing-tab-contents.tsx (1 hunks)
  • apps/core/app/(landing)/_components/landing-tabs.tsx (1 hunks)
  • apps/core/app/(landing)/_components/mobile-menu/hamburger-menu.tsx (8 hunks)
  • apps/core/app/(landing)/_components/mobile-menu/menu-navigation.tsx (4 hunks)
  • apps/core/app/(landing)/_components/shopping-bag-dropdown.tsx (3 hunks)
  • apps/core/app/(landing)/become-auther/_components/auther-form.tsx (1 hunks)
  • apps/core/app/(landing)/become-auther/_components/auther-result.tsx (2 hunks)
  • apps/core/app/(landing)/become-auther/page.tsx (2 hunks)
  • apps/core/app/(landing)/genius/[username]/page.tsx (4 hunks)
  • apps/core/app/(landing)/payment/_components/cart-item.tsx (5 hunks)
  • apps/core/app/(landing)/payment/_components/ordersummary.tsx (3 hunks)
  • apps/core/app/(landing)/payment/_components/payment-form.tsx (3 hunks)
  • apps/core/app/(landing)/payment/_components/paymentOption.tsx (2 hunks)
  • apps/core/app/(landing)/payment/_components/paymentSettings.tsx (7 hunks)
  • apps/core/app/(landing)/payment/page.tsx (7 hunks)
  • apps/core/app/(landing)/product/[id]/_components/comment-section.tsx (1 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-actions.tsx (3 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-footer.tsx (3 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-header.tsx (2 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-highlights.tsx (2 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-preview.tsx (2 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-summary.tsx (2 hunks)
  • apps/core/app/(landing)/product/[id]/_components/product-tags.tsx (2 hunks)
  • apps/core/app/(landing)/product/[id]/page.tsx (2 hunks)
  • apps/core/app/(landing)/product/_components/file-formate-field.tsx (3 hunks)
  • apps/core/app/(landing)/product/page.tsx (3 hunks)
  • apps/core/app/(landing)/purchases/page.tsx (3 hunks)
  • apps/core/app/_components/react-scan.tsx (1 hunks)
  • apps/core/app/auth/_components/auth-card.tsx (1 hunks)
  • apps/core/app/auth/forget-password/_components/form/forgetPasswordForm.tsx (1 hunks)
  • apps/core/app/auth/login/_components/form/loginForm.tsx (1 hunks)
  • apps/core/app/auth/set-password/page.tsx (1 hunks)
  • apps/core/app/auth/signup/otp/_components/signup-otp-form.tsx (1 hunks)
  • apps/core/app/auth/signup/page.tsx (1 hunks)
  • apps/core/app/dashboard/_compnents/add-wallet.tsx (6 hunks)
  • apps/core/app/dashboard/_compnents/app-sidebar.tsx (1 hunks)
  • apps/core/app/dashboard/_compnents/logo-icon-switcher.tsx (1 hunks)
  • apps/core/app/dashboard/_compnents/nav-main.tsx (1 hunks)
  • apps/core/app/dashboard/_compnents/navbar-dashboard.tsx (1 hunks)
  • apps/core/app/dashboard/_compnents/wallet-balance-card.tsx (4 hunks)
  • apps/core/app/dashboard/layout.tsx (1 hunks)
  • apps/core/app/dashboard/page.tsx (3 hunks)
  • apps/core/app/dashboard/products/create/_components/admin-chat/chat-guidelines.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/admin-chat/chat-header.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/admin-chat/chat-input.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/admin-chat/message-bubble.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/file-format-field-loading.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/file-format-field.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/file-format-section.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/files-tab.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/general-tab.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/highlight-section.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/images-tab.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/price-section.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/product-tab-content-layout.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/version-item.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/_components/version-modal.tsx (1 hunks)
  • apps/core/app/dashboard/products/create/page.tsx (1 hunks)
  • apps/core/app/dashboard/products/page.tsx (6 hunks)
  • apps/core/app/dashboard/profile/page.tsx (5 hunks)
  • apps/core/app/dashboard/sales/page.tsx (2 hunks)
  • apps/core/app/dashboard/setting/page.tsx (1 hunks)
  • apps/core/app/dashboard/transactions/page.tsx (3 hunks)
  • apps/core/app/foundation/page.tsx (1 hunks)
  • apps/core/app/layout.tsx (2 hunks)
  • apps/core/app/test/multiSelectComponents/page.tsx (1 hunks)
  • apps/core/app/test/page.tsx (3 hunks)
  • apps/core/components/layouts/navbar/NochNavbar.tsx (0 hunks)
  • apps/core/next.config.mjs (2 hunks)
  • apps/core/package.json (3 hunks)
  • apps/storybook/.eslintrc.js (0 hunks)
  • apps/storybook/.gitignore (0 hunks)
  • apps/storybook/.storybook/main.ts (0 hunks)
  • apps/storybook/.storybook/preview-head.html (0 hunks)
  • apps/storybook/.storybook/preview.tsx (0 hunks)
  • apps/storybook/.storybook/style.css (0 hunks)
  • apps/storybook/index.html (0 hunks)
  • apps/storybook/package.json (0 hunks)
  • apps/storybook/postcss.config.js (0 hunks)
  • apps/storybook/src/data/invoices.ts (0 hunks)
  • apps/storybook/src/data/payments.ts (0 hunks)
  • apps/storybook/src/stories/Attachment.stories.tsx (0 hunks)
  • apps/storybook/src/stories/Button.stories.tsx (0 hunks)
  • apps/storybook/src/stories/chip.stories.tsx (0 hunks)
  • apps/storybook/src/stories/multiSelect.stories.tsx (0 hunks)
  • apps/storybook/src/stories/select.stories.tsx (0 hunks)
  • apps/storybook/src/stories/tab.stories.tsx (0 hunks)
  • apps/storybook/src/stories/typography.stories.tsx (0 hunks)
  • apps/storybook/src/vite-env.d.ts (0 hunks)
  • apps/storybook/tailwind.config.ts (0 hunks)
  • apps/storybook/tsconfig.json (0 hunks)
  • apps/storybook/vite.config.ts (0 hunks)
  • package.json (2 hunks)
⛔ Files not processed due to max files limit (19)
  • packages/apis/package.json
  • packages/apis/src/services/core/shop/product-version/get/get-product-version-list.schema.ts
  • packages/apis/src/utils/request-handler.ts
  • packages/ui/package.json
  • packages/ui/src/components/atoms/alert-dialog.tsx
  • packages/ui/src/components/atoms/calendar.tsx
  • packages/ui/src/components/atoms/carousel.tsx
  • packages/ui/src/components/atoms/command.tsx
  • packages/ui/src/components/atoms/form.tsx
  • packages/ui/src/components/atoms/pagination.tsx
  • packages/ui/src/components/index.ts
  • packages/ui/src/components/molecules/attachment/attachment-tus/attachment-tus-item.tsx
  • packages/ui/src/components/molecules/attachment/attachment-tus/attachment-tus.tsx
  • packages/ui/src/components/molecules/attachment/attachmentAdmin/attachmentAdmin.tsx
  • packages/ui/src/components/molecules/attachment/attachmentLanding/attachmentLanding.tsx
  • packages/ui/src/components/molecules/attachment/attachmentThumbnail/attachmentThumbnail.tsx
  • packages/ui/src/components/molecules/sidebar.tsx
  • packages/ui/src/components/ui/tooltip.tsx
  • turbo.json
✨ 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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @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 945b54a into dev Jul 17, 2025
2 checks passed
@mrbadri mrbadri deleted the feature/performance branch July 17, 2025 22:43
@openzeppelin-code
Copy link

feat: enhance project structure and update dependencies

Generated at commit: 8afb63fd9d20a7075f18a7c1ee63466799f6e59d

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

@github-actions
Copy link

🧹 Preview Cleanup Complete

All preview deployment resources for this pull request have been successfully removed:

  • 🐳 Docker container client-preview-364 stopped and removed
  • 📦 Docker image mrbadri/pixel-client:pr-364 cleaned up
  • 📁 Docker compose file removed

The cleanup process has finished for PR #364.

@github-actions
Copy link

🚀 Preview Deployed Successfully!

Your pull request preview is now available:

This preview will be automatically cleaned up when the PR is closed.

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.

2 participants