Repository navigation
Revamps docs landing page and component overview - #335
Merged
Merged
Conversation
The site's `/` becomes a landing page: a hero with a live "Request compute resources" card of form-associated fields, an upgrade strip to the migration guide, four proof pillars with inline brand colours, a snippet in the reader's flavor and an overview of the components by group. The component grid moves to /components, linked from an Overview item in the side navigation. The page has a `landing` layout (the toolbar, full width, the side navigation as a drawer at every width); the toolbar, side navigation and footer move out of app.vue into components the docs layout shares. The site self-hosts Noto Sans and gains a favicon, a description and Open Graph tags with a generated og-image.png. A spec covers the hero card and the group map, and the viewport smoke runs axe on `/` in both theme modes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`pnpm previews` screenshots each component's example on the generated site in both theme modes, with pickers and openable fields open, and each card on /components shows the picture for the current mode. A spec fails when a standalone component has no pictures or a picture names an unknown tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/components has a section per component group, the side navigation lists the components under their group's title, and each group card on the landing page links to its section. Components are listed alphabetically within a group, which the landing spec checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`pnpm test:previews` (component-previews.mjs --check) re-renders every component preview from the generated site after the viewport smoke and compares it with the committed picture through pixelmatch: a picture fails when any 16px square has more than 5% of its pixels differing (OKLab threshold 0.05, anti-aliased pixels skipped), so a small component's one-step token change (23-100% of a square) fails while repeat renders (0%) pass. CI uploads the fresh pictures on failure. A plain `pnpm previews` now rewrites only the pictures that no longer match. The page clock is reset per component, so the time picker no longer shows whatever minute the run had reached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for csc-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
mikakoskinencsc
approved these changes
Nov 26, 2026
…hine The first CI run of `pnpm test:previews` failed 64 of 102 pictures, by up to 57% of a square, on glyph edges alone: the pinned fonts.conf includes the system's fontconfig, which turns on subpixel (LCD) text on Ubuntu and not on Debian, so CI's text had coloured edges. The script now launches Chromium with --disable-lcd-text. With fontconfig forced to subpixel text locally the pictures matched CI's within 3% of a square, and with the flag both that run and a plain one match 102/102, no picture re-taken; the tolerance is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change introduces a comprehensive landing page at the root (
/) of the documentation site, replacing the previous bare component grid. The component overview is moved to/componentsand significantly enhanced with visual previews and logical grouping. The site's navigation is also updated to reflect these component groups, and overall site branding and SEO are improved.Changes Made
/): A dedicated page to pitch the CSC Design System, featuring an interactive demo card, key benefits, and a "Getting Started" snippet./components): The component listing is now organized by logical groups and includes live visual previews for each standalone component, supporting both light and dark modes.CSC Design System,CSC UI,Component group, andComponent previewinCONTEXT.md.AppToolbar,AppSideNavigation, andAppFooterinto reusable components and introducesdefaultandlandinglayouts to structure the site.Why These Changes?
The previous documentation landing page offered minimal context, making it challenging for new users to understand the value proposition of the CSC Design System. This revamp aims to provide an engaging and informative entry point, guiding users to relevant sections, while also improving the usability and aesthetics of the component catalog itself. The automated previews and CI checks ensure the visual documentation remains accurate and up-to-date with component changes.
Checks
Relates to docs-landing-page