Skip to content

Conversation

@TheOrcDev
Copy link
Owner

@TheOrcDev TheOrcDev commented May 20, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a new 8-bit style toast notification component with a retro pixel-art design and dark mode support.
    • Added a live example and comprehensive documentation page for the 8-bit Toast component, including installation and usage instructions.
    • Included the 8-bit Toast component in the navigation and component registry for easier discovery.
  • Bug Fixes

    • None.
  • Chores

    • Updated imports to use local modules for toast functionality and notifications.

@vercel
Copy link

vercel bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
8bitcn-ui 🔄 Building (Inspect) Visit Preview 💬 Add feedback May 20, 2025 2:32pm

@coderabbitai
Copy link

coderabbitai bot commented May 20, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

A new 8-bit style toast notification component was introduced, along with related documentation, example usage, and navigation updates. The toast system replaces direct usage of the external "sonner" library with a custom wrapper and UI, and is now referenced in various parts of the app, including the registry and navigation. Supporting metadata and assets were also added.

Changes

File(s) Change Summary
components/ui/8bit/toast.tsx, public/r/8bit-toast.json Added a new 8-bit style toast notification component and a corresponding registry entry. The component uses a custom pixel-art border and wraps the "sonner" toast library.
components/examples/toast.tsx Added a ToastExample React component demonstrating usage of the new toast notification.
app/docs/components/toast/page.tsx Introduced a documentation page for the 8-bit Toast component, including metadata, installation instructions, usage examples, and a live demo.
app/docs/components/copy-command-button.tsx, app/layout.tsx Changed imports of the toast function and Toaster component from the external "sonner" library to the new local modules. No logic changes.
config/nav-items.ts Added a new navigation entry for the "Toast" component in the components section.
lib/metadata.ts Added export for toastMetaData referencing the toast component's image asset.
registry.json Registered the "8bit-toast" component in the registry with metadata, dependencies, and file path.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant ToastExample
  participant toast (8bit)
  participant Toast (UI)
  participant SonnerLibrary

  User->>ToastExample: Click "Show Toast" button
  ToastExample->>toast (8bit): Call toast("8bitcn is an awesome project!")
  toast (8bit)->>SonnerLibrary: Trigger custom toast with Toast component
  SonnerLibrary->>Toast (UI): Render Toast with message
  Toast (UI)-->>User: Display 8-bit styled toast notification
Loading

Poem

In pixel art and retro cheer,
A toast now pops up, crystal clear!
With borders bold and fonts so neat,
It brings the 8-bit world complete.
Click the button, watch it glow—
Hooray for toasts in old-school show!
🐰✨🕹️

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

app/docs/components/copy-command-button.tsx

Oops! Something went wrong! :(

ESLint: 9.26.0

ESLint couldn't find the plugin "eslint-plugin-react-hooks".

(The package "eslint-plugin-react-hooks" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-react-hooks@latest --save-dev

The plugin "eslint-plugin-react-hooks" was referenced from the config file in " » eslint-config-next/core-web-vitals » /node_modules/.pnpm/eslint-config-next@15.3.2_eslint@9.26.0_jiti@2.4.2__typescript@5.8.3/node_modules/eslint-config-next/index.js".

If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting.

app/layout.tsx

Oops! Something went wrong! :(

ESLint: 9.26.0

ESLint couldn't find the plugin "eslint-plugin-react-hooks".

(The package "eslint-plugin-react-hooks" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-react-hooks@latest --save-dev

The plugin "eslint-plugin-react-hooks" was referenced from the config file in " » eslint-config-next/core-web-vitals » /node_modules/.pnpm/eslint-config-next@15.3.2_eslint@9.26.0_jiti@2.4.2__typescript@5.8.3/node_modules/eslint-config-next/index.js".

If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting.

app/docs/components/toast/page.tsx

Oops! Something went wrong! :(

ESLint: 9.26.0

ESLint couldn't find the plugin "eslint-plugin-react-hooks".

(The package "eslint-plugin-react-hooks" was not found when loaded as a Node module from the directory "".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

npm install eslint-plugin-react-hooks@latest --save-dev

The plugin "eslint-plugin-react-hooks" was referenced from the config file in " » eslint-config-next/core-web-vitals » /node_modules/.pnpm/eslint-config-next@15.3.2_eslint@9.26.0_jiti@2.4.2__typescript@5.8.3/node_modules/eslint-config-next/index.js".

If you still can't figure out the problem, please see https://eslint.org/docs/latest/use/troubleshooting.

  • 4 others

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Note

⚡️ Faster reviews with caching

CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.
Enjoy the performance boost—your workflow just got faster.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 8b507f5 and 1f6de89.

⛔ Files ignored due to path filters (1)
  • public/assets/8bitcn-toast-light.png is excluded by !**/*.png
📒 Files selected for processing (9)
  • app/docs/components/copy-command-button.tsx (1 hunks)
  • app/docs/components/toast/page.tsx (1 hunks)
  • app/layout.tsx (1 hunks)
  • components/examples/toast.tsx (1 hunks)
  • components/ui/8bit/toast.tsx (1 hunks)
  • config/nav-items.ts (1 hunks)
  • lib/metadata.ts (1 hunks)
  • public/r/8bit-toast.json (1 hunks)
  • registry.json (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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

@TheOrcDev TheOrcDev merged commit c21b2b4 into main May 20, 2025
1 of 3 checks passed
@TheOrcDev TheOrcDev deleted the feat/toast branch May 20, 2025 14:33
Riley1101 pushed a commit to Riley1101/8bitcn-ui that referenced this pull request Jun 8, 2025
* feat(registry) add toast

* refactor(toast) change to 8-bit toast
TheOrcDev added a commit that referenced this pull request Jun 9, 2025
* added syntax highlight

* Feat/drawer (#195)

* setting up 8bit version of the drawer component, setting up the template for the drawer page and example from shadcn

* made drawer component for content, trigger, footer and header into 8bit pixel style

* added example of drawer component, metadata graph image and ran registry build

* fix issue with dark mode button border not yellow

* reran registry build

* rewrite content component to make use of vaul primitive drawer content and modify drawer handle

* reran registry build

* remove top side for drawer content

* reran registry build

* refactor: update drawer and sheet components styling and positioning

* feat(drawer) change example code

---------

Co-authored-by: OrcDev <urosmiric88@gmail.com>

* chore: add GitHub Sponsors funding configuration file (#197)

* docs: add GitHub sponsor badge to README (#198)

* refactor: update React.ElementRef to React.ComponentRef in UI components for better type safety (#199)

* Feat/toast (#200)

* feat(registry) add toast

* refactor(toast) change to 8-bit toast

* feat(installation-commands) replace sonner with 8-bit toast (#201)

* chore: latest dependencies (#202)

* Feat navigation menu (#203)

* feat: navigation menu

* feat: navigation menu
fix code rabbit ai comments

* feat: navigation menu
- create better, more consistent border behavior
- fix broken links in demo

* feat: navigation menu
fix code rabbit ai comments

* feat: navigation menu
- Address review comment

* feat: navigation menu
- update registry file

* feat(nav-items) add new tag to navigation menu (#204)

* Feat/themes (#205)

* feat(app) add themes page

* feat(themes) add all retro themes

* feat: add theme copy dialog and refactor theme management with TypeScript enums

* style: update calendar sizing, code snippet layout and theme selector text colors

* style: update theme selector UI and adjust accent color values across themes

* style: adjust accent and muted color values in dark and light themes

* feat(themes) add metadata (#206)

* chore: add semicolons and consistent formatting across components (#207)

* chore: latest dependencies (#208)

* feat(button) add local font for react support (#209)

* refactor: replace custom font with Google Fonts for Press Start 2P (#210)

* refactor: move retro font to external CSS and simplify button styling (#211)

* refactor(app) make all components work on react (#212)

* style: add type prefix to VariantProps imports across components (#213)

* refactor: remove new badges from nav items (#214)

* refactor: remove new badge from mobile navigation items (#215)

* fix: adjust YAxis width from 45 to 46 pixels in chart component (#216)

* feat(registry) add bar chart component (#217)

* feat: add authentication and charts blocks pages with example components (#218)

* added syntax highlight

* Removed unused code

* re added Max height control

---------

Co-authored-by: Elias Tran <trandinhphuc1997@gmail.com>
Co-authored-by: OrcDev <urosmiric88@gmail.com>
Co-authored-by: YangZhao <bit.zhaoyang512@gmail.com>
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