Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

appview/pipeline: change wf errors to be rendered with sans, only the following details as monospace

Signed-off-by: dawn <dawn@tangled.org>

authored by

dawn and committed by
Tangled
(Jul 2, 2026, 11:14 AM +0300) c1cc2b3b 3fcce030

+31 -1
+25
appview/models/pipeline.go
··· 174 174 ExitCode int 175 175 } 176 176 177 + func (ps PipelineStatus) ErrorMessage() string { 178 + if ps.Error == nil { 179 + return "" 180 + } 181 + line, _, _ := strings.Cut(*ps.Error, "\n") 182 + return line 183 + } 184 + 185 + func (ps PipelineStatus) ErrorDetails() string { 186 + if ps.Error == nil { 187 + return "" 188 + } 189 + _, rest, _ := strings.Cut(*ps.Error, "\n") 190 + if rest == "" { 191 + return "" 192 + } 193 + 194 + const truncateTo = 15 195 + lines := strings.Split(rest, "\n") 196 + if len(lines) <= truncateTo { 197 + return rest 198 + } 199 + return strings.Join(lines[:truncateTo], "\n") + "\n…" 200 + } 201 + 177 202 func (ps *PipelineStatus) PipelineAt() syntax.ATURI { 178 203 return syntax.ATURI(fmt.Sprintf("at://did:web:%s/%s/%s", ps.PipelineKnot, tangled.PipelineNSID, ps.PipelineRkey)) 179 204 }
+6 -1
appview/pages/templates/repo/pipelines/workflow.html
··· 30 30 {{ if .Error }} 31 31 <div class="mb-2 flex items-start gap-2 p-3 rounded border border-red-200 dark:border-red-900/60 bg-red-50/60 dark:bg-red-950/20 text-red-700 dark:text-red-400 text-sm"> 32 32 {{ i "triangle-alert" "size-4 shrink-0 mt-0.5" }} 33 - <span class="font-mono break-words whitespace-pre-wrap">{{- .Error -}}</span> 33 + <div class="flex-1 min-w-0"> 34 + <div class="break-words whitespace-pre-wrap">{{- .ErrorMessage -}}</div> 35 + {{- with .ErrorDetails }} 36 + <div class="font-mono break-words whitespace-pre-wrap">{{- . -}}</div> 37 + {{- end }} 38 + </div> 34 39 </div> 35 40 {{ end }} 36 41 {{ end }}