Repository navigation
Integrate Milo, habits, and practice with LifeOS and Nexus - #7
Merged
Merged
Conversation
added 9 commits
September 28, 2026 22:24
Ship the LifeOS Phase 2 milestone: journey and coach views backed by the AI advisor panel, a profile editor that reads and writes the local student profile, and a four-step onboarding wizard that seeds it. Adds the gamification core (progression, missions, monetization hooks, lifecycle context) with unit tests, a new sidebar navigation, and static-page metadata for every route.
Phase 1 of 4: local-first habit model with chosen-weekday schedules, per-habit streaks, starter templates, a daily ritual module on /today/ with smart prompts, and a /habits/ manager with weekly review. Backup round-trip and a dedicated test suite included.
New /habits route and HabitsView client component: empty state, active habit cards, Monday-start week table, inline add/edit form, and an archived section with restore plus two-step delete. Adds two domain readers in lib/habits.ts. historyCells returns a status per date key and is schedule-aware; weekView now delegates to it so the rolling history and the week table cannot drift. historyEntries returns the logged entry per key and is the only door to a day's value, so a quantity cell can render value/target. A met day reads 25/25 rather than a check glyph; the sr-only spoken label carries the same figures so the state is never colour-only. Dates come from useClientToday() and localDateOffset(), never toISOString(), so a user west of UTC cannot see tomorrow's cells. Before the client has a real date the view renders its header only, so server HTML and first paint agree. Weekday chips read habit.days against a 0 = Sunday index, so labels are correct on any day of the week. Focus moves to the safe default when the delete confirmation opens and to the Archived heading after a confirmed delete. Tests: 8 added, 35 in the habit suite. Covers both readers, their agreement with weekView, schedule-blind vs schedule-aware behaviour, and inherited-key habit ids.
Hustlenix
marked this pull request as ready for review
October 20, 2026 04:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Connect lessons and practice plans to saved actions, Small Steps, habits, and the daily ritual while retaining main's mission onboarding, XP, skill paths, and Nexus replication.
Today now exposes both missions and saved practice. The detailed reading/focus record remains under Progress. Both backup surfaces preserve Nexus, mission state, habits, Small Steps, and practice drafts; a regression test covers a combined restore and rollback after a late Nexus write failure. Shared theme tokens, text sizing to 150%, a replayable tour, install guidance, and the plain-language README are included. Small screens and tablets use compact navigation.
Milo Talk uses explicit context selection and approved action saves. Its separately deployed backend stays disabled by default; live cloud activation requires its documented configuration and provider permission.
Validation: 225 app tests, 8 backend tests, lint, and the 70-page production export passed. Browser checks passed the release operating loop (onboarding, mission XP, reading, quizzes, focus, Nexus convergence/encryption, backup restore, and Milo), 48 connected-practice checks, 109 Milo checks, and 108 layouts at 150% across four themes and three widths. Added the new routes to the live smoke suite and backend boundary tests to CI.