docs: add design system guide#608
Conversation
|
|
Warning Review limit reached
More reviews will be available in 22 minutes and 12 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. WalkthroughAdds a full DESIGN.md design system spec, includes it as a packaged asset via ng-package.json, and configures Storybook to load and render the raw DESIGN.md (with a frontmatter-stripped MDX page and a collapsible full-source view). ChangesDesign System
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@DESIGN.md`:
- Around line 333-334: The example uses incorrect token names: replace the
abbreviated tokens used in the CSS example—background-color: var.use-rgb(n-10)
and border: 1px solid var.use-rgb(border)—with the defined token names
background-color: var.use-rgb(neutral-10) and border: 1px solid
var.use-rgb(border-default); update the occurrences of "n-10" -> "neutral-10"
and "border" -> "border-default" so the example references the existing tokens.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 24ee5204-52ed-404e-a920-471f3375f891
📒 Files selected for processing (2)
DESIGN.mdng-package.json
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.storybook/main.ts:
- Around line 25-29: The webpack rule push uses optional chaining
(config.module?.rules?.push) which can silently no-op if config.module or
config.module.rules is missing; update the .storybook/main.ts logic to
explicitly validate and/or initialize these structures before adding the rule:
check for config.module and if absent set config.module = { rules: [] } (or at
minimum set config.module.rules = config.module.rules || []), then call
config.module.rules.push(...) to add the /\.md$/ resourceQuery rule, or
alternatively throw a clear error mentioning missing
config.module/config.module.rules so the failure is explicit; reference the
config.module, config.module.rules and the push call when making the change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 5b819fd8-176d-423c-8932-6ebb7f2d251d
📒 Files selected for processing (3)
.storybook/main.ts.storybook/typings.d.tsstories/theme/design.mdx
✅ Files skipped from review due to trivial changes (1)
- .storybook/typings.d.ts
Summary
Verification
Summary by CodeRabbit