feat: 完善模板内容后台配置能力

This commit is contained in:
que01 committed 2026-09-28 17:30:34 +08:00
1 parent 2bc2193b44
commit 9266ec824a
37 files changed
+2273 -63

No files matched your search

@@ -0,0 +1,48 @@
# Task Specification
## Task Shape
- **Shape**: `single-full`
## Goals
- Ensure the Acheng and Linjing miniapp templates expose their displayed brand and offering content through ordinary Admin controls.
- Prevent future partial coverage by testing template render bindings against manifest editing declarations.
## Non-Goals
- Make structural UI labels, backend status codes, or WeChat system controls brand-editable.
- Add industry fields to the shared brand database model.
## Constraints
- Preserve existing uncommitted work and template visual structure.
- Changes to published miniapps require an explicit release.
- Template declarations, not template-key branches in Admin, define editing controls.
## Environment
- **Project root**: `/home/que01/Project/persionalBrand`
- **Language/runtime**: TypeScript, React, NestJS, WeChat miniapp JavaScript
- **Package manager**: pnpm
- **Test framework**: Node test and API integration tests
- **Build command**: `pnpm build`
## Deliverables
- Complete editable declarations for both templates' displayed presentation and offering details.
- Coverage tests tying rendered content to Admin bindings.
- Verified template catalog, API publication tests, type checks and production Admin build.
## Done-When
- [ ] Each displayed template presentation field is declared in the corresponding Admin form.
- [ ] Each material offering detail shown by either template is editable.
- [ ] No factual service promise is left solely as a fixed template string.
- [ ] Relevant automated checks pass.
## Final Validation Command
```bash
pnpm format:check && pnpm lint && pnpm typecheck && pnpm template:check && pnpm --filter @personal-brand/admin build
```