{currentTabMeta.label}

{currentTabMeta.title}

{currentTabMeta.description}

{#if writeStatus === 'ok'} {writeMessage} {:else if writeStatus === 'error'} Write failed {/if} {#if dbValidation && dbValidation.userSource} {dbValidation.userSource} linked {/if} {#if changeCount > 0} {changeCount} pending {/if} {#if dbConfigured} {/if}
{#if activeTab === 'edit' && selectedUser}
{sections.length} Total rows
{randomSectionCount} Randomized
{filteredSectionCount} Filtered
{collectionSectionCount} Collections
Section Canvas
Edit the rows exactly as they will be written back into Emby.
{#if sections.length === 0}

No sections are configured for this user yet.

{:else}
{#each sections as section, i (section.Id + '-' + i)} (expandedIndex = expandedIndex === i ? -1 : i)} on:move={(e) => moveSection(i, e.detail)} on:remove={() => removeSection(i)} on:change={onSectionChange} /> {/each}
{/if}
{:else if activeTab === 'sync'}
Sync Workflow
Choose a source layout, decide how it should land, then push it to other users.
{:else if activeTab === 'collections'}
{:else if activeTab === 'genres'}
{:else if activeTab === 'settings'}
Connection Settings
Save your Emby and TMDB credentials, then manage database reads and writes.
Emby API
Connect to Emby to resolve real user names and gather live activity context for the collection tools.
Load From DB
Read the live users.db instead of the bundled snapshot whenever you want the current production state.
Write To DB
Only modified homescreensettings rows are touched, but Emby should be stopped first for safety.
{:else}

Select a user from the sidebar to start editing.

{/if}
{#if showSqlModal} (showSqlModal = false)} /> {/if}