refactor(cmd): consolidate remaining styles in ai, php, setup
- ai: Replace task styles with shared TitleStyle, ValueStyle, AccentLabelStyle - php: Use shared.StageStyle for QA stage headers - setup: Use shared.TitleStyle instead of hardcoded colour - shared: Add AccentLabelStyle and StageStyle Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c28d778322
commit
920fd3aff0
4 changed files with 16 additions and 17 deletions
15
cmd/ai/ai.go
15
cmd/ai/ai.go
|
|
@ -3,7 +3,6 @@
|
|||
package ai
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/host-uk/core/cmd/shared"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
|
@ -28,17 +27,11 @@ var (
|
|||
taskStatusBlockedStyle = shared.StatusErrorStyle
|
||||
)
|
||||
|
||||
// Task-specific styles (unique to task display)
|
||||
// Task-specific styles (aliases to shared where possible)
|
||||
var (
|
||||
taskIDStyle = lipgloss.NewStyle().
|
||||
Bold(true).
|
||||
Foreground(shared.ColourBlue500)
|
||||
|
||||
taskTitleStyle = lipgloss.NewStyle().
|
||||
Foreground(shared.ColourGray200)
|
||||
|
||||
taskLabelStyle = lipgloss.NewStyle().
|
||||
Foreground(shared.ColourViolet400)
|
||||
taskIDStyle = shared.TitleStyle // Bold + blue
|
||||
taskTitleStyle = shared.ValueStyle // Light gray
|
||||
taskLabelStyle = shared.AccentLabelStyle // Violet for labels
|
||||
)
|
||||
|
||||
// AddAgenticCommands adds the agentic task management commands to the ai command.
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ var (
|
|||
phpQAPassedStyle = shared.SuccessStyle
|
||||
phpQAFailedStyle = shared.ErrorStyle
|
||||
phpQAWarningStyle = shared.WarningStyle
|
||||
phpQAStageStyle = lipgloss.NewStyle().Bold(true).Foreground(shared.ColourIndigo500)
|
||||
phpQAStageStyle = shared.StageStyle
|
||||
)
|
||||
|
||||
// Security severity styles (from shared)
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/charmbracelet/huh"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/host-uk/core/cmd/shared"
|
||||
"github.com/host-uk/core/pkg/repos"
|
||||
"golang.org/x/term"
|
||||
)
|
||||
|
|
@ -156,10 +156,7 @@ func runPackageWizard(reg *repos.Registry, preselectedTypes []string) ([]string,
|
|||
var selected []string
|
||||
|
||||
// Header styling
|
||||
headerStyle := lipgloss.NewStyle().
|
||||
Bold(true).
|
||||
Foreground(lipgloss.Color("#3b82f6")).
|
||||
MarginBottom(1)
|
||||
headerStyle := shared.TitleStyle.MarginBottom(1)
|
||||
|
||||
fmt.Println(headerStyle.Render("Package Selection"))
|
||||
fmt.Println("Use space to select/deselect, enter to confirm")
|
||||
|
|
|
|||
|
|
@ -177,6 +177,15 @@ var (
|
|||
PrNumberStyle = lipgloss.NewStyle().
|
||||
Bold(true).
|
||||
Foreground(ColourPurple500)
|
||||
|
||||
// AccentLabelStyle for highlighted labels (violet).
|
||||
AccentLabelStyle = lipgloss.NewStyle().
|
||||
Foreground(ColourViolet400)
|
||||
|
||||
// StageStyle for pipeline/QA stage headers (indigo, bold).
|
||||
StageStyle = lipgloss.NewStyle().
|
||||
Bold(true).
|
||||
Foreground(ColourIndigo500)
|
||||
)
|
||||
|
||||
// ─────────────────────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue