-
-
Notifications
You must be signed in to change notification settings - Fork 69
feat(player-profile-card): add 8-bit Player Profile Card component wi… #364
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
Conversation
…th customizable stats and health/mana bars
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughIntroduces a new 8-bit PlayerProfileCard component, adds a dedicated showcase page, integrates the card into the gaming blocks UI (rendered twice), and registers the component and its primitives in registry manifests. Includes documentation for the card and updates registry entries to reference related 8-bit UI primitives. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant Next.js Page as PlayerProfilePage
participant PlayerProfileCard
participant Bars as Health/Mana/XP Bars
User->>Next.js Page: Navigate to /blocks/player-profile
Next.js Page->>PlayerProfileCard: Render with props (name, avatar, stats, customStats)
PlayerProfileCard->>Bars: Compute percentages & render progress
Bars-->>PlayerProfileCard: Progress UI
PlayerProfileCard-->>Next.js Page: Composed card
Next.js Page-->>User: Showcase UI
note right of PlayerProfileCard: Toggles: showLevel/Health/Mana/XP
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related issues
Possibly related PRs
Poem
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
✨ Finishing Touches
🧪 Generate unit tests
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.
2 issues found across 7 files
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Ask questions if you need clarification on any suggestion
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
| command="pnpm dlx shadcn@latest add @8bitcn/player-profile-card" | ||
| copyCommand="pnpm dlx shadcn@latest add @8bitcn/player-profile-card" | ||
| /> | ||
| <OpenInV0Button name="8bit-player-profile-card" className="w-fit" /> |
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.
OpenInV0Button name points to /r/8bit-player-profile-card.json, which does not exist; use "player-profile-card" to match the available JSON.
Prompt for AI agents
Address the following comment on app/blocks/gaming/gaming.tsx at line 294:
<comment>OpenInV0Button name points to /r/8bit-player-profile-card.json, which does not exist; use "player-profile-card" to match the available JSON.</comment>
<file context>
@@ -279,6 +280,75 @@ export default function GamingBlocks() {
+ command="pnpm dlx shadcn@latest add @8bitcn/player-profile-card"
+ copyCommand="pnpm dlx shadcn@latest add @8bitcn/player-profile-card"
+ />
+ <OpenInV0Button name="8bit-player-profile-card" className="w-fit" />
+ </div>
+ </div>
</file context>
| <OpenInV0Button name="8bit-player-profile-card" className="w-fit" /> | |
| <OpenInV0Button name="player-profile-card" className="w-fit" /> |
| "type": "registry:component", | ||
| "title": "8-bit Player Profile Card", | ||
| "description": "A comprehensive player profile card component with stats, health/mana bars, and custom stats support.", | ||
| "registryDependencies": ["card", "avatar", "badge", "progress"], |
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.
registryDependencies omits health-bar and mana-bar even though their files are bundled here; include them for correct dependency metadata and consistency.
Prompt for AI agents
Address the following comment on registry.json at line 1496:
<comment>registryDependencies omits health-bar and mana-bar even though their files are bundled here; include them for correct dependency metadata and consistency.</comment>
<file context>
@@ -1487,6 +1487,55 @@
+ "type": "registry:component",
+ "title": "8-bit Player Profile Card",
+ "description": "A comprehensive player profile card component with stats, health/mana bars, and custom stats support.",
+ "registryDependencies": ["card", "avatar", "badge", "progress"],
+ "files": [
+ {
</file context>
…th customizable stats and health/mana bars
Summary by cubic
Adds an 8-bit Player Profile Card component with health, mana, and experience bars, plus optional custom stats. Includes docs, a demo page, and registry entries for easy install.
New Features
Migration
Summary by CodeRabbit
New Features
Documentation
Chores