Skip to content

fix(teacher-reported-today): show unreported lessons before first report of the day - #257

Merged
buzz-code merged 1 commit into
mainfrom
claude/keen-archimedes-8f3i6x
Nov 1, 2026
Merged

buzz-code merged 1 commit into
mainfrom
claude/keen-archimedes-8f3i6x

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

Summary

  • withLessonGaps only added "לא דווח" slots between two reported lessons, so lessons skipped before a class's first report of the day never showed.
  • Removed the lastIndex >= 0 guard: every unreported period before a reported one now gets a slot.
  • Still nothing after the last report of the day; reports before the first period or entered on another day add nothing.

Tests

  • client/src/utils/lessonGaps.test.js: 14/14 pass (new cases for before-first-report, nothing-after-last, report-before-first-period).

Generated by Claude Code

…ort of the day

Gaps were only added between reported lessons, so lessons skipped at the
start of the day never showed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012GTicrCNicbrDMWQntTtNf
@buzz-code
buzz-code merged commit 260b1d3 into main Nov 1, 2026
1 check passed
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.

2 participants