Add school name, passing threshold, and week-start-day settings
- School/family name: saved to DB, appears in printed week/month report headers - Passing grade threshold: replaces hardcoded 80% in all gradebook/history views - Week start day (Mon vs Sun): shifts the planner 5-day grid and month view accordingly - Settings are loaded at unlock time so they apply before any panel opens Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a10239ead9
commit
6b7b77829e
4 files changed
+120
-27
No files matched your search
@@ -244,6 +244,9 @@ const seedSetting = (key, val) => {
|
||||
if (!db.prepare(`SELECT value FROM settings WHERE key = ?`).get(key))
|
||||
db.prepare(`INSERT INTO settings (key, value) VALUES (?, ?)`).run(key, val);
|
||||
};
|
||||
seedSetting('school_name', '');
|
||||
seedSetting('passing_pct', '80');
|
||||
seedSetting('week_start_day', 'monday');
|
||||
|
||||
// Seed bundled word lists on first run
|
||||
if (db.prepare(`SELECT COUNT(*) AS n FROM lists`).get().n === 0) {
|
||||
|
||||
Reference in new issue
Block a user