- models.py: add UniqueConstraint(user_id, date) to flock_history so
duplicate flock entries for the same day are rejected at the DB level
- main.py: v2.3 migration applies the new unique constraint to existing
installs at startup
- login.html: update register form minlength and placeholder from 6 to 10
characters to match backend; add specific 429 error message so rate-
limited users see "Too many attempts — please wait a minute" instead of
a generic failure
- auth.js: update settings modal password input minlength from 6 to 10
- summary.js: fix CSV export truncation — pass limit=10000 so users with
more than 500 days of data get a complete export; read chart border color
from --green CSS variable instead of hardcoded hex
- All HTML files: bump JS version params to ?v=4 so browsers discard
cached copies of files changed across recent sessions (api.js, auth.js,
dashboard.js, history.js, log.js, flock.js, budget.js, summary.js,
admin.js)
- .env.example: add password strength guidance for MySQL and admin vars
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- api.js: add exponential backoff retry (3 attempts, 500/1000/2000ms) for
GET requests on network errors and 5xx responses; mutating methods are
not retried since they are not idempotent
- api.js: add offline indicator — fixed pill banner appears at bottom of
page when navigator goes offline, disappears when back online
- style.css: add styles for offline banner and session expiry warning
- auth.js: show amber warning banner below nav when session expires within
24 hours (with exact hours remaining); dismissible with X button
- auth.js: fix password min-length client-side check from 6 to 10 to
match the backend
- log.js, flock.js, budget.js: disable submit button during async request
and re-enable in finally block to prevent double-submits and make loading
state visible
- dashboard.js: fix chart date labels to use user's configured timezone
instead of the browser's local timezone
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Rename app from Eggtracker to Yolkbook throughout
- Add JWT-based authentication (python-jose, passlib/bcrypt)
- Add users table; all data tables gain user_id FK for full data isolation
- Super admin credentials sourced from ADMIN_USERNAME/ADMIN_PASSWORD env vars,
synced on every startup; orphaned rows auto-assigned to admin post-migration
- Login page with self-registration; JWT stored in localStorage (30-day expiry)
- Admin panel (/admin): list users, reset passwords, disable/enable, delete,
and impersonate (Login As) with Return to Admin banner
- Settings modal (gear icon in nav): timezone selector and change password
- Timezone stored per-user; stats date windows computed in user's timezone;
date input setToday() respects user timezone via Intl API
- migrate_v2.sql for existing single-user installs
- Auto-migration adds timezone column to users on startup
- Updated README with full setup, auth, admin, and migration docs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>