{title}

{description}

{ isLoading = true; return async ({ result, update }) => { if (result.type === 'failure' && result.data) { alertStore.add('error', (result.data as { error?: string }).error || errorMessage); } else if (result.type === 'redirect') { // Don't show success message if redirecting to bruh page if (result.location && !result.location.includes('/databases/bruh')) { alertStore.add('success', successMessage); } } await update(); isLoading = false; }; }} >

Database Details

A friendly name to identify this database

{#if mode === 'edit'}

Repository URL cannot be changed after linking

{:else}

Git repository URL containing the PCD manifest

{/if}
{#if mode === 'create'}

Branch to checkout on link. Leave empty to use the default branch. You can change this later.

{/if}

Required for private repositories to clone and for developers to push back to GitHub.

Sync Settings

How often to check for updates from the remote repository

If enabled, updates will be pulled automatically. If disabled, you'll only receive notifications when updates are available.

{#if mode === 'edit'} Cancel {/if}
{#if mode === 'edit'}

Danger Zone

Once you unlink this database, there is no going back. All local data will be removed.

{/if}
{#if mode === 'edit'} { showDeleteModal = false; deleteFormElement?.requestSubmit(); }} on:cancel={() => (showDeleteModal = false)} /> {/if}