From 47056702382ed208c02a3b26d9440b5ed2ec4e80 Mon Sep 17 00:00:00 2001 From: Timothy Carambat Date: Sun, 19 May 2024 11:51:08 -0700 Subject: [PATCH] Update Github connector with more obvious alert of Github connector limitations (#1457) --- .../Connectors/Github/index.jsx | 118 ++++++++++++------ 1 file changed, 78 insertions(+), 40 deletions(-) diff --git a/frontend/src/components/Modals/MangeWorkspace/DataConnectors/Connectors/Github/index.jsx b/frontend/src/components/Modals/MangeWorkspace/DataConnectors/Connectors/Github/index.jsx index de6ed77e..00b1cc46 100644 --- a/frontend/src/components/Modals/MangeWorkspace/DataConnectors/Connectors/Github/index.jsx +++ b/frontend/src/components/Modals/MangeWorkspace/DataConnectors/Connectors/Github/index.jsx @@ -3,7 +3,7 @@ import System from "@/models/system"; import showToast from "@/utils/toast"; import pluralize from "pluralize"; import { TagsInput } from "react-tag-input-component"; -import { Warning } from "@phosphor-icons/react"; +import { Info, Warning } from "@phosphor-icons/react"; import { Tooltip } from "react-tooltip"; const DEFAULT_BRANCHES = ["main", "master"]; @@ -92,45 +92,7 @@ export default function GithubOptions() {

Github Access Token

{" "}

optional - {!accessToken && ( - - )} - -

- Without a{" "} - e.stopPropagation()} - > - Personal Access Token - - , the GitHub API may limit the number of files that - can be collected due to rate limits. You can{" "} - e.stopPropagation()} - > - create a temporary Access Token - {" "} - to avoid this issue. -

- +

@@ -180,6 +142,7 @@ export default function GithubOptions() {

+