From 5519b9d2eb388e2263a6128032b6ea339402bf62 Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Thu, 19 Mar 2026 12:41:48 +0100 Subject: [PATCH] make it even more clear and add a line describing how to submit --- internal/commands/issues/root.go | 4 +--- pkg/task/taskui.go | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/internal/commands/issues/root.go b/internal/commands/issues/root.go index d86646e..3c1e5d3 100644 --- a/internal/commands/issues/root.go +++ b/internal/commands/issues/root.go @@ -35,9 +35,7 @@ type Flags struct { var RootCmd = &cobra.Command{ Use: "pm", Short: "Project Management User Interface Comparison CLI", - Long: `Project Management User Interface Comparison CLI is a tool designed to evaluate and compare different project management interfaces through a series of tasks and surveys. - -Write 'exit' to skip this task.`, + Long: `Project Management User Interface Comparison CLI is a tool designed to evaluate and compare different project management interfaces through a series of tasks and surveys.`, PersistentPreRun: func(cmd *cobra.Command, args []string) { // Inject app into context for all commands if app != nil { diff --git a/pkg/task/taskui.go b/pkg/task/taskui.go index 5f1426d..b3ef3e2 100644 --- a/pkg/task/taskui.go +++ b/pkg/task/taskui.go @@ -98,6 +98,8 @@ func (m TaskModel) View() tea.View { style.TextStyle.Render(m.Description), "\n", style.TextStyle.Foreground(style.SecondaryColor).Render(detailsText), + style.ErrorStyle.Render(m.interfaceHelpText()), + style.ErrorStyle.Render(m.getQuitHelpText()), ) if m.aboutVisible { @@ -109,7 +111,7 @@ func (m TaskModel) View() tea.View { b.WriteString("\n") - helpText := "Press " + m.keys.Start.Help().Key + " to start • " + m.getQuitHelpText() + " • " + m.keys.About.Help().Key + " " + m.keys.About.Help().Desc + helpText := "Press " + m.keys.Start.Help().Key + " to start • " + m.keys.Quit.Help().Key + " to quit • " + m.keys.About.Help().Key + " " + m.keys.About.Help().Desc b.WriteString(style.HelpStyle.Render(helpText)) final := lipgloss.Place(m.width, m.height, lipgloss.Center, lipgloss.Center, b.String()) @@ -132,6 +134,19 @@ func (m TaskModel) getQuitHelpText() string { } } +func (m TaskModel) interfaceHelpText() string { + switch m.InterfaceType { + case models.InterfaceTypeWeb: + return "Press the button in the upper right corner to view task progress and completion criteria" + case models.InterfaceTypeTUI: + return "Press Shift+S to view task progress and completion criteria" + case models.InterfaceTypeCLI, models.InterfaceTypeREPL: + return "Write 'status' to view task progress and completion criteria" + default: + return m.keys.Quit.Help().Key + " to quit" + } +} + func (m *TaskModel) SetSize(width, height int) { m.width, m.height = width, height }