refactor: Consolidate hooks to root folder, fix FakeMUI module resolution

- FakeMUI now imports hooks directly from root /hooks folder (not barrel export)
  - Avoids pulling in hooks with project-specific dependencies (@/lib/routing)
  - useAccessible, useToast, useMediaQuery, useDragResize all use direct imports
- Removed @metabuilder/hooks dependency from fakemui package.json
- Updated workflowui to use CSS globals instead of complex M3 SCSS
  - Created globals.css with precompiled M3 design tokens
  - Bypasses complex SCSS module dependencies (cdk)
- Fixed React types mismatch (upgraded @types/react to ^19.0.0)
- Cleaned up duplicate accessibility code in fakemui/src/utils/
- Removed CodeQL artifacts and build scripts
- Build succeeds with Next.js 16 webpack mode

Organization per user guidelines:
- SCSS stays in fakemui folder
- Hooks stay in root hooks folder
- Components stay in root components folder

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 22:18:37 +00:00
parent 6d8937933e
commit 7cfdba6f50
19 changed files with 2488 additions and 1375 deletions

View File

@@ -18,6 +18,6 @@
}
],
"include": [
"build-ninja/build/Release/generators/CMakePresets.json"
"build/build/Release/generators/CMakePresets.json"
]
}