summaryrefslogtreecommitdiff
path: root/internal/ui/table.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-28 10:54:37 +0300
committerPaul Buetow <paul@buetow.org>2025-06-28 10:54:37 +0300
commit43a0dcbd6617ccf28abfbb50b98bf9fbf8383835 (patch)
treeec7bfddbcfad075edf22f7c921e5518432e49109 /internal/ui/table.go
parentea0fbdc5a168b22296588259c6e821dffcdf7d1a (diff)
feat: implement detailed task view with improved readability
- Add new task detail view accessible via Enter key - Show all task fields in vertical layout with full descriptions - Implement search functionality within task detail view - Use lighter text colors for better readability (252 for values, 250 for descriptions) - Add ESC/Q key handlers to return to table view - Keep 'i' key for original expand/edit functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/ui/table.go')
-rw-r--r--internal/ui/table.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index 7a1e179..b863c30 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -120,6 +120,13 @@ type Model struct {
disco bool // disco mode changes theme on every task modification
statusMsg string // temporary status message shown in status bar
+
+ // Task detail view fields
+ showTaskDetail bool
+ currentTaskDetail *task.Task
+ detailSearching bool
+ detailSearchInput textinput.Model
+ detailSearchRegex *regexp.Regexp
}
// editDoneMsg is emitted when the external editor process finishes.
@@ -395,6 +402,9 @@ func (m Model) View() string {
if m.showHelp {
return m.renderHelpScreen()
}
+ if m.showTaskDetail {
+ return m.renderTaskDetail()
+ }
view := lipgloss.JoinVertical(lipgloss.Left,
m.topStatusLine(),
m.tbl.View(),