fix QoL and Ai integration
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user