Files
persionalBrand/.codex-tasks/template-content-coverage/SPEC.md

1.7 KiB

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

pnpm format:check && pnpm lint && pnpm typecheck && pnpm template:check && pnpm --filter @personal-brand/admin build