fix(github): show an Open settings button in not-connected dialogs for quick access

This commit is contained in:
Bohdan Triapitsyn
2026-01-24 02:15:16 +02:00
parent f370ea5d8c
commit ab8a613f9a
5 changed files with 52 additions and 5 deletions
@@ -10,7 +10,7 @@ import { NotificationSettings } from './NotificationSettings';
import { GitHubSettings } from './GitHubSettings';
import { ScrollableOverlay } from '@/components/ui/ScrollableOverlay';
import { useDeviceInfo } from '@/lib/device';
import { isWebRuntime } from '@/lib/desktop';
import { isVSCodeRuntime, isWebRuntime } from '@/lib/desktop';
import type { OpenChamberSection } from './OpenChamberSidebar';
interface OpenChamberPageProps {
@@ -122,6 +122,9 @@ const GitSectionContent: React.FC = () => {
// GitHub section: Connect account for PR/issue workflows
const GitHubSectionContent: React.FC = () => {
if (isVSCodeRuntime()) {
return null;
}
return <GitHubSettings />;
};
@@ -46,6 +46,7 @@ const OPENCHAMBER_SECTION_GROUPS: SectionGroup[] = [
id: 'github',
label: 'GitHub',
items: ['Connect', 'PRs', 'Issues'],
hideInVSCode: true,
},
{
id: 'notifications',