Skip to content

Add configurable week start day preference#1364

Open
daviddavis wants to merge 1 commit intoFuzzyGrim:devfrom
daviddavis:add-week-start-pref
Open

Add configurable week start day preference#1364
daviddavis wants to merge 1 commit intoFuzzyGrim:devfrom
daviddavis:add-week-start-pref

Conversation

@daviddavis
Copy link
Copy Markdown

  • Add WeekStartDayChoices model and week_start_day field to User
  • Add week start day dropdown to preferences page with new week SVG icon
  • Update statistics activity grid to respect week start day setting
  • Update events calendar to respect week start day setting
  • Dynamically render weekday labels in both statistics and calendar views

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a user preference for the 'Week Start Day' (Monday or Sunday), affecting both the calendar view and activity statistics. Changes include updates to the User model, a new migration, and logic adjustments in statistics.py and events/views.py to align date calculations and UI labels with the chosen start day. Feedback suggests using the calendar module's day_abbr for dynamic weekday labels, adding a database-level CheckConstraint for the new field, and validating user input in the preferences view.

Comment thread src/app/statistics.py Outdated
Comment thread src/events/views.py Outdated
Comment thread src/users/models.py
Comment thread src/users/views.py Outdated
@daviddavis daviddavis force-pushed the add-week-start-pref branch 3 times, most recently from 8cce645 to 75f469d Compare April 19, 2026 17:35
- Add WeekStartDayChoices model and week_start_day field to User
- Add week start day dropdown to preferences page with new week SVG icon
- Update statistics activity grid to respect week start day setting
- Update events calendar to respect week start day setting
- Dynamically render weekday labels in both statistics and calendar views

Co-authored-by: GitHub Copilot <noreply@github.com>
@daviddavis daviddavis force-pushed the add-week-start-pref branch from 75f469d to 4bde0c5 Compare April 19, 2026 17:36
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