This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch fix-bugs
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit f35ea7c52eb41cd82934d54899e92714de47b6b2
Author: mintsweet <[email protected]>
AuthorDate: Thu Oct 26 20:52:22 2023 +1300

    feat(config-ui): support placeholder in data scope search
---
 config-ui/src/plugins/components/data-scope-remote/search-remote.tsx | 1 +
 config-ui/src/plugins/register/bitbucket/config.tsx                  | 1 +
 config-ui/src/plugins/register/gitlab/config.tsx                     | 1 +
 config-ui/src/types/plugin.ts                                        | 1 +
 4 files changed, 4 insertions(+)

diff --git 
a/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx 
b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx
index eb5777c5f..a543abafd 100644
--- a/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx
+++ b/config-ui/src/plugins/components/data-scope-remote/search-remote.tsx
@@ -138,6 +138,7 @@ export const SearchRemote = ({ plugin, connectionId, 
config, disabledScope, sele
       <FormItem>
         <InputGroup
           leftIcon="search"
+          placeholder={config.searchPlaceholder}
           value={search.query}
           onChange={(e) => setSearch({ ...search, query: e.target.value })}
         />
diff --git a/config-ui/src/plugins/register/bitbucket/config.tsx 
b/config-ui/src/plugins/register/bitbucket/config.tsx
index 77131b890..31bf6b086 100644
--- a/config-ui/src/plugins/register/bitbucket/config.tsx
+++ b/config-ui/src/plugins/register/bitbucket/config.tsx
@@ -57,6 +57,7 @@ export const BitBucketConfig = {
     ],
   },
   dataScope: {
+    searchPlaceholder: 'Enter the keywords to search for repositories that you 
have read access',
     title: 'Repositories',
     millerColumn: {
       columnCount: 2,
diff --git a/config-ui/src/plugins/register/gitlab/config.tsx 
b/config-ui/src/plugins/register/gitlab/config.tsx
index d9ab98283..7a398b46a 100644
--- a/config-ui/src/plugins/register/gitlab/config.tsx
+++ b/config-ui/src/plugins/register/gitlab/config.tsx
@@ -64,6 +64,7 @@ export const GitLabConfig = {
     ],
   },
   dataScope: {
+    searchPlaceholder: 'Please enter at least 3 characters to search',
     title: 'Projects',
     millerColumn: {
       columnCount: 2.5,
diff --git a/config-ui/src/types/plugin.ts b/config-ui/src/types/plugin.ts
index e9153666e..141781e2f 100644
--- a/config-ui/src/types/plugin.ts
+++ b/config-ui/src/types/plugin.ts
@@ -29,6 +29,7 @@ export interface IPluginConfig {
   };
   dataScope: {
     localSearch?: boolean;
+    searchPlaceholder?: string;
     title?: string;
     millerColumn?: {
       columnCount?: number;

Reply via email to