✨ feat(client): 弹窗可设自动关闭时间,完成提醒描述只显示标题
This commit is contained in:
@@ -16,7 +16,10 @@ export function createCopy(t) {
|
||||
const copyFor = (candidate) => {
|
||||
const title = candidate.title === '' ? t('body.untitled') : candidate.title
|
||||
if (candidate.kind === 'completion') {
|
||||
return { kind: 'completion', title: t('notification.completion'), body: t('body.completion', { title }) }
|
||||
// The heading already says what happened ("conversation finished"), so the
|
||||
// description is the conversation itself — naming it twice would only make
|
||||
// the card longer.
|
||||
return { kind: 'completion', title: t('notification.completion'), body: title }
|
||||
}
|
||||
// A plan review arrives as a question with its own discriminator, so it is
|
||||
// answered before the question branch below — a plan review says what it is,
|
||||
|
||||
Reference in New Issue
Block a user