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
Refactor Repositories page to use Studio App Shell layout and Add Repository Modal #928
The current Repositories page uses a basic padded container with an inline form. According to the ProPR Studio UI guidelines, we should use an App Shell architecture (anchored header and footer with a flexible canvas) and use centered modals specifically for disconnected setup tasks like adding a new repository.
Requirements:
Refactor RepositoriesPage.tsx to have an anchored header (h-16) containing the page title and an '+ Add Repository' button.
Add an anchored footer for the auto-save status indicator (matching the SettingsPage pattern).
Extract the contents of AddRepositoryForm.tsx into a new AddRepositoryModal.tsx component that renders a centered modal overlay.
Update the state management in RepositoriesPage to handle the modal's visibility.
This implementation restructures the Repositories page to adhere to the ProPR Studio Aesthetic's "Workbench Metaphor" and "App Shell" guidelines. The page is converted to a full-screen split pane architecture with an anchored header and footer, allowing the repository list to scroll independently. The inline form for adding repositories is extracted into a centered modal, following the guideline to "Use centered Modals only for disconnected setup (Adding a new Repo/Agent)".
Why this file: This new component encapsulates the repository addition form into a modal dialog. It replaces AddRepositoryForm.tsx to conform to the Studio Aesthetic rule regarding modal usage for disconnected setup tasks.
importReact,{useState}from'react';import{BaseBranchSelector}from'./BaseBranchSelector';import{X}from'lucide-react';interfaceAddRepositoryModalProps{isOpen: boolean;onClose: ()=>void;availableRepos: string[];onAdd: (repo: {name: string;alias?: string;baseBranch?: string})=>void;}exportconstAddRepositoryModal: React.FC<AddRepositoryModalProps>=({
isOpen,
onClose,
availableRepos,
onAdd,})=>{const[newRepo,setNewRepo]=useState('');const[newAlias,setNewAlias]=useState('');const[newBaseBranch,setNewBaseBranch]=useState('');if(!isOpen)returnnull;consthandleSubmit=(e: React.FormEvent)=>{e.preventDefault();if(!newRepo)return;onAdd({name: newRepo,alias: newAlias.trim()||undefined,baseBranch: newBaseBranch.trim()||undefined});// Reset form after submissionsetNewRepo('');setNewAlias('');setNewBaseBranch('');};return(<divclassName="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"><divclassName="bg-white rounded-lg max-w-lg w-full shadow-xl overflow-hidden">{/* Modal Header */}<divclassName="flex justify-between items-center px-4 py-3 border-b border-gray-200 bg-gray-50"><h3className="text-sm font-semibold text-gray-900">Add New Repository</h3><buttononClick={onClose}className="text-gray-400 hover:text-gray-600 transition-colors"><Xsize={16}/></button></div>{/* Modal Form Content */}<formonSubmit={handleSubmit}className="p-4 space-y-4"><div><labelclassName="block text-xs font-medium text-gray-700 mb-1">Repository *</label><inputlist="available-repos"value={newRepo}onChange={(e)=>setNewRepo(e.target.value)}placeholder="owner/repo"className="w-full px-3 py-2 bg-white text-gray-900 border border-gray-300 rounded-md font-mono text-sm focus:ring-2 focus:ring-teal-500 focus:border-teal-500 outline-none"autoFocus/><datalistid="available-repos">{availableRepos.map(repo=><optionkey={repo}value={repo}/>)}</datalist></div><div><labelclassName="block text-xs font-medium text-gray-700 mb-1">Alias (optional)</label><inputvalue={newAlias}onChange={(e)=>setNewAlias(e.target.value)}placeholder="e.g., Production"className="w-full px-3 py-2 bg-white text-gray-900 border border-gray-300 rounded-md text-sm focus:ring-2 focus:ring-teal-500 focus:border-teal-500 outline-none"/></div><div><labelclassName="block text-xs font-medium text-gray-700 mb-1">Base Branch (optional)</label><BaseBranchSelectorrepoName={newRepo}value={newBaseBranch}onChange={setNewBaseBranch}placeholder="Select branch..."disabled={!newRepo}/><pclassName="text-xs text-gray-500 mt-1">
If left blank, the default branch will be used. You can add the same repository multiple times with different base branches.
</p></div>{/* Modal Actions */}<divclassName="pt-2 flex justify-end gap-2"><buttontype="button"onClick={onClose}className="px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md hover:bg-gray-50 transition-colors">
Cancel
</button><buttontype="submit"disabled={!newRepo}className={`px-4 py-2 text-sm font-medium rounded-md transition-colors ${!newRepo ? 'bg-gray-100 text-gray-400 cursor-not-allowed' : 'bg-teal-600 text-white hover:bg-teal-700'}`}>
Add Repository
</button></div></form></div></div>);};
File: propr-ui/src/pages/RepositoriesPage.tsx
Why this file: The main page must be refactored to use the App Shell layout (header, canvas, footer) and integrate the new modal instead of the inline form.
Activity
propr-dev commentedon Mar 6, 2026
Suggested Implementation:
Implementation Approach
This implementation restructures the Repositories page to adhere to the ProPR Studio Aesthetic's "Workbench Metaphor" and "App Shell" guidelines. The page is converted to a full-screen split pane architecture with an anchored header and footer, allowing the repository list to scroll independently. The inline form for adding repositories is extracted into a centered modal, following the guideline to "Use centered Modals only for disconnected setup (Adding a new Repo/Agent)".
File:
propr-ui/src/components/AddRepositoryModal.tsxWhy this file: This new component encapsulates the repository addition form into a modal dialog. It replaces
AddRepositoryForm.tsxto conform to the Studio Aesthetic rule regarding modal usage for disconnected setup tasks.File:
propr-ui/src/pages/RepositoriesPage.tsxWhy this file: The main page must be refactored to use the App Shell layout (header, canvas, footer) and integrate the new modal instead of the inline form.
propr-dev commentedon Mar 6, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-4-5-20251101 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-4-5-20251101928/claude-opus-4-5-20251101-refactor-repositories-pag-20260306-1141-ypnmainissue-928-20260306-1141-claude-opus-4-5-20251101-ypn🔍 Track Task Execution
Summary
feat(ai): The fix is complete. I added a "+ Add Repository" button to…