Skip to content

Add deep analysis of all 21 atom components - #1

Open
OscarGauss wants to merge 2 commits into
mainfrom
claude/analyze-test-coverage-hmpyk
Open

Add deep analysis of all 21 atom components#1
OscarGauss wants to merge 2 commits into
mainfrom
claude/analyze-test-coverage-hmpyk

Conversation

@OscarGauss

Copy link
Copy Markdown
Contributor

Identifies 4 critical bugs (DateLiteral padStart on numbers,
InputSelect stale state, DetectRequestAnimationFrame memory leak,
Button missing Space key), pervasive accessibility gaps (no focus
trap in Modal, no keyboard nav in Select/MultiSelect/InputToggle),
type safety issues, API inconsistencies, and performance concerns.

https://claude.ai/code/session_01E4AA7iepiyeX67Li1diwca

@OscarGauss
OscarGauss force-pushed the claude/analyze-test-coverage-hmpyk branch from c1705cc to f8af273 Compare April 25, 2026 20:05
claude added 2 commits April 25, 2026 21:50
Before this change, `import { Button } from '@juki-team/base-ui'`
forced webpack/Next.js to load the entire monolithic main.js including
CodeMirror, Milkdown, Excalidraw, KaTeX, Recharts, Handsontable, etc.
even on pages that don't use them.

Changes:
- Add "sideEffects": ["*.scss", "*.css"] to package.json so webpack
  can safely tree-shake unused JS modules
- Enable preserveModules: true in rollup ESM output so each source
  module becomes its own file instead of one concatenated main.js
- Remove manualChunks (incompatible with preserveModules)
- Update module field and all exports paths to match new dist/esm
  structure (e.g. dist/esm/index.js instead of dist/esm/main.js)

NOTE: Build must be verified in an environment with NPM_GITHUB_TOKEN
configured. The exports paths assume preserveModulesRoot: 'src' maps
src/index.ts -> dist/esm/index.js, src/helpers/index.ts ->
dist/esm/helpers/index.js, etc.

https://claude.ai/code/session_01E4AA7iepiyeX67Li1diwca
Rollup with preserveModules keeps the named entry files (main.js,
helpers.js, etc.) from the input config, so the original export paths
in package.json are correct as-is. Only sideEffects is the new field.

https://claude.ai/code/session_01E4AA7iepiyeX67Li1diwca
@OscarGauss
OscarGauss force-pushed the claude/analyze-test-coverage-hmpyk branch from f8af273 to d8c3d20 Compare April 25, 2026 21:55
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