fix(desktop): stop re-asking for downloaded updates, local-date memo export, end template sessions on delete, reject blank chain renames
- UpdateService: an already-downloaded version no longer reopens the consent dialog every 24h, where choosing skip still installed it on quit - MemoService: export groups and titles by local date so KST 00-09h memos stop landing under the previous day - DictationTemplateService: deleting (or remotely removing) the active session's template cancels the session instead of blocking new ones - ChainService: update trims names and rejects blank ones like create does
This commit is contained in:
parent
59d0261254
commit
90c96c6f80
4 changed files with 25 additions and 4 deletions
|
|
@ -247,7 +247,7 @@ class MemoService {
|
|||
// 태그별 → 날짜별 그룹핑
|
||||
const grouped = new Map<string, Map<string, typeof rows>>()
|
||||
for (const row of rows) {
|
||||
const dateKey = new Date(row.createdAt).toISOString().split('T')[0]
|
||||
const dateKey = localDateKey(new Date(row.createdAt))
|
||||
if (!grouped.has(row.tag)) {
|
||||
grouped.set(row.tag, new Map())
|
||||
}
|
||||
|
|
@ -260,7 +260,7 @@ class MemoService {
|
|||
|
||||
// 마크다운 생성
|
||||
const lines: string[] = []
|
||||
const exportDate = new Date().toISOString().split('T')[0]
|
||||
const exportDate = localDateKey(new Date())
|
||||
lines.push(`# Voice Memo Export — ${exportDate}`)
|
||||
lines.push('')
|
||||
|
||||
|
|
@ -396,3 +396,10 @@ export function getMemoService(): MemoService {
|
|||
}
|
||||
return instance
|
||||
}
|
||||
|
||||
// 항목 시각을 현지 시각으로 쓰므로 날짜 머리글도 현지 날짜여야 한다(UTC면 KST 0~9시 메모가 전날로 묶인다).
|
||||
function localDateKey(date: Date): string {
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||
const day = String(date.getDate()).padStart(2, '0')
|
||||
return `${date.getFullYear()}-${month}-${day}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue