replace ComboBox with BranchSelector in settings pages

This commit is contained in:
harsh mahajan committed 2026-06-11 17:27:53 +05:30
1 parent 81bf3b9e5d
commit 18489917e4
4 files changed
+13 -39

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@
"name": "@appwrite/console",
"dependencies": {
"@ai-sdk/svelte": "^1.1.24",
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@5d0672f",
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@82d2831",
"@appwrite.io/pink-icons": "0.25.0",
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3",
"@appwrite.io/pink-legacy": "^1.0.3",
@@ -125,7 +125,7 @@
"@analytics/type-utils": ["@analytics/type-utils@0.6.4", "", {}, "sha512-Ou1gQxFakOWLcPnbFVsrPb8g1wLLUZYYJXDPjHkG07+5mustGs5yqACx42UAu4A6NszNN6Z5gGxhyH45zPWRxw=="],
"@appwrite.io/console": ["@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@5d0672f", { "dependencies": { "json-bigint": "1.0.0" } }],
"@appwrite.io/console": ["@appwrite.io/console@https://pkg.vc/-/@appwrite/@appwrite.io/console@82d2831", { "dependencies": { "json-bigint": "1.0.0" } }],
"@appwrite.io/pink-icons": ["@appwrite.io/pink-icons@0.25.0", "", {}, "sha512-0O3i2oEuh5mWvjO80i+X6rbzrWLJ1m5wmv2/M3a1p2PyBJsFxN8xQMTEmTn3Wl/D26SsM7SpzbdW6gmfgoVU9Q=="],
+1 -1
View File
@@ -20,7 +20,7 @@
},
"dependencies": {
"@ai-sdk/svelte": "^1.1.24",
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@5d0672f",
"@appwrite.io/console": "https://pkg.vc/-/@appwrite/@appwrite.io/console@82d2831",
"@appwrite.io/pink-icons": "0.25.0",
"@appwrite.io/pink-icons-svelte": "https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3",
"@appwrite.io/pink-legacy": "^1.0.3",
@@ -22,7 +22,7 @@
} from '@appwrite.io/pink-svelte';
import Card from '$lib/components/card.svelte';
import { IconGithub } from '@appwrite.io/pink-icons-svelte';
import { ConnectGit, ConnectRepoModal, RepositoryCard } from '$lib/components/git';
import { ConnectGit, ConnectRepoModal, RepositoryCard, BranchSelector } from '$lib/components/git';
import { isValueOfStringEnum } from '$lib/helpers/types';
import { page } from '$app/state';
import SelectRootModal from '$lib/components/git/selectRootModal.svelte';
@@ -244,24 +244,11 @@
<RepositoryCard {repository} on:disconnect={() => (showDisconnect = true)} />
<Fieldset legend="Branch">
<Layout.Stack gap="xl">
<Input.ComboBox
required={true}
id="branch"
label="Production branch"
placeholder="main"
interactiveOutput
<BranchSelector
bind:value={selectedBranch}
bind:search={selectedBranch}
on:select={(event) => {
selectedBranch = event.detail.value;
}}
name="branch"
options={branchesList?.branches?.map((branch) => {
return {
value: branch.name,
label: branch.name
};
}) ?? []} />
installationId={$installation?.$id}
repositoryId={repository?.id?.toString()}
on:select={(e) => (selectedBranch = e.detail)} />
<Layout.Stack direction="row" gap="s" alignItems="flex-end">
<InputText
id="root"
@@ -22,7 +22,7 @@
} from '@appwrite.io/pink-svelte';
import Card from '$lib/components/card.svelte';
import { IconGithub } from '@appwrite.io/pink-icons-svelte';
import { ConnectGit, ConnectRepoModal, RepositoryCard } from '$lib/components/git';
import { ConnectGit, ConnectRepoModal, RepositoryCard, BranchSelector } from '$lib/components/git';
import { showConnectRepo } from './store';
import { page } from '$app/state';
import SelectRootModal from '$lib/components/git/selectRootModal.svelte';
@@ -240,24 +240,11 @@
<Fieldset legend="Branch">
<Layout.Stack gap="xl">
<Input.ComboBox
required={true}
id="branch"
label="Production branch"
placeholder="main"
interactiveOutput
<BranchSelector
bind:value={selectedBranch}
bind:search={selectedBranch}
on:select={(event) => {
selectedBranch = event.detail.value;
}}
name="branch"
options={branchesList?.branches?.map((branch) => {
return {
value: branch.name,
label: branch.name
};
}) ?? []} />
installationId={$installation?.$id}
repositoryId={repository?.id?.toString()}
on:select={(e) => (selectedBranch = e.detail)} />
<Layout.Stack direction="row" gap="s" alignItems="flex-end">
<InputText
id="root"