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:
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user