(promoted *PromoteNetworkThreadTaskRecord)
| 1476 | } |
| 1477 | |
| 1478 | func networkThreadPromotionBundle(promoted *PromoteNetworkThreadTaskRecord) outputBundle { |
| 1479 | return outputBundle{ |
| 1480 | jsonValue: promoted, |
| 1481 | human: func() (string, error) { |
| 1482 | return renderHumanBlocks( |
| 1483 | renderHumanSection("Promoted Task", []keyValue{ |
| 1484 | {Label: "Task ID", Value: stringOrDash(promoted.Task.ID)}, |
| 1485 | {Label: taskTitleValue, Value: stringOrDash(promoted.Task.Title)}, |
| 1486 | {Label: networkChannelValue, Value: stringOrDash(promoted.Origin.Channel)}, |
| 1487 | {Label: taskThreadValue, Value: stringOrDash(promoted.Origin.ThreadID)}, |
| 1488 | {Label: networkMessageValue, Value: stringOrDash(promoted.Origin.OriginMessageID)}, |
| 1489 | }), |
| 1490 | ), nil |
| 1491 | }, |
| 1492 | toon: func() (string, error) { |
| 1493 | return renderToonObject( |
| 1494 | "network_thread_promotion", |
| 1495 | []string{taskTaskIDKey, networkTitleKey, networkChannelKey, networkThreadIDKey, networkMessageIDKey}, |
| 1496 | []string{ |
| 1497 | promoted.Task.ID, |
| 1498 | promoted.Task.Title, |
| 1499 | promoted.Origin.Channel, |
| 1500 | promoted.Origin.ThreadID, |
| 1501 | promoted.Origin.OriginMessageID, |
| 1502 | }, |
| 1503 | ), nil |
| 1504 | }, |
| 1505 | } |
| 1506 | } |
| 1507 | |
| 1508 | func networkThreadMessagesBundle(messages []NetworkConversationMessageRecord) outputBundle { |
| 1509 | return networkMessagesBundle(contract.NetworkThreadMessagesResponse{Messages: messages}, messages) |
no test coverage detected