48 lines
1.6 KiB
Markdown
48 lines
1.6 KiB
Markdown
# 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
|
|
```
|