peppa/apps/web/lib/comment-hint.ts
Асель 8e9ee4d813 Merge main into task/pep-98: PEP-115 texts through the dictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 18:35:08 +05:00

9 lines
638 B
TypeScript

import { m } from "@peppa/shared/i18n";
/** 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 m("Агент работает — увидит комментарий сразу.");
if (taskStatus === "backlog") return m("Агент ещё не начал — аналитик уточнит постановку и ответит здесь.");
return m("Агент сейчас не работает — увидит комментарий, когда вернётся к стори.");
}