Skip to content

fix(#625): Preferences (1/4): week start, 12/24 h, default duration/calendar/reminder, time - #630

Merged
BeSovereign merged 1 commit into
mainfrom
fix/issue-625
Oct 20, 2026
Merged

BeSovereign merged 1 commit into
mainfrom
fix/issue-625

Conversation

@BeSovereign

Copy link
Copy Markdown
Contributor

Refs #625

Added per-user week start, 12/24 h, default duration/calendar/reminder and time zone (server preferences + settings section, used by all views and the new-event dialog), moved all date/time formatting to Intl via the new public/js/locale.js (no de-DE, DAYS/MONTHS or duplicate week-start helpers left), and made all-day/agenda grouping use local calendar dates so Asia/Tokyo all-day events land on their day. Choices: the time zone setting is the zone of new events (grids stay in the browser zone), unset values fall back to the browser region within the UI language (noted in CONCEPTS.md), range titles use Intl formatRange.

Driver gates (measured, not claimed)

  • Suites: lint: 1 passed, 0 failed | node: 2014 passed, 0 failed | python: 194 passed, 0 failed | e2e: 344 passed, 0 failed
  • Red/green check on declared tests: server/test/issue625_preferences.test.js, e2e/issue625_preferences.spec.js, server/test/issue498_task_view_preference.test.js, server/test/issue509_secondary_timezone.test.js, server/test/issue517_week_numbers_preference.test.js, server/test/issue96_alarm_firing_window_reload.test.js, e2e/calendar.spec.js, e2e/mini_month.spec.js, e2e/issue351_mobile_layout.spec.js
red/green output
RED without the change:
on_framework/worktrees/issue-625/node_modules/express/lib/router/layer.js:95:5)
[WebServer]     at trim_prefix (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-625/node_modules/express/lib/router/index.js:328:13)
[WebServer]     at /home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-625/node_modules/express/lib/router/index.js:286:9
[WebServer]     at Function.process_params (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-625/node_modules/express/lib/router/index.js:346:12)
[WebServer]     at next (/home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-625/node_modules/express/lib/router/index.js:280:10)
[WebServer]     at /home/agent-user/Coding/Freeshard/vacation_framework/worktrees/issue-625/server/index.js:202:3


GREEN with the change:
ar: END:VCALENDAR missing (wrong content or truncated response)
[WebServer] [MSGraph OAuth] authorization was not granted
[WebServer] [tasks GET] Failed to fetch tasks for calendar internal-caldav::/e2e-mvgou5hg-1307024-w0-t142/tasks/: REPORT 404: Not Found
[WebServer] [tasks GET] Failed to fetch tasks for calendar internal-caldav::/e2e-mvgou5hg-1307024-w0-t142/personal/: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [delta-sync] Error executing delta sync: REPORT 404: Not Found
[WebServer] [CalDAVClient] Sync token invalidated by server (status 403), falling back to initial sync

🤖 Generated with Claude Code

Added per-user week start, 12/24 h, default duration/calendar/reminder and time zone (server preferences + settings section, used by all views and the new-event dialog), moved all date/time formatting to Intl via the new public/js/locale.js (no de-DE, DAYS/MONTHS or duplicate week-start helpers left), and made all-day/agenda grouping use local calendar dates so Asia/Tokyo all-day events land on their day. Choices: the time zone setting is the zone of new events (grids stay in the browser zone), unset values fall back to the browser region within the UI language (noted in CONCEPTS.md), range titles use Intl formatRange.

Refs #625

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@BeSovereign

Copy link
Copy Markdown
Contributor Author

Security review (claude-fable-5-1): no blocking finding. No blocking findings. Validation is whitelist-based, SQL columns come from a fixed map with bound values, route is session-scoped and behind the origin CSRF guard, and stored values never reach innerHTML. Hardening: defaultCalendarId is not checked against the user's calendars (latent IDOR if a server feature later trusts the column); no ALTER TABLE migration for the six new user_preferences columns (existing DBs would 500 on GET /api/preferences, same pattern as #509/#521); a server-accepted zone unknown to the browser throws in the create dialog (fails closed).

@BeSovereign
BeSovereign merged commit b35f9e2 into main Oct 20, 2026
5 checks passed
@BeSovereign
BeSovereign deleted the fix/issue-625 branch October 20, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant