Fix high prio recommendations, add error / health screen

This commit is contained in:
2026-07-28 15:40:11 +02:00
parent 948f3e1a79
commit 7511311297
19 changed files with 1885 additions and 148 deletions

View File

@@ -123,9 +123,12 @@ func main() {
exitf("configuration: %v", err)
}
}
service = NewCachedGitHubService(client, cacheDir, config.Cache.MaxAge.Duration)
service = NewCachedGitHubService(
client, cacheDir, config.Cache.MaxAge.Duration, config.Cache.MaxEntries,
)
}
statePath := filepath.Join(filepath.Dir(*configFile), "state.json")
draftPath := filepath.Join(filepath.Dir(*configFile), "drafts.json")
app := NewAppWithSettings(
service, owner, name, config.ShowAll, config.Limit, config.RefreshInterval.Duration,
AppSettings{
@@ -134,6 +137,7 @@ func main() {
DashboardMode: config.Display.DashboardMode,
CompactReviews: config.Display.CompactReviews,
ReadState: loadReadState(statePath),
Drafts: loadDraftStore(draftPath),
PathScroll: config.Paths.Scroll,
PathScrollInterval: config.Paths.ScrollInterval.Duration,
ThreadStatusOrder: config.Threads.StatusOrder,