mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
- Email components (Phase 2 COMPLETE): * Fixed 18 broken imports: @metabuilder/fakemui/hooks → ../../../src/utils/useAccessible * Renamed email-wip/ → email/ (production-ready) * Enabled exports in react/components/index.ts * All 22 email components now production-ready (1244 lines) - Cleanup: * Removed wip/ directory (duplicate of src/utils/accessibility) * Preserved 15 Python/PyQt6 implementation files (full implementations, not stubs) * Moved 7 markdown files to fakemui/docs/ (better organization) - Documentation: * Updated CLAUDE.md: Phase 2 email complete, added deletion safety gotcha * Created plan: txt/FAKEMUI_REORGANIZATION_PLAN_2026-02-01.txt Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
6.3 KiB
6.3 KiB
FakeMUI Directory Structure
Organized by implementation type - all code preserved and well-organized
Directory Map
fakemui/
├── react/ # React TypeScript Components (Production)
│ └── components/ # 145 React components + Python bindings
│ ├── atoms/ # Basic building blocks (9)
│ ├── inputs/ # Form controls (30)
│ ├── surfaces/ # Containers & cards (15)
│ ├── layout/ # Grid, Flex, Box, Stack (8)
│ ├── data-display/ # Tables, Lists, Trees (26)
│ ├── feedback/ # Alerts, Progress, Snackbars (6)
│ ├── navigation/ # Tabs, Drawers, Breadcrumbs (22)
│ ├── utils/ # Portals, Popovers, Tooltips (15)
│ ├── lab/ # Experimental features (11)
│ ├── x/ # Advanced components (11)
│ ├── theming/ # Theme definitions
│ ├── workflows/ # Workflow-specific components
│ └── *.py # Python binding implementations
│
├── qml/ # QML Desktop Components
│ ├── components/ # Pure QML components (104+)
│ ├── hybrid/ # QML/JS hybrid components (legacy)
│ ├── widgets/ # QML widget library
│ └── qmldir # QML module metadata
│
├── utilities/ # Core Utilities (formerly legacy/utilities/)
│ ├── contexts/ # React Context implementations
│ └── core/ # Core utility functions
│
├── wip/ # Work-In-Progress (formerly legacy/migration-in-progress/)
│ ├── styles/ # Incomplete style migrations
│ └── utils/ # Partially migrated utilities
│
├── icons/ # SVG Icon Library
│ └── 421 SVG icons (organized by category)
│
├── theming/ # Material Design 3 Theme
│ ├── theme.ts
│ ├── colors.ts
│ └── typography.ts
│
├── styles/ # SCSS Modules
│ ├── atoms/ # SCSS for atoms (40 files)
│ ├── components/ # Component-specific styles
│ ├── global/ # Global CSS baseline
│ ├── mixins/ # Reusable mixins
│ └── _variables.scss # Design tokens
│
├── scss/ # SCSS Preprocessor Files
│ └── m3-scss/ # Material Design 3 SCSS
│
├── docs/ # Documentation
│ ├── COMPONENT_GUIDE.md
│ ├── MIGRATION_SUMMARY.md
│ ├── TYPESCRIPT_MIGRATION.md
│ ├── COMPONENT_MAPPING.md
│ ├── CODE_REVIEW.md
│ └── SCSS_REVIEW.md
│
├── index.ts # Main Export (307 lines)
├── index.qml # QML Entry Point
├── qmldir # QML Module Definition
├── package.json # NPM Package Config
├── README.md # Overview
└── LICENSE # MIT License
Component Counts
| Category | Count | Location |
|---|---|---|
| React Components | 145 | react/components/ |
| QML Components | 104+ | qml/components/ |
| QML Hybrid | 23 | qml/hybrid/ |
| SVG Icons | 421 | icons/ |
| SCSS Files | 78 | styles/ + scss/ |
| Documentation Files | 6 | docs/ |
Implementation Types
🔵 React (Production)
- Location:
react/components/ - Purpose: Primary web UI framework
- Status: ✅ Active, production-ready
- Language: TypeScript
- Components: 145 organized by category
- Contains: React TSX + Python binding files
🟣 QML (Desktop)
- Location:
qml/ - Purpose: Desktop UI for Qt applications
- Status: ✅ Available for desktop use
- Language: QML
- Components: 104+ QML-specific components
- Folders:
components/- Pure QML components (104+)hybrid/- QML/JS hybrid componentswidgets/- Widget library
🟢 Utilities
- Location:
utilities/ - Purpose: Core utilities and contexts
- Status: ✅ Production utilities
- Contains:
- React Context implementations
- Core utility functions
⚙️ Work-In-Progress
- Location:
wip/ - Purpose: Ongoing migrations and incomplete work
- Status: ✅ Preserved for reference
- Contains:
- Partial style migrations
- Migrated utilities
Using Components
For Web (React)
// Main export with all components
import { Button, Dialog, TextField } from '@metabuilder/fakemui'
// Direct imports (when tree-shaking enabled)
import { Button } from '@metabuilder/fakemui/react/components/inputs'
For Desktop (QML)
import FakeMUI 1.0
Button {
text: "Click me"
}
For Python
from fakemui.inputs import Button
from fakemui.surfaces import Card
File Organization Principles
- By Type: React, QML, Python implementations separated
- By Category: Components organized by Material Design 3 categories
- By Layer: Core utilities, legacy code in separate folders
- By Format: Icons, styles, docs in dedicated folders
- Preserved: All code kept, nothing deleted
Theming
Material Design 3 theme system located in:
theming/- Theme configurationstyles/- SCSS modules and utilitiesreact/components/theming/- React theme setup
Documentation
COMPONENT_GUIDE.md- How to use componentsMIGRATION_SUMMARY.md- History of changesTYPESCRIPT_MIGRATION.md- TS migration detailsCOMPONENT_MAPPING.md- Component indexCODE_REVIEW.md- Code review findingsSCSS_REVIEW.md- SCSS analysis
Next Steps
- Review - Check the new organization
- Build - Test:
npm run build - Verify - Run tests and E2E
- Commit - All code now organized
Last Updated: January 23, 2026 Status: ✅ Fully organized, all code preserved