BUG-1063:后台按列只读档案,授权前数据库拒绝读表,授权后通过。对话输入框下和报告标题下加上 AI 生成说明。状态板按已部署提交改措辞,不标 resolved。下载文件元数据没有做。 自测:tsc 退出码 0;lint 0 error;定向测试 51 通过;test:db 82 项里 13 项为 Windows 已知失败,无新增;隐私标记退出码 0。 Co-Authored-By: Grok (agent loop)
15 lines
764 B
TypeScript
15 lines
764 B
TypeScript
import type { ReportLanguage } from "./report-language.ts";
|
|
|
|
/** Visible label under the chat field. The product shell is Chinese. */
|
|
export const CHAT_AI_NOTICE_ZH = "回答由 AI 生成,仅供参考,不构成医疗、法律或投资建议。";
|
|
|
|
/** English equivalent, locked for a future English shell. Not shown in the Chinese UI. */
|
|
export const CHAT_AI_NOTICE_EN = "AI-generated. For reference only; not medical, legal or financial advice.";
|
|
|
|
export const REPORT_AI_NOTICE_ZH = "本报告由 AI 生成,仅供参考。";
|
|
export const REPORT_AI_NOTICE_EN = "This report is AI-generated and for reference only.";
|
|
|
|
export function reportAiNotice(language: ReportLanguage): string {
|
|
return language === "en" ? REPORT_AI_NOTICE_EN : REPORT_AI_NOTICE_ZH;
|
|
}
|