Skip to content

Conversation

@mrbadri
Copy link
Contributor

@mrbadri mrbadri commented Jul 11, 2025

Description

Changes

Checks

  • Storybook updated
  • Build succeeds
  • Standards followed

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 11, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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 and others added 4 commits July 11, 2025 06:30
…duct listing (#361)

* feat: implement api for product list and replace json

* feat: add landing page components and layout structure

- Introduced new layout components for the landing page, including BackgroundLanding and LandingPage.
- Created a new home layout with text generation effect and integrated it into the main structure.
- Updated Navbar and LandingTabs

---------

Co-authored-by: p.damavandi <[email protected]>
…mprove clipboard OTP UX (#362)

* chore: migrate project to pnpm and update dependencies

- Updated package manager from Yarn to pnpm in package.json and Dockerfile.
- Adjusted dependency specifications to use workspace:* for local packages.
- Removed yarn.lock and added pnpm-lock.yaml for dependency management.
- Updated Dockerfile to install pnpm globally and configure it for better network settings.
- Refactored middleware and cookie imports to align with new structure.
- Cleaned up unused code and comments in various components.

* refactor: update docker-compose configuration for core-client service

- Renamed core service to core-client for clarity.
- Added environment variables for base URL configurations.
- Removed commented-out network definitions to clean up the file.

* feat: add docker-compose configuration for core-client service

- Introduced a new docker-compose file for the core-client service.
- Configured build context and Dockerfile path.
- Set environment variables for base URL configurations.

* feat: add environment variables to Dockerfile for base URL configurations

- Introduced environment variables NEXT_PUBLIC_BASE_URL and NEXT_PUBLIC_BASE_URL_ATTACHMENT in the Dockerfile.
- Enhanced configuration for better integration with the core-client service.

* fix: update base URL in coreApi and guestApi to a hardcoded value

- Changed the base URL in coreApi and guestApi from the environment variable to a hardcoded URL for immediate testing.
- Added TODO comments to remind future updates to revert to using the environment variable.

* feat: enhance authentication components with clipboard OTP functionality

- Added a reusable `useClipboardOtp` hook for extracting OTP from the clipboard.
- Introduced `PasteOtpButton` component to facilitate pasting OTP directly into forms.
- Updated `SetPasswordPage`, `SignupOtpForm`, and other components to utilize the new clipboard functionality.
- Enhanced user experience by allowing OTP pasting and auto-submission.
- Refactored `PasswordInput` component for better integration with the new features.

* feat: add clipboard permission request functionality to useClipboardOtp hook

- Introduced a new `requestPermission` method to explicitly request clipboard access.
- Added `isRequestingPermission` state to track the permission request status.
- Updated `checkClipboard` method to utilize the new permission request logic.
- Enhanced the overall clipboard OTP functionality for better user experience.

* feat: implement clipboard permission listener in useClipboardOtp hook

- Added a useEffect to listen for changes in clipboard permission status.
- Automatically checks the clipboard when permission is granted.

* feat: add deploy action

* feat: add production docker-compose configuration for core-client service

- Introduced a new docker-compose.prod.yml file for deploying the core-client service.
- Configured service settings including build context, Dockerfile path, and environment variables for base URL configurations.

* refactor: update docker-compose configuration for client service

- Renamed core-client service to client for clarity.
- Updated image reference to use the latest version of the pixel-client.
- Adjusted service settings in docker-compose.prod.yml for improved deployment.

* chore: enhance Docker Hub deployment process in workflow

- Added a step to log in to Docker Hub before building and pushing the Docker image.
- Cleaned up the push command by removing redundant login steps from the push action.
- Improved overall clarity and efficiency of the deployment workflow.

* chore: clean up Docker deployment workflow

- Removed unnecessary blank lines in the deploy.yml file for improved readability.
- Ensured consistency in the Docker push command formatting.

* fix: update Docker deployment workflow to pull client service

- Changed the deployment command to pull the client service instead of the web service in the Docker Compose workflow.
- Ensured the deployment process aligns with the recent renaming of the core-client service.

* chore: remove commented-out Docker build and push steps from deployment workflow

- Eliminated unnecessary commented-out lines in the deploy.yml file to enhance clarity and maintainability of the workflow.
- Streamlined the deployment process by focusing on active commands.

* chore: add concurrency configuration to deployment workflow

- Introduced a concurrency group in the deploy.yml file to manage simultaneous workflow runs.
- Set the concurrency group to use the branch name, enhancing control over deployment processes.

* chore: update deployment workflow to use self-hosted runners

- Changed the runner configuration in deploy.yml to use self-hosted runners instead of the default group.
- Aimed to optimize deployment performance and resource management.

* chore: expose port for core service in production Docker Compose

- Added port mapping for the core service to expose port 3000 in docker-compose.prod.yml.
- This change allows external access to the service, facilitating communication with other services or clients.

* fix: update API base URLs from HTTPS to HTTP

- Changed the base URL for both coreApi and guestApi from "https://api.pixelgenius.ir" to "http://api.pixelgenius.ir".
- This adjustment ensures consistency in API endpoint usage across the application.

* refactor: simplify post-login schema transformation and update docker-compose configuration

- Modified the post-login schema transformation to return the original data without modifications.
- Updated the docker-compose.yml to rename the core-client service to client and changed the image reference to the latest version, enhancing clarity and consistency.

* feat: add development and preview Docker Compose configurations

- Introduced docker-compose.dev.yml for development environment with client-dev service.
- Added docker-compose.preview.yml for PR previews, allowing dynamic port assignment and image tagging.
- Updated deploy.yml to handle deployments for development and PR previews, enhancing CI/CD workflow.

* refactor: update PR comment actions in deployment workflow

- Replaced the GitHub script action with a sticky pull request comment action for posting deployment and cleanup messages.
- Enhanced the preview deployment comment to include a structured message with the preview URL and container details.
- Improved the cleanup confirmation comment to provide a clear summary of the resources removed after the PR is closed.

* chore: update permissions in deployment workflow

- Added permissions for reading contents and writing to pull requests and issues in deploy.yml.
- This change enhances the workflow's ability to interact with GitHub resources during deployment processes.
@openzeppelin-code
Copy link

openzeppelin-code bot commented Jul 11, 2025

@coderabbitai

Generated at commit: 42878854a313d8573285d83d0af213dc9c68fef4

🚨 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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 11, 2025

Skipped: Cannot respond to another bot.

1 similar comment
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 11, 2025

Skipped: Cannot respond to another bot.

@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.

@mrbadri mrbadri changed the title @coderabbitai feat: restructure landing page with new layout, tabs, and dynamic product listing and convert bun to pnpm Jul 11, 2025
@mrbadri mrbadri merged commit a3c54dc into main Jul 11, 2025
10 checks passed
@github-actions
Copy link

🧹 Preview Cleanup Complete

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

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

The cleanup process has finished for PR #363.

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