peppa/apps/web/lib/comment-hint.ts
2026-11-15 19:19:23 +05:00

7 lines
590 B
TypeScript

/** PEP-115: what happens to a comment on a story, by the story's state (shown under the field). */
export function commentHint(taskStatus: string, hasLive: boolean): string {
if (hasLive) return "Агент работает — увидит комментарий сразу.";
if (taskStatus === "backlog") return "Агент ещё не начал — аналитик уточнит постановку и ответит здесь.";
return "Агент сейчас не работает — увидит комментарий, когда вернётся к задаче.";
}