diff --git a/frontend/src/components/EditorPage.tsx b/frontend/src/components/EditorPage.tsx index 0cd3fa9..e5d89b4 100644 --- a/frontend/src/components/EditorPage.tsx +++ b/frontend/src/components/EditorPage.tsx @@ -374,7 +374,11 @@ const EditorPage: React.FC = ({ onLogout }) => { const [isCompactViewport, setIsCompactViewport] = useState(() => isCompactEditorViewport()); const [sidebarOpen, setSidebarOpen] = useState(() => !isCompactEditorViewport()); const wasCompactViewportRef = useRef(isCompactViewport); - const [activityBarTab, setActivityBarTab] = useState<'explorer' | 'search' | 'git' | 'problems' | 'import' | 'debug' | 'extensions' | 'history'>('explorer'); + // 'graph' is a member because the render branch at the bottom of this file + // compares against it. Without it that comparison is between types with no + // overlap, which tsc -b reports as TS2367 and treats as an error — failing + // `npm run build`, and with it the frontend stage of docker/Dockerfile.nginx. + const [activityBarTab, setActivityBarTab] = useState<'explorer' | 'search' | 'git' | 'problems' | 'import' | 'debug' | 'extensions' | 'history' | 'graph'>('explorer'); const [profileDropdownOpen, setProfileDropdownOpen] = useState(false); const [userData, setUserData] = useState(null); const [userRepos, setUserRepos] = useState([]);