Skip to content

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

Merged
merged 3 commits into from
May 22, 2025

Conversation

avivkeller
Copy link
Member

I'm moving this component into the ui-components library so it can be re-used by api-docs-tooling as part of the JSX generation.

@Copilot Copilot AI review requested due to automatic review settings May 20, 2025 14:18
@avivkeller avivkeller requested a review from a team as a code owner May 20, 2025 14:19
Copy link

vercel bot commented May 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview May 20, 2025 9:09pm

Copy link
Contributor

@Copilot Copilot AI left a 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-commenter
Copy link

codecov-commenter commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.06%. Comparing base (232e7f1) to head (8910b7e).
Report is 1 commits behind head on main.

✅ 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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented May 20, 2025

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟠 82 🔗
/en/about/previous-releases 🟢 100 🟢 100 🟢 100 🟠 83 🔗
/en/download 🟢 98 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

Copy link
Member

@AugustinMauroy AugustinMauroy left a 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

@AugustinMauroy AugustinMauroy added this pull request to the merge queue May 22, 2025
Merged via the queue into main with commit 8161d6d May 22, 2025
17 checks passed
@AugustinMauroy AugustinMauroy deleted the chore/article-layout-ui-components branch May 22, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants