-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
chore(ui): move ArticleLayout
to ui-components
#7762
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
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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 moves the ArticleLayout component into the ui-components library so that it can be re-used by api-docs-tooling for JSX generation.
- Updated the ArticleLayout import and its corresponding CSS module file reference in ui-components.
- Removed duplicate ArticleLayout styling from the site layouts and updated several layouts to use the new Article component.
- Adjusted import paths in Learn.tsx, Default.tsx, ArticlePage.tsx, and About.tsx to reference the new shared component.
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
packages/ui-components/Containers/Article/index.tsx | Updated to import the new CSS module file (index.module.css). |
packages/ui-components/Containers/Article/index.module.css | Added new Article layout CSS using Tailwind utilities. |
apps/site/layouts/layouts.module.css | Removed duplicated ArticleLayout styling. |
apps/site/layouts/Learn.tsx | Updated to use the new Article component from ui-components. |
apps/site/layouts/Default.tsx | Updated to use the new Article component from ui-components. |
apps/site/layouts/ArticlePage.tsx | Updated to use the new Article component from ui-components. |
apps/site/layouts/About.tsx | Updated to use the new Article component from ui-components. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7762 +/- ##
==========================================
- Coverage 75.10% 75.06% -0.04%
==========================================
Files 98 98
Lines 7914 7914
Branches 196 196
==========================================
- Hits 5944 5941 -3
- Misses 1969 1972 +3
Partials 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Lighthouse Results
|
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.
LGTM but could you try to add a story for this component because we nearly have on for each part of ui package
I'm moving this component into the
ui-components
library so it can be re-used byapi-docs-tooling
as part of the JSX generation.