From 92e7e42cd4b13795874470d64bfe463511959c6a Mon Sep 17 00:00:00 2001 From: Brice Fernandes Date: Sat, 16 May 2026 00:26:57 +0000 Subject: [PATCH] Fix gofmt formatting in TUI files Restore gofmt-canonical column alignment in internal/tui/app.go, edit.go, and mytasks.go to unblock CI (just fmt-check). Co-Authored-By: Claude Opus 4.7 (1M context) --- internal/tui/app.go | 2 +- internal/tui/edit.go | 20 ++++++++++---------- internal/tui/mytasks.go | 12 ++++++------ 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/internal/tui/app.go b/internal/tui/app.go index e2926ff..5b89954 100644 --- a/internal/tui/app.go +++ b/internal/tui/app.go @@ -72,7 +72,7 @@ type Model struct { myTasks myTasksModel // Board view (active after selecting a board) - activeBoard *model.Board + activeBoard *model.Board activeTab boardTab kanban kanbanModel listView listViewModel diff --git a/internal/tui/edit.go b/internal/tui/edit.go index 3080344..8641164 100644 --- a/internal/tui/edit.go +++ b/internal/tui/edit.go @@ -101,22 +101,22 @@ type editModel struct { actorCursor int // Dependencies sub-state. - deps []model.Dependency - depCursor int + deps []model.Dependency + depCursor int addingDep bool - depType int // index into depTypes + depType int // index into depTypes depTasks []model.Task // all non-terminal tasks for the selector depFilter textinput.Model // filter for task ref selector depSelCursor int // Attachments sub-state. - attachments []model.Attachment - attachCursor int - addingAttach bool - attachRefType int // index into refTypes - attachRef textinput.Model - attachLabel textinput.Model - attachField int // 0=type, 1=reference, 2=label + attachments []model.Attachment + attachCursor int + addingAttach bool + attachRefType int // index into refTypes + attachRef textinput.Model + attachLabel textinput.Model + attachField int // 0=type, 1=reference, 2=label err string } diff --git a/internal/tui/mytasks.go b/internal/tui/mytasks.go index 5032ec5..fd06662 100644 --- a/internal/tui/mytasks.go +++ b/internal/tui/mytasks.go @@ -75,12 +75,12 @@ func (m *myTasksModel) load(tasks []model.Task) { m.bindTerminalFunc() m.table.load(tasks) } -func (m *myTasksModel) updateTask(task model.Task) { m.table.updateTask(task) } -func (m *myTasksModel) removeTask(boardSlug string, num int) { m.table.removeTask(boardSlug, num) } -func (m *myTasksModel) selectedTask() *model.Task { return m.table.selectedTask() } -func (m *myTasksModel) rebuild() { m.table.rebuild() } -func (m *myTasksModel) update(msg tea.KeyMsg) { m.table.update(msg) } -func (m myTasksModel) view(width, height int) string { return m.table.view(width, height) } +func (m *myTasksModel) updateTask(task model.Task) { m.table.updateTask(task) } +func (m *myTasksModel) removeTask(boardSlug string, num int) { m.table.removeTask(boardSlug, num) } +func (m *myTasksModel) selectedTask() *model.Task { return m.table.selectedTask() } +func (m *myTasksModel) rebuild() { m.table.rebuild() } +func (m *myTasksModel) update(msg tea.KeyMsg) { m.table.update(msg) } +func (m myTasksModel) view(width, height int) string { return m.table.view(width, height) } // colTaskRef renders the board/num task reference. var colTaskRef = taskColumn{