{$t.settings?.title || "Settings"}

{#if error}
{error}
{/if} {#if isLoading}
{:else if settings}
{#if activeTab === "environments"}

{$t.settings?.environments || "Superset Environments"}

{$t.settings?.env_description || "Configure Superset environments for dashboards and datasets."}

{#if !editingEnvId && !isAddingEnv}
{/if} {#if editingEnvId || isAddingEnv}

{editingEnvId ? "Edit" : "Add"} Environment

Backup Schedule

Example: 0 0 * * * (daily at midnight)

{/if} {#if settings.environments && settings.environments.length > 0}
{#each settings.environments as env} {/each}
{$t.connections?.name || "Name"} URL {$t.connections?.user || "Username"} Default {$t.settings?.env_actions || "Actions"}
{env.name} {env.url} {env.username} {#if env.is_default} Yes {:else} No {/if}
{:else if !isAddingEnv}

Warning

No Superset environments configured. You must add at least one environment to perform backups or migrations.

{/if}
{:else if activeTab === "logging"}

{$t.settings?.logging || "Logging Configuration"}

{$t.settings?.logging_description || "Configure logging and task log levels."}

Logs agent reasoning and internal state changes for debugging.

{:else if activeTab === "connections"}

{$t.settings?.connections || "Database Connections"}

{$t.settings?.connections_description || "Configure database connections for data mapping."}

{#if settings.connections && settings.connections.length > 0}

No additional connections configured. Superset database connections are used by default.

{:else}

No external connections configured.

{/if}
{:else if activeTab === "llm"}

{$t.settings?.llm || "LLM Providers"}

{$t.settings?.llm_description || "Configure LLM providers for dataset documentation."}

{:else if activeTab === "storage"}

{$t.settings?.storage || "File Storage Configuration"}

{$t.settings?.storage_description || "Configure file storage paths and patterns."}

{/if}
{/if}