feat: 히스토리 자동 타이틀 + 카드 UI 분리
전사 완료 후 LLM이 10단어 이내 제목 자동 생성 (fire-and-forget). DB에 title 컬럼 추가 + 마이그레이션. HistoryEntryCard: 제목(볼드, ellipsis) + 내용(2줄 미리보기) 분리.
This commit is contained in:
parent
b452ebbe52
commit
239fb820b8
5 changed files with 68 additions and 1 deletions
|
|
@ -191,6 +191,17 @@ export function initDatabase(): BetterSQLite3Database<typeof schema> {
|
|||
logger.warn('edited_transcript migration check failed:', err)
|
||||
}
|
||||
|
||||
// Phase 15: history 테이블에 title 컬럼 마이그레이션
|
||||
try {
|
||||
const histCols = sqlite.pragma('table_info(history)') as Array<{ name: string }>
|
||||
if (!histCols.some((c) => c.name === 'title')) {
|
||||
sqlite.exec('ALTER TABLE history ADD COLUMN title TEXT')
|
||||
logger.info('Migrated: added title column to history')
|
||||
}
|
||||
} catch (err) {
|
||||
logger.warn('title migration check failed:', err)
|
||||
}
|
||||
|
||||
// Phase 12.2: history 테이블에 summary_text 컬럼 마이그레이션
|
||||
try {
|
||||
const columns = sqlite.pragma('table_info(history)') as Array<{ name: string }>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue