scriptflow/docs/plans/2026-03-11-audience-word-range-design.md
Song367 b49d703e3c
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m22s
一键转换模式优化
2026-03-11 21:53:41 +08:00

1.0 KiB

Audience And Word Range Design

Context

The app already exposes shared generation controls for script type, themes, and narrative methods. Both conversion mode and creation mode use those controls and persist them locally.

Decision

Add two more shared controls in both modes:

  • 受众倾向: 男频 and 女频, default 男频
  • 字数范围: 200 - 500, 500 - 1000, 1000 - 2000, 2000 - 3000, 3000以上, 不限, default 不限

These controls should:

  • appear in both modes alongside the existing generation parameters
  • use the same pill-button interaction style as the existing filters
  • persist via localStorage
  • be included in all AI generation requests for conversion, single-page creation, and batch creation

Implementation Notes

  • Keep the values in Chinese only.
  • Follow the current state structure in src/App.tsx instead of doing a broader settings refactor.
  • Extend the AI settings payload passed into src/services/ai.ts so prompts can explicitly mention the new choices.