diff --git a/apps/spruce/src/constants/externalResources.ts b/apps/spruce/src/constants/externalResources.ts index fffdf5fad..f45c22d45 100644 --- a/apps/spruce/src/constants/externalResources.ts +++ b/apps/spruce/src/constants/externalResources.ts @@ -38,10 +38,8 @@ export const githubChecksAliasesDocumentationUrl = `${projectDistroSettingsDocum export const githubPermissionsDocumentationUrl = "https://docs.github.com/en/rest/apps/apps#create-an-installation-access-token-for-an-app"; -/** - * TODO: Documentation must be written by app team. Update this URL in DEVPROD-8967. - */ -export const githubTokenPermissionRestrictionsUrl = ""; +export const githubTokenPermissionRestrictionsUrl = + "https://docs.devprod.prod.corp.mongodb.com/evergreen/Project-Configuration/Project-Commands#githubgenerate_token"; export const githubAppCredentialsDocumentationUrl = "https://wiki.corp.mongodb.com/x/tavkC"; diff --git a/apps/spruce/src/constants/featureFlags.ts b/apps/spruce/src/constants/featureFlags.ts index e0da5faf5..36d12d64c 100644 --- a/apps/spruce/src/constants/featureFlags.ts +++ b/apps/spruce/src/constants/featureFlags.ts @@ -1,4 +1,3 @@ import { isProduction } from "utils/environmentVariables"; -export const showGitHubAccessTokenProject = !isProduction(); export const showImageVisibilityPage = !isProduction(); diff --git a/apps/spruce/src/pages/projectSettings/Tabs.tsx b/apps/spruce/src/pages/projectSettings/Tabs.tsx index 2d84eb503..e704cde2a 100644 --- a/apps/spruce/src/pages/projectSettings/Tabs.tsx +++ b/apps/spruce/src/pages/projectSettings/Tabs.tsx @@ -1,7 +1,6 @@ import { useEffect, useMemo } from "react"; import styled from "@emotion/styled"; import { Navigate, Route, Routes, useParams } from "react-router-dom"; -import { showGitHubAccessTokenProject } from "constants/featureFlags"; import { ProjectSettingsTabRoutes, slugs } from "constants/routes"; import { ProjectSettingsQuery, RepoSettingsQuery } from "gql/generated/types"; import useScrollToAnchor from "hooks/useScrollToAnchor"; @@ -269,42 +268,37 @@ export const ProjectSettingsTabs: React.FC = ({ /> } /> - {showGitHubAccessTokenProject && ( - - } - /> - )} - {showGitHubAccessTokenProject && ( - - } - /> - )} + + } + /> + + } + /> { {...sharedProps} tab={ProjectSettingsTabRoutes.Plugins} /> - {showGitHubAccessTokenProject && projectType !== ProjectType.Repo && ( + {projectType !== ProjectType.Repo && ( )} - {showGitHubAccessTokenProject && projectType !== ProjectType.Repo && ( + {projectType !== ProjectType.Repo && (