feat: 完善模板内容后台配置能力
This commit is contained in:
1 parent
2bc2193b44
commit
9266ec824a
37 files changed
+2273
-63
No files matched your search
@@ -0,0 +1,47 @@
|
||||
# Task Specification
|
||||
|
||||
## Task Shape
|
||||
|
||||
- **Shape**: `single-full`
|
||||
|
||||
## Goals
|
||||
|
||||
- Make material business facts shown by the Linjing and Acheng miniapp templates editable by a brand administrator, or remove unsupported claims.
|
||||
- Preserve template-owned visual design while keeping content brand-scoped and release-snapshot based.
|
||||
|
||||
## Non-Goals
|
||||
|
||||
- Inventory, payment, or real-time opening-state management.
|
||||
- New database tables or template-specific fields in the shared brand model.
|
||||
|
||||
## Constraints
|
||||
|
||||
- Template manifests declare template-specific editable content.
|
||||
- Admin UI uses plain-language controls, never asks users to edit JSON.
|
||||
- Published miniapp content changes only after a new release.
|
||||
|
||||
## Environment
|
||||
|
||||
- **Project root**: `/home/que01/Project/persionalBrand`
|
||||
- **Language/runtime**: TypeScript, React, NestJS, WeChat miniapp JavaScript
|
||||
- **Package manager**: pnpm
|
||||
- **Test framework**: Node test, API integration tests
|
||||
- **Build command**: `pnpm build`
|
||||
|
||||
## Deliverables
|
||||
|
||||
- Template declarations and admin editing controls for material content.
|
||||
- Miniapp rendering without unsupported hard-coded factual claims.
|
||||
- Contract, runtime, and integration regression tests.
|
||||
|
||||
## Done-When
|
||||
|
||||
- [ ] Both templates expose all material displayed facts through admin content controls or omit them.
|
||||
- [ ] Published workspace consumes the edited snapshot and does not change before publication.
|
||||
- [ ] Relevant tests, type checks, template validation, formatting, and build pass.
|
||||
|
||||
## Final Validation Command
|
||||
|
||||
```bash
|
||||
pnpm format:check && pnpm lint && pnpm typecheck && pnpm template:check && pnpm --filter @personal-brand/admin build
|
||||
```
|
||||
Reference in new issue
Block a user