{{define "up-label"}}{{copy "nav.work"}}{{end}} {{define "title"}}{{if .Chat.Job}}{{copy "jobs.title"}}{{else}}{{copy "conversation.title"}}{{end}}{{end}} {{define "card-job"}}{{with .Job}}{{end}}{{end}} {{define "chat-card"}}
{{.}}
{{end}}{{if .Presentation.Coverage.Skipped}}{{icon "check"}}{{copy "roster.copy_done"}}
{{else if and (not .Open) .Note (ne .Kind "direction")}}{{icon "check"}}{{.Note}}
{{else if and .Task (or .Task.CopyHold .Task.CopyCanSkip)}}{{template "roster-copy-hold" .}}{{template "report-thread" .ReportThread}}{{else if and .Receipt (eq .Kind "task")}}{{template "work-task-receipt" .}} {{else if eq .Kind "advice"}}{{if ne .State "resolved"}}{{icon "lightbulb"}}{{.Line}}
{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}}{{end}} {{else if eq .Kind "housekeeping"}}{{icon "list-checks"}}{{.Line}} {{copy "chat.housekeeping.link"}}
{{else if .Receipt}}{{icon "folder"}}{{.Line}}
{{if .Open}}{{if or (eq .Kind "home") (eq .Kind "combined")}}{{else}}{{icon "folder"}}{{.Line}}
{{else if eq .Kind "direction"}}{{.Line}}
{{template "design-gallery" .Gallery}}{{if .Open}}{{if .BuildNote}}{{.}}
{{end}}{{if .Presentation.Thread}}{{.Line}}
{{with .Specialist}}{{range .Capabilities}}{{.Words}}
{{end}}{{printf (copy "chat.card.specialist_brief") .Brief}}
{{end}}{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}} {{else if eq .Kind "research_sources"}}{{.Line}}
{{with .Name}}{{printf (copy "chat.card.research_for") .}}
{{end}}{{with .Research}}{{printf (copy "chat.card.research_looks_for") .Question}}
{{.}}{{.}}
{{end}}{{end}} {{else if eq .Kind "instance_inventory"}}{{.Line}}
{{with .Inventory}}{{.}}{{.Line}}
{{with .Inventory}}{{.}}{{.}}
{{end}}{{end}} {{else if eq .Kind "place"}}{{.Line}}
{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}}{{else if eq .Kind "publish"}}{{.Line}}
{{with .Site}}{{if .URL}}{{copy "chat.card.site_link"}}
{{end}}{{end}}{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}} {{else if eq .Kind "maker_removed"}}{{.Line}}
{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}}{{else if eq .Kind "merge"}}{{.Line}}
{{with .PreviewURL}}{{copy "chat.card.preview_link"}}
{{end}}{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}} {{else if or (eq .Kind "merge_ships") (eq .Kind "merge_policy") (eq .Kind "merge_receipt")}}{{if eq .Kind "merge_receipt"}}{{.Line}}
{{end}}{{if .Open}}{{else}}{{with .Note}}{{.}}
{{end}}{{end}} {{else if .Access}}{{template "access-card" .}} {{else if eq .Kind "access"}}{{.Line}}
{{if .Open}}{{.GrantHow}}
amadan agent grant {{.Agent}} {{.Namespace}}{{.Summary}}
{{.HoldReason}}
{{with .Presentation.Coverage}}{{.}}
{{end}}{{if .Presentation.Waiting}}{{.}}
{{end}}{{end}}{{.}}
{{end}}{{.Branch}}{{copy "work.tl.merge_dropped"}}
{{end}}{{end}}{{.Text}}
{{else}}{{.}}
{{end}} {{with .Queued}}{{.}}
{{end}} {{with .Switched}}{{.}}
{{end}}{{copy "chat.day.quiet"}}
{{else}}{{copy "chat.offline"}}
{{copy "chat.activity.thinking"}}
{{if eq .Kind "move_in"}}{{copy "chat.moving_in"}}{{else if eq .Kind "explore"}}{{copy "chat.exploring"}}{{else}}{{copy "chat.activity.thinking"}}{{end}}
{{.Line}}
{{.Line}}
{{if .Retry}}{{else if .SignIn}}{{copy "chat.connections.sign_in_again_action"}}{{end}}