-
-
Notifications
You must be signed in to change notification settings - Fork 174
docs(BPlaceholder): Parity pass #2886
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
|
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughThe PR updates the placeholder prop type and documentation: Changes
Sequence Diagram(s)Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 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 (2)
✅ Files skipped from review due to trivial changes (1)
🔇 Additional comments (2)
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.
Pull Request Overview
This PR brings the BPlaceholder component documentation up to parity with Bootstrap 5, updating migration guidance, component documentation, and API reference documentation.
Key Changes:
- Updated migration guide to document deprecated features and animation value changes
- Enhanced component documentation with improved descriptions and styling information
- Cleaned up
.data.tsfile by removing TODO comments for default values
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| apps/docs/src/docs/migration-guide.md | Added migration notes for deprecated BSkeletonImg, animation value changes, and deprecated type prop |
| apps/docs/src/docs/components/placeholder.md | Improved component description, converted NOTE to info block, and added styling/customization section |
| apps/docs/src/data/components/placeholder.data.ts | Removed TODO comments and corrected variant type from ColorVariant to BgColorVariant |
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: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
apps/docs/src/data/components/placeholder.data.ts(9 hunks)apps/docs/src/docs/components/placeholder.md(3 hunks)apps/docs/src/docs/migration-guide.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
apps/docs/src/data/components/*.data.ts
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
apps/docs/src/data/components/*.data.ts: When adding or modifying component props, events, or slots, ALWAYS update the corresponding .data.ts file in apps/docs/src/data/components/
Documentation format in .data.ts files must match TypeScript interfaces exactly (props, emits, slots definitions)
Files:
apps/docs/src/data/components/placeholder.data.ts
🧠 Learnings (1)
📚 Learning: 2025-10-21T19:31:54.084Z
Learnt from: dwgray
PR: bootstrap-vue-next/bootstrap-vue-next#2882
File: apps/docs/src/docs/components/demo/PlaceholderWidth.vue:1-22
Timestamp: 2025-10-21T19:31:54.084Z
Learning: In bootstrap-vue-next, props like `cols` are "numberish" types that automatically convert number-shaped strings to numbers, so both `cols="12"` and `:cols="12"` are valid and type-safe.
Applied to files:
apps/docs/src/data/components/placeholder.data.ts
🔇 Additional comments (4)
apps/docs/src/data/components/placeholder.data.ts (2)
35-36: LGTM! Improved type specificity.The type change from
ColorVariant | nulltoBgColorVariant | nullbetter reflects that placeholders primarily use background color variants, improving type safety and developer experience.
24-239: LGTM! Consistent formatting improvements.The formatting cleanup across default values improves code consistency without affecting functionality.
apps/docs/src/docs/components/placeholder.md (2)
5-6: LGTM! Improved documentation clarity.The rewording to "several component types" more accurately describes the breadth of placeholder functionality.
26-28: LGTM! Better information highlighting.Converting the inline note to a formatted info block improves visibility and follows markdown documentation best practices.
commit: |
* upstream/main: (28 commits) fix(BToggle)! Remove redundant attribute cleanup & update docs for accessibility attributes on show/hide components (bootstrap-vue-next#2918) chore: release main (bootstrap-vue-next#2912) fix: allow custom component props in orchestrator create methods with type safety (bootstrap-vue-next#2922) fix(BModal): prevent focus trap error when no tabbable elements exist (bootstrap-vue-next#2864) Update package description for clarity (bootstrap-vue-next#2917) Update project description for clarity and detail test: add event emission tests for BTable and BTableLite (bootstrap-vue-next#2915) fix(BTableLite): Use primary key to persist row-details state when items change (bootstrap-vue-next#2871) chore: release main (bootstrap-vue-next#2896) feat(BTable): add configurable debouncing ci: Add publint to the build process (bootstrap-vue-next#2909) docs(Offcanvas): Parity pass (bootstrap-vue-next#2900) fix(directives): Robustness fixes for directives (bootstrap-vue-next#2906) docs(BFormInput): document @wheel.prevent for disabling mousewheel events (bootstrap-vue-next#2903) fix(typings): Fix paths to `*.d.mts` files (bootstrap-vue-next#2907) feat: add name and form props to BFormRating for form submission (bootstrap-vue-next#2895) docs: refactor docs to avoid duplication and boilerplate code (bootstrap-vue-next#2891) docs(BToast): Parity (bootstrap-vue-next#2887) docs(BModal): fix attribute to hide footer (bootstrap-vue-next#2888) docs(BPlaceholder): Parity pass (bootstrap-vue-next#2886) ...
Describe the PR
Small replication
N/A
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)feat(...)fix(...)docs(...)The PR fulfills these requirements:
CHANGELOGis generated from these messages, and determines the next version type. Pull requests that do not follow conventional commits or do not have an override will be deniedSummary by CodeRabbit
Documentation
Migration
Chores