Add Coach, take the reference's colours and copy its nav and motion

Coach is the centre tab: questions about routines, slips, streak, today,
active time and debt, answered on the device from the user's own data,
with a target bar chart and buttons that start routines or open the right
screen. The palette moves to neutral grey, near-black and one orange
accent, and Home's header becomes a light panel. The nav is now
overlapping frosted circles whose active disc pops forward, and tabs fade
and rise in on switch. Goals leaves the nav for Coach and stays one tap
away in Home's category row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KhQh614DMeYoQEH9SoMRUw
This commit is contained in:
alvocool
2026-11-09 07:22:35 +03:00
parent d3431ca5de
commit 4cd3f6c038
18 changed files with 1688 additions and 169 deletions

View File

@@ -57,9 +57,13 @@ directly above a large dark value. Used everywhere numbers appear.
## Colour
Near-black ink (`colorPrimaryDark #141414`) on warm off-white
(`colorPrimaryLight #EDEEEA`), with a single green accent (`colorPrimary
#2F6F4E`). Enforcement tiers own the rest of the palette:
After the coach reference: near-black ink and buttons (`colorInk`,
`colorNight #1C1C1C`) on a neutral light grey ground (`colorAmbient*`
around `#EAEAEA`), frosted near-white cards (`colorGlassStrong`) with white
edges, and one warm orange accent (`colorAccent #EC6A36`, soft
`colorAccentSoft`). `colorLime` is that orange too: the spark on dark
buttons. Enforcement tiers keep their own colours, so standing still reads
at a glance:
| Standing | Colour |
|---|---|
@@ -94,7 +98,7 @@ square top edge → `sectionHeader` (label + light display title) → content.
## Home
Home opens on a deep forest header block (`colorHeaderTop` → `colorHeaderBottom`):
Home opens on a light header panel (`colorHeaderTop` → `colorHeaderBottom`, text `colorHeaderText`):
greeting and avatar, a Today / Weekly toggle, a seven-day streak panel ending
today (a leaf on every kept day, kept = 80%+), then the numbers. Today shows
minutes held against planned, a ring with + that opens the "Add to today"
@@ -138,3 +142,16 @@ goals and a chat.
active minutes per week and reminders before scheduled routines. Until it
is saved once, Progress measures against the schedule and shows a night
"Set your weekly target" prompt. Targets never touch debt.
## Coach
`see/coach/`: the centre tab. Questions about your own data, answered by
`CoachEngine` from the run log, routines, today's plan, the overdue queue
and the debt score. There is no model and no guessing: six question kinds
(keeping routines, where you slip, streak, what's left today, active time,
debt), matched by keyword; anything else gets the list. An answer is a
frosted card with **bold** figures (`markedText`), an optional bar chart
(solid accent where the target was met, soft accent where short, a dashed
outline for the target, a callout over the standout bar) and buttons that
do something real: start a routine, open overdue, targets or progress, or
ask the follow-up. Messages fade and rise in; bars grow.