Add sorting, user assignment, and UI improvements

Features:
- Add work item sorting by ID, Type, State (keys 1, 2, 3)
- Add user assignment modal with team member filtering (key a)
- Add parent work item title display in details panel
- Preserve sort order and selection on panel reload

UI improvements:
- Remove zebra striping from work items list
- Remove priority column from list and details
- Align metadata fields in details panel
- Add markdown rendering for descriptions (using glamour)
- Add state colors: To Do (orange), In Progress (purple), Done (green), Testing (yellow)

🤖 Generated with [Claude Code](https://claude.ai/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Samuel Enocsson
2025-12-04 22:31:28 +01:00
parent 2555afce19
commit 7c488b2d83
7 changed files with 682 additions and 12 deletions
+24 -1
View File
@@ -25,6 +25,12 @@ type KeyMap struct {
Quit key.Binding
ChangeState key.Binding
CreateBranch key.Binding
Assign key.Binding
// Sorting
SortByID key.Binding
SortByState key.Binding
SortByType key.Binding
}
// DefaultKeyMap returns the default key bindings
@@ -102,6 +108,22 @@ func DefaultKeyMap() KeyMap {
key.WithKeys("b"),
key.WithHelp("b", "create branch"),
),
Assign: key.NewBinding(
key.WithKeys("a"),
key.WithHelp("a", "assign"),
),
SortByID: key.NewBinding(
key.WithKeys("1"),
key.WithHelp("1", "sort by ID"),
),
SortByType: key.NewBinding(
key.WithKeys("2"),
key.WithHelp("2", "sort by type"),
),
SortByState: key.NewBinding(
key.WithKeys("3"),
key.WithHelp("3", "sort by state"),
),
}
}
@@ -122,7 +144,8 @@ func (k KeyMap) FullHelp() [][]key.Binding {
{k.Up, k.Down, k.Top, k.Bottom},
{k.NextPanel, k.PrevPanel},
{k.Select, k.Open, k.View},
{k.ChangeState, k.CreateBranch},
{k.ChangeState, k.CreateBranch, k.Assign},
{k.SortByID, k.SortByType, k.SortByState},
{k.Search, k.Refresh},
{k.Help, k.Back, k.Quit},
}