From 5ea7197fe51e9de392ca432f06d612adf361b11d Mon Sep 17 00:00:00 2001 From: bkellam Date: Sat, 1 Mar 2025 22:44:54 -0800 Subject: [PATCH] fix quick actions --- .../app/[domain]/connections/quickActions.tsx | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/packages/web/src/app/[domain]/connections/quickActions.tsx b/packages/web/src/app/[domain]/connections/quickActions.tsx index ba4e9671..50d85947 100644 --- a/packages/web/src/app/[domain]/connections/quickActions.tsx +++ b/packages/web/src/app/[domain]/connections/quickActions.tsx @@ -215,10 +215,11 @@ export const gitlabQuickActions: QuickAction[] = [ ...previous, projects: [ ...previous.projects ?? [], - "" + "" ] }), name: "Add a project", + selectionText: "", description: (
Add a individual project to sync with. Ensure the project is visible to the provided token (if any). @@ -239,10 +240,11 @@ export const gitlabQuickActions: QuickAction[] = [ ...previous, users: [ ...previous.users ?? [], - "" + "" ] }), name: "Add a user", + selectionText: "", description: (
Add a user to sync with. All projects that the user owns visible to the provided token (if any) will be synced. @@ -263,10 +265,11 @@ export const gitlabQuickActions: QuickAction[] = [ ...previous, groups: [ ...previous.groups ?? [], - "" + "" ] }), name: "Add a group", + selectionText: "", description: (
Add a group to sync with. All projects in the group (and recursive subgroups) visible to the provided token (if any) will be synced. @@ -285,9 +288,10 @@ export const gitlabQuickActions: QuickAction[] = [ { fn: (previous: GitlabConnectionConfig) => ({ ...previous, - url: previous.url ?? "", + url: previous.url ?? "https://gitlab.example.com", }), name: "Set a custom url", + selectionText: "https://gitlab.example.com", description: Set a custom GitLab host. Defaults to https://gitlab.com. }, { @@ -305,11 +309,12 @@ export const gitlabQuickActions: QuickAction[] = [ ...previous.exclude, projects: [ ...(previous.exclude?.projects ?? []), - "" + "" ] } }), name: "Exclude a project", + selectionText: "", description: (
List of projects to exclude from syncing. Glob patterns are supported. @@ -333,36 +338,30 @@ export const giteaQuickActions: QuickAction[] = [ ...previous, orgs: [ ...(previous.orgs ?? []), - "" + "" ] }), name: "Add an organization", + selectionText: "", }, { fn: (previous: GiteaConnectionConfig) => ({ ...previous, repos: [ ...(previous.repos ?? []), - "" + "/" ] }), name: "Add a repo", + selectionText: "/", }, { fn: (previous: GiteaConnectionConfig) => ({ ...previous, - url: previous.url ?? "", + url: previous.url ?? "https://gitea.example.com", }), name: "Set a custom url", - }, - { - fn: (previous: GiteaConnectionConfig) => ({ - ...previous, - token: previous.token ?? { - secret: "", - }, - }), - name: "Add a secret", + selectionText: "https://gitea.example.com", } ]