fix QoL and Ai integration

This commit is contained in:
2026-07-29 09:13:16 +02:00
parent 07e8bc2f5b
commit a82f5e7e9f
13 changed files with 472 additions and 84 deletions

View File

@@ -71,6 +71,7 @@ type DisplayConfig struct {
ThreadListWidthPercent int `toml:"thread_list_width_percent"`
DashboardMode string `toml:"dashboard_mode"`
CompactReviews bool `toml:"compact_reviews"`
ViewerLabel string `toml:"viewer_label"`
}
type PathConfig struct {
@@ -105,6 +106,7 @@ func defaultConfig() Config {
ThreadListWidthPercent: 33,
DashboardMode: "hotkey",
CompactReviews: true,
ViewerLabel: "login",
},
Paths: PathConfig{
Scroll: false,
@@ -208,6 +210,11 @@ func validateConfig(config Config) error {
default:
return fmt.Errorf("display.dashboard_mode must be intermediate or hotkey")
}
switch config.Display.ViewerLabel {
case "login", "you":
default:
return fmt.Errorf("display.viewer_label must be login or you")
}
if err := validateThreadStatusOrder(config.Threads.StatusOrder); err != nil {
return err
}