updated settings to be more user-friendly and added a status message area to provide feedback on settings actions.

This commit is contained in:
2026-04-22 00:06:52 -07:00
parent be94dac6f4
commit 0e7ba18f35
5 changed files with 212 additions and 92 deletions
+6
View File
@@ -35,6 +35,7 @@ const statusEl = document.getElementById("status");
const monthStripEl = document.getElementById("month-strip");
const calendarEl = document.getElementById("calendar");
const timelineSectionEl = document.getElementById("timeline-section");
const settingsSectionEl = document.getElementById("settings-section");
const calendarSectionEl = document.getElementById("calendar-section");
const holidaySectionEl = document.getElementById("holiday-section");
const audioCircleSectionEl = document.getElementById("audio-circle-section");
@@ -60,6 +61,7 @@ const quizSectionEl = document.getElementById("quiz-section");
const godsSectionEl = document.getElementById("gods-section");
const enochianSectionEl = document.getElementById("enochian-section");
const openHomeEl = document.getElementById("open-home");
const openSettingsEl = document.getElementById("open-settings");
const openCalendarEl = document.getElementById("open-calendar");
const openCalendarTimelineEl = document.getElementById("open-calendar-timeline");
const openCalendarMonthsEl = document.getElementById("open-calendar-months");
@@ -473,6 +475,7 @@ sectionStateUi.init?.({
calendarEl,
monthStripEl,
nowPanelEl,
settingsSectionEl,
timelineSectionEl,
calendarSectionEl,
holidaySectionEl,
@@ -499,6 +502,7 @@ sectionStateUi.init?.({
godsSectionEl,
enochianSectionEl,
openHomeEl,
openSettingsEl,
openCalendarEl,
openCalendarTimelineEl,
openCalendarMonthsEl,
@@ -562,6 +566,7 @@ settingsUi.init?.({
onStatus: (text) => setStatus(text),
onConnectionSaved: async () => ensureConnectedApp(),
getActiveSection: () => sectionStateUi.getActiveSection?.() || "home",
setActiveSection: (section) => sectionStateUi.setActiveSection?.(section),
onReopenActiveSection: (section) => sectionStateUi.setActiveSection?.(section),
onRenderWeek: () => appRuntime.renderWeek?.()
});
@@ -604,6 +609,7 @@ navigationUi.init?.({
selectNumberEntry,
elements: {
openHomeEl,
openSettingsEl,
openCalendarEl,
openCalendarTimelineEl,
openCalendarMonthsEl,