{{define "prompts"}}

{{if .TargetDossier}}{{.TargetDossier.Name}}'s {{end}}Daily Check-in

Track daily measurements and observations

Enter what you want to track (e.g., "I take vitamin D every morning" or "walked 30 minutes today"). The system will learn patterns and create tracking prompts.

{{if .Error}}
{{.Error}}
{{end}} {{if .Success}}
{{.Success}}
{{end}} {{if or .AllPrompts .Entries .FreeformPrompts}}
{{/* 1. FILLED CARDS - Entries from today (SHOW FIRST) */}} {{range .Entries}}
{{.Question}} {{.TimeFormatted}}
{{.Category}}
{{range .Fields}}
{{if eq .Type "number"}} {{.Value}} {{if .Unit}}{{.Unit}}{{end}} {{else if eq .Type "checkbox"}} {{if .Value}}✓{{else}}—{{end}} {{if .Label}}{{.Label}}{{end}} {{else}} {{.Value}} {{end}}
{{end}}
{{if .SourceInput}}
Created from: "{{.SourceInput}}"
{{end}}
{{end}} {{/* 2. ALL PROMPTS - Unfilled prompts (due + upcoming) */}} {{range .AllPrompts}} {{if not .HasResponse}}
Stop tracking? Yes No
{{.Question}}
{{.Category}} {{.NextAskFormatted}}
{{if .Fields}} {{if eq (len .Fields) 1}} {{with index .Fields 0}} {{if eq .Type "number"}}
{{if .Unit}}{{.Unit}}{{end}}
{{else if eq .Type "checkbox"}}
{{end}} {{end}} {{end}} {{end}}
{{end}} {{end}} {{/* 3. FREEFORM CARD - Always last */}} {{range .FreeformPrompts}}
{{.Question}} optional
or press Ctrl+Enter
{{end}}
{{else}}

✨ No tracking prompts yet

Start by logging something below, and the system will learn your patterns.

Examples:

{{end}}
← Back to dossier
{{template "footer"}}
{{end}}