- Mood switches from a single enum column to a many-to-many
JournalEntryMood table so an entry can carry several feelings at
once; the vocabulary is trimmed to 9 named emotions (dropped the
overlapping satisfaction scale) with unified noun-style labels.
- Categories can define a content_template that pre-fills the "new
entry" textarea when selected (only if the user hasn't started
typing), seeded with a Story/Feelings/Decisions/Insights/Actions
reflection template on the default "일상" category.
- Fixes a real attribute-injection bug found while building the
template feature: Jinja's built-in |tojson filter doesn't escape
double quotes, which breaks a double-quoted x-data="..." attribute
when the JSON payload contains one; added |forceescape and a
regression test.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds an 8th development stage that lets users keep a free-form journal alongside
habit tracking, reusing the existing Google OAuth/DB/PWA infrastructure instead
of a separate project. Users organize entries into custom categories, filter by
a month calendar with day-detail drill-down, attach photos/videos (served via an
authenticated route, never /static), tag entries, and pick multiple emotions per
entry from a curated 9-option set. Includes a global journal prompt bank for
lightweight guided journaling.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- Habits and the account now accumulate XP and levels from check streaks, with
streak/level-up celebration banners and push notifications.
- The "yesterday missed" banner on /today now lets a habit be explicitly marked
failed (not just checked done), backed by a new HabitLog.status column so
completion-rate/streak calculations never count a failed day as done.
- The habit management tabs scroll horizontally on narrow screens instead of
wrapping to two lines, with a pure-CSS edge shadow indicating more content.
Ground the 21-day habit myth in actual research (Lally et al. 2010) and let
users pick a target period (21/66/254 days or unlimited) matching that
study's easy/median/hard automaticity timelines when creating a habit,
with progress shown on the habits list.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Completed and abandoned habits were both lumped under a single terminal
state, making it impossible to tell "finished successfully" apart from
"gave up" when reviewing habit history.
FastAPI + SQLAlchemy/Alembic + MariaDB backend with Jinja2/htmx/Alpine
server-rendered frontend. Multi-user via Google OAuth, daily habit
tracking, monthly/weekly history views, Web Push reminders via
APScheduler, and PWA support (manifest, service worker, offline caching).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>