adding assignee to tui

This commit is contained in:
viljarb
2026-03-11 18:40:21 +01:00
parent a30c822529
commit c72b15f721
8 changed files with 116 additions and 19 deletions

View File

@@ -47,15 +47,16 @@ func getTableColumns(width int) []TableColumn {
return []TableColumn{
{width: 10, label: "ID", key: "id"},
{width: 20, label: "TITLE", key: "title"},
{width: 15, label: "STATUS", key: "status"},
{width: 13, label: "STATUS", key: "status"},
}
default:
return []TableColumn{
{width: 12, label: "ID", key: "id"},
{width: 20, label: "TITLE", key: "title"},
{width: 15, label: "STATUS", key: "status"},
{width: 10, label: "TYPE", key: "type"},
{width: 15, label: "PRIORITY", key: "priority"},
{width: 10, label: "ID", key: "id"},
{width: 24, label: "TITLE", key: "title"},
{width: 14, label: "STATUS", key: "status"},
{width: 11, label: "TYPE", key: "type"},
{width: 13, label: "PRIORITY", key: "priority"},
{width: 13, label: "ASSIGNEE", key: "assignee"},
}
}
}
@@ -340,6 +341,8 @@ func getColumnValue(col TableColumn, issue ListIssue) string {
return string(issue.Issue.IssueType)
case "priority":
return priorityCodeName(issue.Issue.Priority)
case "assignee":
return issue.Issue.Assignee
default:
return ""
}