fix(github): show an Open settings button in not-connected dialogs for quick access
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user