docs: nextjs,frontends,tsx (13 files)

This commit is contained in:
2025-12-26 02:39:27 +00:00
parent 5def84b828
commit e22293480d
13 changed files with 8 additions and 1 deletions

View File

@@ -281,7 +281,14 @@ Captured from this machine to document the local development environment:
3. Proposed Lua file path
4. Adapter needed (yes/no)
5. Test expectations
- **Documentation reminders**: keep the doc updated with any new folder names, helper descriptions, or decisions so new contributors can follow the trail.
### Lua Conversion & God Panel Mapping
- God-level builders (Level4 tabs) expose the `PackageManager` UI where admins install, enable, and disable packages (`Level4Tabs``PackageManager` in `frontends/nextjs/src/components`).
- `PackageManager` loads `PACKAGE_CATALOG`, drives the install/toggle APIs, and feeds catalog entries back into the God panel (`frontends/nextjs/src/lib/packages/package-catalog.ts` and `frontends/nextjs/src/components/PackageManager.tsx`).
- Catalog metadata mirrors the `packages/*/seed/metadata.json` format described in `packages/README.md`; new packages must follow that structure (metadata, components, optional static content) so the God panel can surface them.
- Default package metadata is pre-defined under `frontends/nextjs/src/lib/packages/package-glue/default-packages.ts` (admin_dialog, dashboard, forum_forge, etc.) to keep UI, Lua loaders, and catalog definitions aligned.
- See `docx/REFACTOR_PLAN.md` for the living plan that covers package design, metadata schema, tracking templates, tooling, and phase-by-phase deliverables for porting the frontend to Lua/metadata.
#### Package Design Notes