docs: add FUTURE_WORK quality standard and close polish gaps
Replace CODE_REVIEW.md with a living maturity checklist, document session-only History, inject Service into newMainView for testability, add UI and scheduler regression tests, and fix RunNow error surfacing plus empty jobs view handling. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -151,3 +151,15 @@ func TestEventLine(t *testing.T) {
|
||||
t.Errorf("EventLine blank trigger = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDisplayOverlapPolicy(t *testing.T) {
|
||||
global := domain.OverlapPolicyQueue
|
||||
jobOwn := domain.Job{OverlapPolicy: string(domain.OverlapPolicySkip)}
|
||||
if got, want := DisplayOverlapPolicy(jobOwn, global), "skip"; got != want {
|
||||
t.Errorf("per-job policy = %q, want %q", got, want)
|
||||
}
|
||||
inherit := domain.Job{OverlapPolicy: ""}
|
||||
if got, want := DisplayOverlapPolicy(inherit, global), "queue (global default)"; got != want {
|
||||
t.Errorf("inherited policy = %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user