Skip to content

Release/1.2.2#245

Open
bradmering wants to merge 23 commits into
mainfrom
release/1.2.2
Open

Release/1.2.2#245
bradmering wants to merge 23 commits into
mainfrom
release/1.2.2

Conversation

@bradmering
Copy link
Copy Markdown
Contributor

@bradmering bradmering commented Apr 10, 2026

Changes

  • Resolved no-else-return, no-unused-vars, camelcase, prefer-const,
    eqeqeq, no-nested-ternary, no-lonely-if, and no-use-before-define
    across static pages (catch-all docs, assets, foundations, home, system, and
    design-token foundation pages).
  • Removed or refactored unused getStaticProps context parameters, props, and
    locals; normalized naming (e.g. font machine keys); simplified icon detail
    routing query handling.
  • Reordered helper components (token color/effect/typography tables, component
    token previews) ahead of page components where required for declaration order.
  • Converted getComponentPreviews to a hoisted function declaration and
    refactored the component token table for clearer control flow.

We were seeing problems with people using stricter es-lints than we were, causing the build to fail. These changes seem simple enough and reduce the risk of that, when running handoff in a project with other code.

@bradmering bradmering requested a review from DomagojGojak April 10, 2026 01:02
DomagojGojak
DomagojGojak previously approved these changes Apr 10, 2026
@DomagojGojak DomagojGojak changed the title Proposed 1.2.2 Release/1.2.0 May 17, 2026
@DomagojGojak DomagojGojak changed the title Release/1.2.0 Release/1.2.2 May 17, 2026
@DomagojGojak
Copy link
Copy Markdown
Collaborator

Changes

  • Added watchPatternDirectories — detects newly created pattern subdirectories at runtime, mirroring the existing component directory watcher with a corrected rebuild sequence (previews-only for referenced components, then targeted buildPatterns)
  • Refactored watchComponentDirectories into a shared watchEntityDirectories factory, eliminating duplicated scaffolding that would otherwise be required to handle both components and patterns
  • Fixed .handoff.ts files not being detected by the config-file gate (affected both components and patterns)
  • Extended the build cache key in getComponentFilePaths to include pattern config files that reference a component, preventing stale cache hits when a pattern is added between sessions
  • Graceful handling of empty/incomplete pattern config files during dev: downgraded from error to warn, skips the build attempt, and automatically retries when the file is saved with valid content
  • Improved 404 handling for pattern pages — when a renamed pattern's stale URL is visited, the app now shows a properly styled 404 page inside the site layout instead of a bare red error text on a white screen. The 404 UI was extracted into a shared NotFound component, reused across both pattern and doc pages.

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.

2 participants