You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(config): Support object-based repository configuration with enabled flag #103
As part of the effort to improve the repository management UI, the backend data structure for storing monitored repositories needs to be updated. Currently, repos_to_monitor is a simple array of strings. This needs to be changed to an array of objects, where each object contains the repository name and an enabled flag.
This change will allow users to temporarily disable repositories from the UI without removing them from the configuration.
Modify the loadMonitoredRepos function to handle the new object-based array. It should filter the array to return only the names of repositories where enabled is true.
Update the saveMonitoredRepos function to accept and save the new array of objects structure.
Ensure backward compatibility in loadMonitoredRepos. If the loaded data is an array of strings, it should be automatically converted to the new object format with all repositories enabled by default.
Update daemon.js:
No significant changes should be needed in daemon.js itself if loadMonitoredRepos correctly returns a simple array of enabled repository names. However, review loadReposFromConfig and getRepos to ensure they handle the output from the updated configRepoManager correctly.
Update packages/dashboard/server.js:
The /api/config/repos GET endpoint should be updated to return the full array of repository objects.
The /api/config/repos POST endpoint must be updated to handle the incoming array of objects and pass it to saveMonitoredRepos.
Update Validation:
Update the validation logic in the POST /api/config/repos endpoint in packages/dashboard/server.js to correctly validate the new array of objects. Each object should have a 'name' (string) and 'enabled' (boolean) property.
Activity
integry commentedon Oct 7, 2025
Implementation Suggestions
Here are the suggested code modifications for this issue:
1.
src/config/configRepoManager.jsUpdate
loadMonitoredReposto handle both the old and new formats and filter by the 'enabled' flag.2.
packages/dashboard/server.jsUpdate the
GETandPOSThandlers for/api/config/repos.propr-dev commentedon Oct 7, 2025
🤖 AI processing has started for this issue using claude-sonnet-4-5-20250929 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claude-sonnet-4-5-20250929ai-fix/103-feat-config-support-objec-20251007-1417-claude-sonnet-4-5-20250929-unymainissue-103-20251007-1417-claude-sonnet-4-5-20250929-unyfix(ai): Resolve issue #103 - feat(config): Support object-based repo…
Merge pull request #105 from integry/ai-fix/103-feat-config-support-o…