{{define "prompts"}}

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

Track daily measurements and observations

💡 How it works: 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 offer to create daily reminders with pre-filled values for fast tracking.
{{if .Error}}
{{.Error}}
{{end}} {{if .Success}}
{{.Success}}
{{end}} {{if or .DuePrompts .UpcomingPrompts .Entries}}
{{/* 1. FREEFORM CARD - Always visible */}} {{range .DuePrompts}} {{if .IsFreeform}}
{{.Question}} optional
or press Ctrl+Enter
{{end}} {{end}} {{/* 2. PENDING CARDS - Due but not filled yet */}} {{range .DuePrompts}} {{if not .IsFreeform}} {{if not .HasResponse}}
Stop tracking? Yes No
{{.Category}} {{.Question}} {{.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}} {{end}} {{/* 3. FILLED CARDS - Entries from today */}} {{range .Entries}}
{{.Category}} {{.Question}} {{.TimeFormatted}}
{{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}}
{{if .UpcomingPrompts}}
{{range .UpcomingPrompts}} {{$prompt := .}}
Stop tracking? Yes No
{{.Category}} {{.Question}} {{.NextAskFormatted}}
{{/* Show preview of what the input will look like */}} {{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}} {{if .HasResponse}} {{end}}
{{end}}
{{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}}