Skip to content

Commit 6f40073

Browse files
committed
Remove <SelectIDEModal />
1 parent 9610c36 commit 6f40073

File tree

3 files changed

+3
-86
lines changed

3 files changed

+3
-86
lines changed

components/dashboard/src/app/AppRoutes.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
* See License.AGPL.txt in the project root for license information.
55
*/
66

7-
import { ContextURL, User } from "@gitpod/gitpod-protocol";
7+
import { User } from "@gitpod/gitpod-protocol";
88
import React, { useContext, useState } from "react";
99
import { Redirect, Route, Switch, useLocation } from "react-router";
1010
import { AppNotifications } from "../AppNotifications";
1111
import Menu from "../menu/Menu";
1212
import OAuthClientApproval from "../OauthClientApproval";
1313
import { projectsPathInstallGitHubApp, projectsPathNew } from "../projects/projects.routes";
14-
import { StartPage, StartPhase } from "../start/StartPage";
1514
import { parseProps } from "../start/StartWorkspace";
16-
import SelectIDEModal from "../user-settings/SelectIDEModal";
1715
import {
1816
settingsPathAccount,
1917
settingsPathBilling,
@@ -137,16 +135,7 @@ export const AppRoutes = () => {
137135
// TODO: Try and encapsulate this in a route for "/" (check for hash in route component, render or redirect accordingly)
138136
const isCreation = location.pathname === "/" && hash !== "";
139137
if (isCreation) {
140-
// Prefix with `/#referrer` will specify an IDE for workspace
141-
// After selection is saved, user will be updated, and this condition will be false
142-
const showIDESelection = User.isOnboardingUser(user) && !hash.startsWith(ContextURL.REFERRER_PREFIX);
143-
if (showIDESelection) {
144-
return (
145-
<StartPage phase={StartPhase.Checking}>
146-
<SelectIDEModal location="workspace_start" />
147-
</StartPage>
148-
);
149-
} else if (new URLSearchParams(location.search).has("showOptions") || newCreateWsPage) {
138+
if (new URLSearchParams(location.search).has("showOptions") || newCreateWsPage) {
150139
return <Redirect to={"/new" + location.pathname + location.search + location.hash} />;
151140
} else {
152141
return <CreateWorkspace contextUrl={hash} />;

components/dashboard/src/user-settings/SelectIDEModal.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.

components/dashboard/src/workspaces/Workspaces.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,22 @@ import { FunctionComponent, useCallback, useMemo, useState } from "react";
88
import Header from "../components/Header";
99
import { WorkspaceEntry } from "./WorkspaceEntry";
1010
import { ItemsList } from "../components/ItemsList";
11-
import { useCurrentUser } from "../user-context";
12-
import { User, WorkspaceInfo } from "@gitpod/gitpod-protocol";
13-
import SelectIDEModal from "../user-settings/SelectIDEModal";
11+
import { WorkspaceInfo } from "@gitpod/gitpod-protocol";
1412
import Arrow from "../components/Arrow";
1513
import ConfirmationModal from "../components/ConfirmationModal";
16-
import { ProfileState } from "../user-settings/ProfileInformation";
1714
import { useListWorkspacesQuery } from "../data/workspaces/list-workspaces-query";
1815
import { EmptyWorkspacesContent } from "./EmptyWorkspacesContent";
1916
import { WorkspacesSearchBar } from "./WorkspacesSearchBar";
2017
import { hoursBefore, isDateSmallerOrEqual } from "@gitpod/gitpod-protocol/lib/util/timeutil";
2118
import { useDeleteInactiveWorkspacesMutation } from "../data/workspaces/delete-inactive-workspaces-mutation";
22-
import { useFeatureFlags } from "../contexts/FeatureFlagContext";
2319

2420
const WorkspacesPage: FunctionComponent = () => {
25-
const user = useCurrentUser();
2621
const [limit, setLimit] = useState(50);
2722
const [searchTerm, setSearchTerm] = useState("");
2823
const [showInactive, setShowInactive] = useState(false);
2924
const [deleteModalVisible, setDeleteModalVisible] = useState(false);
3025
const { data, isLoading } = useListWorkspacesQuery({ limit });
31-
const isOnboardingUser = useMemo(() => user && User.isOnboardingUser(user), [user]);
3226
const deleteInactiveWorkspaces = useDeleteInactiveWorkspacesMutation();
33-
const { newSignupFlow } = useFeatureFlags();
3427

3528
// Sort workspaces into active/inactive groups
3629
const { activeWorkspaces, inactiveWorkspaces } = useMemo(() => {
@@ -96,12 +89,6 @@ const WorkspacesPage: FunctionComponent = () => {
9689
/>
9790
)}
9891

99-
{/* TODO: can remove this once newSignupFlow flag is enabled */}
100-
{isOnboardingUser && !newSignupFlow && <SelectIDEModal location={"workspace_list"} />}
101-
102-
{/* TODO: can remove this once newSignupFlow flag is enabled */}
103-
{!isOnboardingUser && !newSignupFlow && <ProfileState.NudgeForProfileUpdateModal />}
104-
10592
{!isLoading &&
10693
(activeWorkspaces.length > 0 || inactiveWorkspaces.length > 0 || searchTerm ? (
10794
<>

0 commit comments

Comments
 (0)