fix: 4 bugs — MSK today events, settings scroll, note dates, persistent notes volume
All checks were successful
Deploy / deploy (push) Successful in 4m35s

- calendar API: today/week ranges use Moscow time (UTC+3) instead of UTC — previously today events did not appear until 03:00 MSK
- settings tab: add -webkit-overflow-scrolling: touch + touchAction pan-y for tablet scroll
- NotesTab: add date picker (pinDate) in editor header + date badge in list
- home: pinnedNotes now filters by pinDate (today or future), falls back to latest
- notes/auth: storage moved from /tmp to /data (falls back to /tmp if /data missing)
- deploy workflow: mount /opt/digital-home/smart-home-tablet-data:/data so notes survive redeploys
This commit is contained in:
Cosmo
2026-04-23 06:13:16 +00:00
parent 3a93d5bbea
commit b0fb9d0c54
6 changed files with 97 additions and 32 deletions

View File

@@ -4,7 +4,8 @@ import * as fs from 'fs'
import * as path from 'path'
const SECRET = process.env.APP_SECRET || 'smart-home-default-secret-change-me'
const CONFIG_PATH = '/tmp/tablet-config.json'
const DATA_DIR = fs.existsSync('/data') ? '/data' : '/tmp'
const CONFIG_PATH = `${DATA_DIR}/tablet-config.json`
function loadConfig(): { pin: string } {
try {