Skip to content
aarshps edited this page May 31, 2026 · 2 revisions

Pathivu Wiki

Pathivu (പതിവ് — Malayalam for "habit / routine") is the habit-tracking app of the Hora family, built in the same Material 3 Expressive design language as Varisankya.

What it does

  • Build habits on a daily, specific-weekday, X-times-per-week, or X-days-per-month schedule.
  • Track quit habits (bad addictions) by clean-day streaks and a daily score (done − slips).
  • Check a habit off each day with a satisfying, haptic tap.
  • Edit any past day from a calendar Day editor (back-fill or correct completions).
  • Reorder habits by long-press drag; archive (soft-delete) keeps history and is restorable.
  • Track current streak (🔥), longest streak, a global "perfect day" streak, completion rate, and a 16-week heatmap.
  • Get one tidy daily reminder that lists the habits still due as a bullet list — tap it to open the app (no action buttons).
  • Material You theming, dynamic colours, and 27 minimal line icons to label habits.

How completions are stored

Each habit document (users/{uid}/habits/{habitId}) keeps a completedDates array of ISO yyyy-MM-dd strings. Toggling a day is an atomic arrayUnion / arrayRemove, so check-ins are race-free across devices. Streaks, week-dots, and the heatmap are all derived client-side in util/HabitStats.kt.

Tech at a glance

  • Android 15+ (min API 35), 100% Kotlin, Material 3 Expressive, View system + MVVM.
  • Firebase Auth (Google Sign-In via Credential Manager) + Cloud Firestore + Analytics — dedicated project hora-pathivu.
  • WorkManager chained one-shot reminder, anchored to local wall-clock time.

Pages

Links

Clone this wiki locally