-
-
Notifications
You must be signed in to change notification settings - Fork 68
feat: Add Empty Component #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@wyMinLwin is attempting to deploy a commit to the 8bitcn Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughAdds a new 8‑bit Empty UI (presentational components), a docs/demo Next.js page with metadata and usage examples, a nav item for the component, and an exported image metadata constant. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Browser
participant DocsPage as /app/docs/components/empty/page
participant EmptyComp as components/ui/8bit/empty
rect rgba(100,149,237,0.08)
Browser->>DocsPage: GET /docs/components/empty
DocsPage->>EmptyComp: import components + metadata
DocsPage->>EmptyComp: render <Empty> with slots (Header, Media, Title, Description, Content)
EmptyComp-->>DocsPage: composed preview DOM
end
rect rgba(34,139,34,0.06)
DocsPage-->>Browser: deliver docs page with live preview, installation commands, and code snippets
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 6
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
public/assets/8bitcn-empty-dark.pngis excluded by!**/*.pngpublic/assets/8bitcn-empty-light.pngis excluded by!**/*.png
📒 Files selected for processing (4)
app/docs/components/empty/page.tsx(1 hunks)components/ui/8bit/empty.tsx(1 hunks)config/nav-items.ts(1 hunks)lib/metadata.ts(1 hunks)
🧰 Additional context used
🧬 Code graph analysis (2)
app/docs/components/empty/page.tsx (5)
lib/metadata.ts (1)
emptyMetaData(63-63)app/docs/components/copy-command-button.tsx (1)
CopyCommandButton(13-37)app/docs/components/open-in-v0-button.tsx (1)
OpenInV0Button(5-39)app/docs/components/installation-commands.tsx (1)
InstallationCommands(15-124)app/docs/components/code-snippet.tsx (1)
CodeSnippet(94-142)
components/ui/8bit/empty.tsx (1)
lib/utils.ts (1)
cn(4-6)
🔇 Additional comments (5)
lib/metadata.ts (1)
63-63: LGTM!The metadata export follows the established pattern and naming convention used by all other component metadata in this file.
app/docs/components/empty/page.tsx (2)
1-29: LGTM!The imports and metadata configuration are properly structured and follow the established pattern for component documentation pages.
31-119: Well-structured documentation page.The page component follows the established documentation pattern with a clear preview section, installation commands, and usage examples.
components/ui/8bit/empty.tsx (1)
119-126: LGTM!All components are properly exported and the export order is logical.
config/nav-items.ts (1)
82-86: LGTM!The navigation item addition follows the established pattern and is correctly configured with the
new: trueflag to highlight this as a new component. The placement in the array doesn't affect the final order since the components are sorted alphabetically on line 252.
|
Hey there! Thanks for this contribution! Sorry I don't know how I missed it. Please run Thank you! |
Empty Component
Added empty component for issue #418
Summary by CodeRabbit
New Features
Documentation
Chores