| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sorry, something went wrong.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 0cfcd843-9115-4d0c-aa21-cbbe436b46ad 📥 CommitsReviewing files that changed from the base of the PR and between a985ae8 and 9929693. 📒 Files selected for processing (1)
📝 Walkthrough Summary by CodeRabbit
WalkthroughThe package docs page template is restructured to centre content consistently. Loading and empty-state sections now render within a container mx-auto centred layout with vertical padding. Rendered documentation is nested inside a .docs-content element, and the outer wrapper carries padding classes instead. ChangesPackage docs page layout
✏️ 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. ❤️ ShareComment @coderabbitai help to get the list of available commands and usage tips. |
Sorry, something went wrong.
|
Hello! Thank you for opening your first PR to npmx, @houtan-rocky! 🚀 Here’s what will happen next:
|
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)app/pages/package-docs/[...path].vue (1)17-30: 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win
Guard against undefined segments to ensure type safety.
route.params.path?.filter(Boolean) returns undefined (not an empty array) when path is undefined. Lines 18–29 then call methods such as indexOf, slice, and join on segments without a null check, which will throw a TypeError at runtime.
The coding guidelines require strictly type-safe code. Add a fallback to ensure segments is always an array.
🛡️ Proposed fix to initialise segments safely🤖 Prompt for AI Agents- const segments = route.params.path?.filter(Boolean) + const segments = route.params.path?.filter(Boolean) ?? [] const vIndex = segments.indexOf('v')Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@app/pages/package-docs/`[...path].vue around lines 17 - 30, The code assumes route.params.path exists; initialize segments with a safe fallback so it's always an array (e.g., const segments = (route.params.path ?? []).filter(Boolean)), then proceed using vIndex (segments.indexOf('v')) and subsequent segments.slice(...).join(...) calls; ensure segments is never undefined before calling indexOf, slice, or join to preserve type safety for the packageName/version extraction logic.Source: Coding guidelines
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 `@app/pages/package-docs/`[...path].vue:
- Around line 235-237: The content branch currently uses a full-width wrapper
div (the v-else block containing the element with class "p-6 sm:p-8 lg:p-12"
that renders docsData?.html inside the "docs-content" div), causing misalignment
with the loading and empty states; update that outer wrapper to use the same
container classes as the other states (e.g., add "container mx-auto py-6 sm:py-8
lg:py-12" in place of or alongside the existing padding classes) so the loaded
docs are centered and match the loading/empty layouts.
---
Outside diff comments:
In `@app/pages/package-docs/`[...path].vue:
- Around line 17-30: The code assumes route.params.path exists; initialize
segments with a safe fallback so it's always an array (e.g., const segments =
(route.params.path ?? []).filter(Boolean)), then proceed using vIndex
(segments.indexOf('v')) and subsequent segments.slice(...).join(...) calls;
ensure segments is never undefined before calling indexOf, slice, or join to
preserve type safety for the packageName/version extraction logic.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 66cd7f8e-3f7f-477d-b3bf-8e4a337743a1
📥 CommitsReviewing files that changed from the base of the PR and between 1c48d0c and a985ae8.
📒 Files selected for processing (1)
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you for your first contribution!
Everything looks good to me 🎉
Sorry, something went wrong.
Co-authored-by: Aakansha Doshi <Aakansha1216@gmail.com>
|
Thanks for your first contribution, @houtan-rocky! 🎉 We'd love to welcome you to the npmx community. Come and say hi on Discord! And once you've joined, visit npmx.wamellow.com to claim the contributor role. |
Sorry, something went wrong.
Co-authored-by: Felix Schneider <99918022+trueberryless@users.noreply.github.com> Co-authored-by: Aakansha Doshi <Aakansha1216@gmail.com>
Co-authored-by: Felix Schneider <99918022+trueberryless@users.noreply.github.com> Co-authored-by: Aakansha Doshi <Aakansha1216@gmail.com>
| Back | FazBrowse Home | New Git URL |
🔗 Linked issue
Closes #2894
See also #2895
🧭 Context
The docs page content area wasn't aligned with the rest of the page layout
loading skeletons and empty state stretched full-width inconsistently.
PR #2895 addressed this by centering the empty state, but @trueberryless
suggested aligning with the container width instead, and also fixing the
skeleton offset.
📚 Description
This aligns all three states (loading, empty, content) consistently with
the container width used across the rest of the page.
Screenshots
before:
laptop:

iphone-14-promax:

after
laptop:

iphone-14-promax:
