Skip to content

Commit ea51d9b

Browse files
chelojimenezclaude
andauthored
feat: default landing to Home instead of Connect (#2631)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fa7cf27 commit ea51d9b

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

mcpjam-inspector/client/src/App.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,6 @@ export function ServersRedirectRoute() {
11891189
export function HomeRoute() {
11901190
const { activeProjectId, homeOrganizationId, isHomeContextResolving } =
11911191
useAppRouteContext();
1192-
const homeEnabled = useFeatureFlagEnabled("home-page-enabled");
1193-
if (!homeEnabled) return <ServersRoute />;
11941192
return (
11951193
<HomeTab
11961194
// Membership-validated org for `/home` (the route carries none, so it is
@@ -1300,12 +1298,9 @@ export default function App() {
13001298
setEvaluateRunsFlagsLoaded(posthog.featureFlags?.hasLoadedFlags === true);
13011299
});
13021300
}, [posthog]);
1303-
const defaultHubRoute = useMemo((): "connect" | "servers" => {
1304-
if (!evaluateRunsFlagsLoaded) {
1305-
return "servers";
1306-
}
1307-
return hostsHubFlagEnabled && isAuthenticated ? "connect" : "servers";
1308-
}, [evaluateRunsFlagsLoaded, hostsHubFlagEnabled, isAuthenticated]);
1301+
const defaultHubRoute = useMemo((): "home" | "connect" | "servers" => {
1302+
return "home";
1303+
}, []);
13091304
const isHostedChatRoute = isChatboxChatRoute;
13101305
const locationContext = useContext(UNSAFE_LocationContext);
13111306
const routeOrganizationId = currentOrgRoute?.orgId;

0 commit comments

Comments
 (0)