Skip to content

Add DailyLearningEvent intermediate base class#10

Merged
mjradwin merged 6 commits into
mainfrom
claude/add-daily-learning-event-ty1VG
Mar 26, 2026
Merged

Add DailyLearningEvent intermediate base class#10
mjradwin merged 6 commits into
mainfrom
claude/add-daily-learning-event-ty1VG

Conversation

@mjradwin
Copy link
Copy Markdown
Member

Creates DailyLearningEvent extending Event with constructor
(date: HDate, desc: string, mask = flags.DAILY_LEARNING).
Updates all 13 event classes that previously extended Event
directly to extend DailyLearningEvent instead.

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F

claude added 6 commits March 25, 2026 14:04
Creates DailyLearningEvent extending Event with constructor
(date: HDate, desc: string, mask = flags.DAILY_LEARNING).
Updates all 13 event classes that previously extended Event
directly to extend DailyLearningEvent instead.

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F
- DirshuAmudYomi is now a simple type {name, amud, side} instead of
  a class extending DafPage (renamed blattNum → amud)
- DirshuAmudYomiEvent now extends DailyLearningEvent directly instead
  of DafPageEvent; renderBrief() contains the render logic previously
  in DirshuAmudYomi.render()
- Update tests to use plain object property access instead of class methods

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F
render() keeps the full Hebrew form with דף and ע״א/ע״ב notation
(e.g. "פסחים דף פ״ד ע״ב"), while renderBrief() now uses a shorter
form without דף and with plain א/ב (e.g. "פסחים פ״ד ב").

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F
Replace the verbose:
  locale = locale || 'en';
  if (typeof locale === 'string') { locale = locale.toLowerCase(); }
with the concise:
  const loc = (locale || 'en').toLowerCase();

Applied across all 11 files that used the old pattern.

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F
…umber

TypeScript was inferring mask as the literal type 67108864 from the
default value, causing TS2345 when callers passed a generic number.

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F
Replaces the repeated inline check
  loc === 'he' || loc === 'he-x-nonikud'
with a single call to isHebrewLocale(loc) across 10 files.

https://claude.ai/code/session_01HFo843jJUGDwFtstBe8H8F
@mjradwin mjradwin merged commit 7ebba75 into main Mar 26, 2026
4 checks passed
@mjradwin mjradwin deleted the claude/add-daily-learning-event-ty1VG branch March 26, 2026 00:38
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