refactor: inline timeline narrative into timeline.ts, remove indirection

Timeline entities now contain their narrative data (description, details,
outcomes, codedEntries) directly instead of fetching via
getTimelineNarrativeEntry(). Removes ~155 lines from profile-content.ts,
the accessor function, and three dead types.
This commit is contained in:
2026-02-17 01:37:32 +00:00
parent 0ee7b5d44c
commit bbe7900968
4 changed files with 139 additions and 218 deletions
-5
View File
@@ -10,8 +10,6 @@ import type {
QuickActionCopyEntry,
SidebarCopy,
SkillsUICopy,
TimelineNarrativeId,
TimelineNarrativeEntry,
} from '@/types/profile-content'
export function getProfileContent(): DeepReadonly<ProfileContent> {
@@ -58,6 +56,3 @@ export function getLLMCopy(): DeepReadonly<LLMCopy> {
return profileContent.searchChat.llm
}
export function getTimelineNarrativeEntry(entityId: TimelineNarrativeId): DeepReadonly<TimelineNarrativeEntry> {
return profileContent.timelineNarrative[entityId]
}