Complete study resource depth

This commit is contained in:
2026-07-15 17:26:25 -05:00
parent b7a2c6d230
commit c438f62e52
14 changed files with 206 additions and 24 deletions
+10
View File
@@ -41,6 +41,8 @@ export type StudySession = {
strongsEnabled: boolean
commentaryEnabled: boolean
dictionaryEnabled: boolean
mapsEnabled: boolean
audioEnabled: boolean
timelineEnabled: boolean
createdAt: string
updatedAt: string
@@ -62,6 +64,8 @@ export type StudySettings = {
studyNotesCollapsed: boolean
commentaryCollapsed: boolean
dictionaryCollapsed: boolean
mapCollapsed: boolean
audioCollapsed: boolean
showOriginalLine: boolean
showLinkedLine: boolean
showDefinitionPanel: boolean
@@ -117,6 +121,8 @@ export function defaultStudySettings(): StudySettings {
studyNotesCollapsed: false,
commentaryCollapsed: false,
dictionaryCollapsed: false,
mapCollapsed: false,
audioCollapsed: false,
showOriginalLine: true,
showLinkedLine: true,
showDefinitionPanel: true,
@@ -143,6 +149,8 @@ export function createSession(title = 'Study Session', baseTranslation = default
strongsEnabled: true,
commentaryEnabled: true,
dictionaryEnabled: true,
mapsEnabled: true,
audioEnabled: true,
timelineEnabled: true,
createdAt: now,
updatedAt: now,
@@ -179,6 +187,8 @@ export function normalizeSessions(sessions?: StudySession[] | null): StudySessio
strongsEnabled: session.strongsEnabled ?? true,
commentaryEnabled: session.commentaryEnabled ?? true,
dictionaryEnabled: session.dictionaryEnabled ?? true,
mapsEnabled: session.mapsEnabled ?? true,
audioEnabled: session.audioEnabled ?? true,
timelineEnabled: session.timelineEnabled ?? true,
notes: normalizeSessionNotes(session),
}