diff --git a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/common-provider-form.tsx b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/common-provider-form.tsx index fb514a7676c4..b5c3218371bc 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/common-provider-form.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/common-provider-form.tsx @@ -54,7 +54,7 @@ interface GithubProviderFormProps { deletable?: boolean } -export const ProviderForm: React.FC = ({ +export const CommonProviderForm: React.FC = ({ isNew, form, onSubmit, diff --git a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/provider-list.tsx b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/provider-list.tsx index 0c626098f37c..825423a411b1 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/provider-list.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/components/provider-list.tsx @@ -87,6 +87,7 @@ interface GitProvidersTableProps { data: RepositoryProvidersViewProps['providers'] } const GitProvidersList: React.FC = ({ data }) => { + const kind = useRepositoryKind() return (
{data?.map(item => { @@ -100,7 +101,7 @@ const GitProvidersList: React.FC = ({ data }) => {
View diff --git a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/add-repository-form.tsx b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/add-repository-form.tsx index 99f2d3f86b09..18c9e25c8e72 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/add-repository-form.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/add-repository-form.tsx @@ -81,11 +81,11 @@ export default function LinkRepositoryForm({ const emptyText = React.useMemo(() => { switch (providerStatus) { case RepositoryProviderStatus.Pending: - return 'Synchronizing Repositories...' + return 'Awaiting the next data synchronization' case RepositoryProviderStatus.Error: - return 'Synchronization Error with Repositories' + return 'Synchronizing error. Please check if the access token is still valid' default: - return 'No repository found.' + return 'No repository found' } }, [providerStatus]) diff --git a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/update-github-provider-form.tsx b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/update-github-provider-form.tsx index cea739a793d1..23c61a15b6be 100644 --- a/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/update-github-provider-form.tsx +++ b/ee/tabby-ui/app/(dashboard)/settings/(integrations)/repository/[kind]/detail/components/update-github-provider-form.tsx @@ -7,7 +7,7 @@ import { graphql } from '@/lib/gql/generates' import { useMutation } from '@/lib/tabby/gql' import { - ProviderForm, + CommonProviderForm, RepositoryProviderFormValues, useRepositoryProviderForm } from '../../components/common-provider-form' @@ -80,7 +80,7 @@ export const UpdateProviderForm: React.FC = ({ } return ( - = ({ } return ( - { return (
- +
) }