fix QoL and Ai integration
This commit is contained in:
@@ -40,6 +40,7 @@ fold_resolved = false
|
||||
thread_list_width_percent = 45
|
||||
dashboard_mode = "hotkey"
|
||||
compact_reviews = false
|
||||
viewer_label = "you"
|
||||
|
||||
[paths]
|
||||
scroll = true
|
||||
@@ -75,7 +76,7 @@ up = ["ctrl+k"]
|
||||
got.Repository != "owner/repo" || !got.ShowAll || got.Limit != 75 ||
|
||||
got.Display.FoldResolved || got.Display.ThreadListWidthPercent != 45 ||
|
||||
got.Display.DashboardMode != "hotkey" ||
|
||||
got.Display.CompactReviews ||
|
||||
got.Display.CompactReviews || got.Display.ViewerLabel != "you" ||
|
||||
!got.Paths.Scroll || got.Paths.ScrollInterval.Duration != 125*time.Millisecond ||
|
||||
strings.Join(got.Threads.StatusOrder, ",") != "resolved,unresolved,outdated" ||
|
||||
got.Threads.WithinStatus != "timestamp" || got.Cache.Enabled ||
|
||||
@@ -325,6 +326,14 @@ func TestValidateConfigRejectsInvalidDashboardMode(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestValidateConfigRejectsInvalidViewerLabel(t *testing.T) {
|
||||
config := defaultConfig()
|
||||
config.Display.ViewerLabel = "me"
|
||||
if err := validateConfig(config); err == nil {
|
||||
t.Fatal("unknown viewer label was accepted")
|
||||
}
|
||||
}
|
||||
|
||||
func TestValidateConfigRejectsInvalidEditorMode(t *testing.T) {
|
||||
config := defaultConfig()
|
||||
config.Editing.Mode = "emacs"
|
||||
|
||||
Reference in New Issue
Block a user