Skip to content

feat(modules): school-rotation and daily-inspiration example modules - #96

Open
sth2258 wants to merge 1 commit into
jeremiaa:mainfrom
sth2258:community-modules-school-rotation-daily-inspiration
Open

feat(modules): school-rotation and daily-inspiration example modules#96
sth2258 wants to merge 1 commit into
jeremiaa:mainfrom
sth2258:community-modules-school-rotation-daily-inspiration

Conversation

@sth2258

@sth2258 sth2258 commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Two new community example modules for family dashboards:

🏫 School Rotation

Tracks a configurable N-day rotating school schedule per child (default 6-day cycle). Designed for schools that use a rotating schedule where Day 1 might be Monday one week and Wednesday the next.

  • Per-child schedules — configure each child's specials/activities per rotation day via JSON
  • Holiday & snow day support — add dates to a no-school list and the rotation pauses automatically (weekends are skipped by default)
  • Activity icons — auto-maps common activities (Gym → 🏃, Art → 🎨, Music → 🎵, Library → 📚, etc.)
  • Tomorrow preview — shows the next school day's rotation and activities
  • Lookahead — configurable number of upcoming school days with per-kid activities
  • Off-season states — shows "School's Out" after the end date, countdown before the start date

💬 Daily Inspiration

A funny, kid-friendly motivational message that rotates each morning. Ships with 2000 unique messages — enough for ~5.5 years without repeating. Messages are deterministic by date, so all displays show the same quote.

Messages are kid-appropriate (age 8+) with puns, silly advice, animal wisdom, and gentle humor. Examples:

  • "A penguin can't fly, but it sure can slide. Find your slide."
  • "Your brain has more connections than the internet. Use the wifi wisely."
  • "If at first you don't succeed, blame gravity."

Build & Install

```bash

School Rotation

node scripts/build-module.mjs examples/modules/school-rotation/school-rotation.js dist/school-rotation

Daily Inspiration

node scripts/build-module.mjs examples/modules/daily-inspiration/daily-inspiration.js dist/daily-inspiration
```

Upload the resulting `module.json` + `bundle.js` via `/editor/modules`.

Test plan

  • Both modules build successfully with `scripts/build-module.mjs`
  • School Rotation: verify rotation logic advances correctly across weekends
  • School Rotation: verify exclusion dates pause the rotation
  • School Rotation: verify off-season states (before start, after end)
  • Daily Inspiration: verify a different message appears each day
  • Both modules render correctly on a display view

🤖 Generated with Claude Code

School Rotation: tracks a configurable N-day rotating school schedule per
child with holiday/snow-day exclusions that pause the rotation. Shows
today's specials, tomorrow's preview, and an upcoming lookahead.

Daily Inspiration: displays a funny, kid-friendly motivational message
that rotates each morning. Ships with 2000 unique messages (~5.5 years
without repeating).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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