(item TaskBlockRecord)
| 3226 | } |
| 3227 | |
| 3228 | func taskBlockKeyValues(item TaskBlockRecord) []keyValue { |
| 3229 | return []keyValue{ |
| 3230 | {Label: "ID", Value: stringOrDash(item.ID)}, |
| 3231 | {Label: taskTaskIDValue, Value: stringOrDash(item.TaskID)}, |
| 3232 | {Label: taskWorkspaceValue, Value: stringOrDash(item.WorkspaceID)}, |
| 3233 | {Label: taskKindValue, Value: stringOrDash(string(item.Kind))}, |
| 3234 | {Label: taskReasonValue, Value: stringOrDash(item.Reason)}, |
| 3235 | {Label: "Details", Value: stringOrDash(compactJSON(item.Details))}, |
| 3236 | {Label: taskCreatedByValue, Value: stringOrDash(formatTaskActor(item.CreatedBy))}, |
| 3237 | {Label: taskCreatedValue, Value: stringOrDash(formatTime(item.CreatedAt))}, |
| 3238 | {Label: "Expires", Value: stringOrDash(formatTimePtr(item.ExpiresAt))}, |
| 3239 | {Label: "Cleared", Value: stringOrDash(formatTimePtr(item.ClearedAt))}, |
| 3240 | {Label: "Cleared By", Value: stringOrDash(formatTaskActorPtr(item.ClearedBy))}, |
| 3241 | {Label: "Clear Note", Value: stringOrDash(item.ClearNote)}, |
| 3242 | } |
| 3243 | } |
| 3244 | |
| 3245 | func taskBlockToonFields() []string { |
| 3246 | return []string{ |
no test coverage detected