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(ui): Implement CRUD interface for repository management #104
This issue is part of the epic to improve repository management in the web UI. It focuses on replacing the current <textarea>-based input with a proper CRUD interface for adding, removing, and disabling monitored repositories.
This task depends on the completion of the backend changes in Issue #103.
Implementation Steps
Update RepositoriesPage.jsx:
Fetch the list of repository objects from the /api/config/repos endpoint.
Display the repositories in a list or table format. Each row should show:
The repository name (owner/repo).
An "Enabled" toggle switch.
A "Remove" button.
Implement "Add Repository" Functionality:
Create a form for adding new repositories.
This form should include:
A dropdown to select from a list of available GitHub repositories (fetched from a new API endpoint).
A text input to manually enter a custom repository in owner/repo format.
An "Add Repository" button.
When a repository is added, it should be appended to the list with enabled: true by default.
Implement "Remove Repository" Functionality:
When the "Remove" button is clicked, show a confirmation dialog (e.g., window.confirm or a modal) asking the user to confirm the deletion.
If confirmed, remove the repository from the local state.
Implement "Disable/Enable" Functionality:
The toggle switch for each repository should update the enabled property of the corresponding repository object in the state.
Implement "Save Changes":
A "Save Changes" button should be present. When clicked, it should send the entire (modified) list of repository objects to the POST /api/config/repos endpoint.
Provide feedback to the user on success or failure.
Create New API Endpoint for Available Repos:
In packages/dashboard/server.js, add a new authenticated endpoint (e.g., /api/github/repos) that uses the authenticated user's token to fetch a list of repositories they have access to from the GitHub API. This will populate the "Add Repository" dropdown.
And the corresponding changes in gitfix-ui/src/api/gitfixApi.js.
// In gitfixApi.js// ... other functionsexportconstgetAvailableGithubRepos=async()=>{constresponse=awaitfetch(`${API_BASE_URL}/api/github/repos`,{credentials: 'include'});awaithandleApiResponse(response);returnresponse.json();};exportconstupdateRepoConfig=async(repos)=>{constresponse=awaitfetch(`${API_BASE_URL}/api/config/repos`,{method: 'POST',headers: {'Content-Type': 'application/json'},body: JSON.stringify({repos_to_monitor: repos}),// Send the array of objectscredentials: 'include'});awaithandleApiResponse(response);returnresponse.json();};
Activity
integry commentedon Oct 7, 2025
Implementation Suggestions
Here are some code suggestions for the frontend implementation in
gitfix-ui/src/pages/RepositoriesPage.jsx.And the corresponding changes in
gitfix-ui/src/api/gitfixApi.js.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/104-feat-ui-implement-crud-in-20251007-1420-claude-sonnet-4-5-20250929-nh0mainissue-104-20251007-1420-claude-sonnet-4-5-20250929-nh0fix(ai): Resolve issue #104 - feat(ui): Implement CRUD interface for …
Merge pull request #106 from integry/ai-fix/104-feat-ui-implement-cru…