Skip to content

feat(streak): add configurable weekend streak protection - #36

Merged
Adnan9-63 merged 1 commit into
mainfrom
feature/weekend-streak-protection
Oct 24, 2026
Merged

Adnan9-63 merged 1 commit into
mainfrom
feature/weekend-streak-protection

Conversation

@Adnan9-63

Copy link
Copy Markdown
Member

Description

Fixes #31.

  • Adds new configuration setting \codecritter.weekendStreakProtection\ (default: \ rue).
  • When enabled, coding on Friday or Saturday extends across Sunday and Monday without breaking streaks.
  • Implements _isWeekendGrace()\ logic in \src/stats.js\ for both streak expiration check (_checkStreakExpiry) and streak advancement (_updateStreak).
  • Adds comprehensive unit tests in \ ests/stats.test.js\ verifying weekend bridge continuation and streak reset behavior when disabled.

Type of Change

  • New feature (non-breaking change which adds functionality)
  • New unit tests (adds regression testing)

Copilot AI balanced review requested due to automatic review settings October 24, 2026 20:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Adnan9-63
Adnan9-63 merged commit db181e2 into main Oct 24, 2026
3 checks passed
@Adnan9-63
Adnan9-63 deleted the feature/weekend-streak-protection branch October 24, 2026 20:21
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.

Add Streak Freeze / weekend grace period protection

2 participants