Repository navigation
Add configurable periodic sync & discovery; improve settings UX; sync only watched games - #1
Merged
danielphingston merged 1 commit intoAug 26, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Automationsection in config withPeriodicSyncEnabled,SyncIntervalMinutes,PeriodicDiscoveryEnabled, andDiscoveryIntervalMinutes, plusDefaultAutomation()and validation ininternal/config/config.goand migration for older configs.ConfigureAutomationto the settings manager (internal/settings/manager.go) and a new HTTP endpointPUT /api/settings/automationwith server handling ininternal/api/server.goand tests ininternal/api/server_test.go.internal/api/web/app.js,internal/api/web/styles.css) including toggles, interval inputs, explanatory copy, and an advanced disclosure for launcher paths; settings apply live without restart.internal/app/coordinator.go) on a one-minute ticker, using configured intervals; discovery runs independently on its own configured interval.PendingSnapshotsForWatchedGamesand helpers ininternal/database/store.go, and coordinator now syncs watched pending snapshots instead of all pending snapshots for periodic runs while leaving manualSyncPendingunchanged.internal/platform/folder_windows.go).internal/config,internal/settings,internal/database,internal/apitests) and updated README to document the new options.Testing
go test ./...andgo test -race ./...and all package tests passed (including new/updated tests ininternal/config,internal/settings,internal/database,internal/api).make check(format/lint/tests) and it completed successfully after adjustments to interfaces and constructor wiring.GOOS=windows GOARCH=amd64 go test ./internal/platform ./cmd/saveknot(tests passed in this environment).agent-browserto open the Settings page, interact with the automation form, save values, and capture a screenshot; the UI flow completed successfully.make_prhelper to open a remote PR failed becausemake_pris not available in this environment and no remote is configured. No remote Git/GitHub operations were performed.Codex Task