{{/* The inner screens' parts: the living mark, avatars and monograms, the stage track, badges, the row and the decision card. Every row is clickable as a whole through its title link's ::after; the few controls inside a row sit above it. */}} {{define "mark"}}{{end}} {{define "elapsed"}}{{elapsed .}}{{end}} {{define "av"}}{{end}} {{define "av-l"}}{{end}} {{define "who"}}{{template "av" .}}{{if .You}}{{copy "work.you"}}{{else}}{{.Name}}{{end}}{{end}} {{define "mono"}}{{end}} {{define "mono-l"}}{{end}} {{define "mono-s"}}{{end}} {{define "track"}}
    {{range .Track}}
  1. {{if .Live}}{{template "mark" "s"}}{{end}}
  2. {{end}}
{{end}} {{define "track-full"}}
    {{range .Track}}
  1. {{if .Live}}{{template "mark" "s"}}{{end}}{{with .Was}}{{.}}, {{end}}{{.Label}}{{if eq .State "current"}} {{copy "work.track.working"}}{{end}}{{with .At}}{{end}}
  2. {{end}}
{{end}} {{define "badge"}}{{if .Live}}{{template "mark" "s"}}{{else if .Icon}}{{icon .Icon}}{{end}}{{.Text}}{{end}} {{define "chip"}}{{with .Chip}}{{if .Live}}{{template "mark" "s"}}{{else if .Icon}}{{icon .Icon}}{{end}}{{.Text}}{{with .Since}}{{template "elapsed" .}}{{end}}{{end}}{{end}} {{define "source"}}{{if .SourceHref}}{{.Source}}{{else}}{{.Source}}{{end}}{{end}} {{define "task-menu"}}{{if or .Menu .Ask}}{{$id := .ID}}
{{if .Ask}}{{icon "more-horizontal"}}{{else}}{{icon "kebab"}}{{end}}
{{if .Ask}}{{copy "work.ask_about"}}{{end}}{{range .Menu}}
{{if .Value}}{{end}}
{{end}}
{{end}}{{end}} {{/* A task row: one grid of project, task, status, from, updated and the action slot, the same in every list. The action slot holds a Needs you row's one action and, always last, the quiet menu, so both sit in the same place on every row. Called with T (the task) and From (where its forms return). */}} {{define "task-row"}}{{$from := .From}}{{with .T}}
  • {{template "placement-chip" .}}

    {{.Title}}

    {{with .Dup}}

    {{copy "work.dup"}} {{.Title}}{{if not $.T.Mine}} {{printf (copy "work.dup_decides") $.T.Creator.Name}}{{end}}

    {{end}}

    {{$say := .Say}}{{with .StageTag}}{{template "conn-mark" .Provider}}{{$say}}{{else}}{{.Say}}{{end}}

    {{template "track" .}}{{template "chip" .}}{{if .Chip}}.{{end}}{{range .Badges}} {{if .Live}}{{template "mark" "s"}}{{end}}{{.Text}}.{{end}}
    {{template "who" .Creator}}{{if .SourceHref}}{{else}}{{end}}{{.Source}}{{.SourceShort}}{{if .SourceHref}}{{else}}{{end}}
    {{.Ago}}
    {{with .Act}}{{if .Href}}{{icon .Icon}}{{.Label}}{{else}}
    {{end}}{{end}}{{template "task-menu" (dict "ID" .ID "Menu" .Menu "From" $from "Ask" true)}}
  • {{end}}{{end}} {{/* A list of task rows in its groups, with the column names once. Scope "project" drops the project column (the page names it). */}} {{define "work-groups"}}{{$from := .From}}
    {{range .Groups}}

    {{copy (printf "work.group.%s" .Key)}} {{.Count}}{{with copy (printf "work.group.%s_hint" .Key)}}{{.}}{{end}}

      {{range .Tasks}}{{template "task-row" (dict "T" . "From" $from)}}{{end}}{{if .More}}
    1. {{printf (copy "work.done_more") .More}}
    2. {{end}}
    {{end}}
    {{end}} {{define "decision"}}{{$t := .Task}}{{with $t.Decision}}
    {{if $.Head}}{{template "mono" $t.Mono}}
    {{$t.Title}}
    {{template "placement-chip" $t}} · {{template "source" $t}}
    {{end}}

    {{.Why}}

    {{with .Ask}}

    {{.}}

    {{end}}{{if .Link}}

    {{with .LinkText}}{{.}} {{end}}{{.LinkLabel}}{{with .AltLink}} {{$t.Decision.AltLabel}}{{end}}

    {{end}}{{template "design-gallery" .Gallery}}{{with .Said}}

    {{.}}

    {{end}}{{with .Failed}}

    {{.}}

    {{end}}{{with .Recommend}}

    {{.}}

    {{end}}
    {{if .CopyContinue}}
    {{end}}{{with .Card}}
    {{if $.Task.Decision.Note}}{{if $.Task.Decision.BuildNote}}{{else}}{{end}}{{end}}{{range $.Task.Decision.Choices}}{{end}}
    {{end}}{{if .Fold}}
    {{end}}{{if .Recover}}
    {{end}}{{with .Unsandboxed}}
    {{copy "work.decide.unsandboxed"}}

    {{.Warning}}

    {{end}}{{if .Retry}}
    {{end}}{{if .Round}}
    {{end}}{{if .Talk}}{{copy "work.decide.ask_coordinator"}}{{end}}{{if .Cancel}}
    {{end}}{{with .Hint}}{{.}}{{end}}{{if .AddClaude}}{{.AddClaudeLabel}}{{end}}{{if .Mac}}{{copy "work.decide.mac_set_up"}}{{end}}{{copy "work.ask_about"}}
    {{end}}{{end}} {{define "star-toggle"}}{{$p := .P}}
    {{end}} {{define "project-facts"}}{{with .StackLine}}{{if $.PhoneStack}}{{icon "phone"}}{{else}}{{icon "code"}}{{end}}{{.}}{{end}}{{with .Repos}}{{icon "git"}}{{if eq (len .) 1}}{{copy "work.project.one_repo"}}{{else}}{{printf (copy "work.project.repos") (len .)}}{{end}}{{end}}{{with .ChecksLine}}{{if $.Checks.Here}}{{icon "check-circle"}}{{else}}{{icon "help-circle"}}{{end}}{{.}}{{end}}{{end}} {{define "thinking-form"}}{{with .Thinking}}
    {{if .Saved}}

    {{copy "thinking.saved"}}

    {{end}}

    {{copy "thinking.choose"}}

    {{copy "thinking.choose_hint"}}

    {{copy "thinking.choose"}}
      {{$cur := .Set}}{{range .Sets}}
    1. {{end}}
    {{end}}{{end}} {{/* A Design attempt's kept captures, by option, from this instance's task-file route only (the task page and the direction card). */}} {{define "design-gallery"}}{{with .}}
    {{range .Options}}

    {{.Label}}

    {{if .Captures}}{{else}}

    {{copy "work.captures.none"}}

    {{end}}
    {{end}}
    {{end}}{{end}}