Refactor: Consolidate git services into single GitService class + Settings dialog improvements (#111)

* refactor: consolidate git services into single GitService class

Merges GitBranchService, GitCommitService, GitDiffService, GitFetchPullService,
GitLogService, GitPushService, and GitStatusService into one cohesive GitService
that simplifies architecture and follows SOLID principles. Updates all route
handlers and tests to use the new consolidated service. Moves GitBranch interface
to shared types location.

* Refactor settings dialog to use URL-based state management with tab synchronization

* Update social preview image
This commit is contained in:
Chris Scott authored and GitHub committed 2026-02-06 21:59:18 -05:00
1 parent b5eef317bd
commit e3716bb294
27 files changed
+1393 -2958

No files matched your search

+2 -2
View File
@@ -39,10 +39,10 @@ const DialogContent = React.forwardRef<
DialogContentProps
>(({ className, children, hideCloseButton, fullscreen, mobileFullscreen, ...props }, ref) => {
const isMobileFullscreenMode = fullscreen || mobileFullscreen
return (
<DialogPortal>
<DialogOverlay />
{!fullscreen && <DialogOverlay />}
<DialogPrimitive.Content
ref={ref}
aria-describedby={undefined}
+4 -4
View File
@@ -175,7 +175,7 @@ function HeaderMobileDropdown({ children, className }: { children: ReactNode; cl
const isMobile = useMobile();
const { pendingCount: permissionCount, setShowDialog } = usePermissions();
const { pendingCount: questionCount, navigateToCurrent } = useQuestions();
const { open: openSettings } = useSettingsDialog();
const { open } = useSettingsDialog();
const totalPending = permissionCount + questionCount;
@@ -216,7 +216,7 @@ function HeaderMobileDropdown({ children, className }: { children: ReactNode; cl
{totalPending > 0 && children && <DropdownMenuSeparator />}
{children}
{children && <DropdownMenuSeparator />}
<DropdownMenuItem onClick={openSettings} className="gap-2">
<DropdownMenuItem onClick={open} className="gap-2">
<Settings className="w-4 h-4" />
<span>Settings</span>
</DropdownMenuItem>
@@ -226,13 +226,13 @@ function HeaderMobileDropdown({ children, className }: { children: ReactNode; cl
}
function HeaderSettingsButton() {
const { open: openSettings } = useSettingsDialog();
const { open } = useSettingsDialog();
return (
<Button
variant="ghost"
size="icon"
onClick={openSettings}
onClick={open}
className="text-muted-foreground hover:text-foreground hover:bg-accent transition-all duration-200 h-8 w-8"
>
<Settings className="w-4 h-4" />