Commit Graph

19 Commits

Author SHA1 Message Date
Ubuntu
0214bbc91b Add critical lessons to memory - never repeat these mistakes
Three critical lessons:
1. ALWAYS use `ls -la app/filament/Resources/` first to confirm path
2. NEVER use UnitEnum/BackedEnum imports - they are PHP built-in types
3. STOP and thoroughly diagnose when issues repeat, instead of continuing blindly

These are PHP 8.2 built-in enum types, not classes that need importing.

Reference working code:
- SupplierResource.php works WITHOUT these imports
- Use type declarations directly: string|BackedEnum|null and UnitEnum|string|null
2026-02-03 09:51:11 +08:00
Ubuntu
9e6b364d46 Add reflection on repeated errors
Key lessons learned:
1. Directory case sensitivity - app/Filament/ not app/filament/
2. UnitEnum/BackedEnum are PHP 8.2 built-in types, not classes
3. Always verify project structure before making changes
4. Learn from working code instead of assumptions
5. Stop and diagnose thoroughly when issues repeat
2026-02-03 09:38:17 +08:00
Ubuntu
2f5c9c9826 Add development next steps for glass project 2026-02-02 22:01:01 +08:00
Ubuntu
e404cf3f8c Fix UnitEnum|string|null type ordering - all Resources fixed
Change all Resources' navigationGroup from 'string|UnitEnum|null' to 'UnitEnum|string|null'
Union type order matters: UnitEnum first, then string

All 4 Resources updated:
- CategoryResource
- BrandResource
- PurchaseOrderResource
- StaffScheduleResource
- InventoryTransactionResource

PHP syntax check passed for all files
2026-02-02 19:36:40 +08:00
Ubuntu
ddce5c70cf Add BackedEnum fix to memory 2026-02-02 17:49:35 +08:00
Ubuntu
daf2300613 Add final migration completion report
All fixes completed:
1. Filament 4.x Pages inheritance (ListRecords/CreateRecord/EditRecord)
2. navigationGroup type declaration (string|UnitEnum|null)
3. All PHP syntax checks passed

5 modules fully migrated with proper Filament 4.x API
2026-02-02 17:42:13 +08:00
Ubuntu
33febfbcbd Update memory with navigationGroup type fix 2026-02-02 17:40:33 +08:00
Ubuntu
8198292960 Add Filament 4.x fix to memory 2026-02-02 15:52:42 +08:00
Ubuntu
7c0e8e6b4f Update memory with complete glass-v2 migration details 2026-02-02 15:42:13 +08:00
Ubuntu
6fa9bf8572 Add glass-v2 migration completion report
All 5 modules successfully migrated:
1. Product Categories with icon/color support
2. Brand Management
3. Purchase Orders with receive/stock-in actions
4. Inventory Transactions
5. Staff Schedules with copy-to-tomorrow

Total: 6 models, 5 Resources, 6 migrations, 2 seeders
All code committed to glass project (ai/glass)
2026-02-02 15:40:24 +08:00
Ubuntu
700fb1fd14 Update memory with complete glass migration progress 2026-02-02 15:13:07 +08:00
Ubuntu
0dad5f9fbf Add detailed migration plan for glass-v2 features 2026-02-02 14:37:19 +08:00
Ubuntu
0777d5f341 Add PHP 8.2 installation and glass-v2 migration progress 2026-02-02 14:33:28 +08:00
Ubuntu
39db4fbf33 Add glass-v2 to glass migration analysis 2026-02-02 14:02:15 +08:00
Ubuntu
460e36be98 Update glass project progress - many modules completed 2026-02-02 13:51:10 +08:00
Ubuntu
e016bf73a7 Add project tracking for glass development 2026-02-02 13:42:02 +08:00
Ubuntu
5f544828ac Update daily memory with Gitea integration details 2026-02-02 11:44:36 +08:00
Ubuntu
e0490bf2ae Add README and memory system; remove BOOTSTRAP.md 2026-02-02 11:05:37 +08:00
Ubuntu
9f2b862677 Initial commit: OpenClaw workspace configuration 2026-02-02 11:05:26 +08:00