From 3a65420f8cd974fa1be663ae294ffbe09285f0ea Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 2 Nov 2025 21:20:45 +0530 Subject: [PATCH] fix: area not clickable. fix: looong sleep/wait on mock suggestions lol. --- .../(suggestions)/empty.svelte | 77 +++++++++++-------- 1 file changed, 46 insertions(+), 31 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte index 8f570c4ec..a11563025 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte @@ -630,7 +630,7 @@ try { if (VARS.MOCK_AI_SUGGESTIONS) { /* animation */ - await sleep(NOTIFICATION_AND_MOCK_DELAY * 100); + await sleep(NOTIFICATION_AND_MOCK_DELAY); suggestedColumns = mockSuggestions; } else { await sleep(5000); // for design review on stage @@ -1532,8 +1532,15 @@ {#each userDataRows as row} {#each spreadsheetColumns as column} + {@const columnObj = getColumn(column.id)} + {@const interactable = + isCustomColumn(column.id) && columnObj && !columnObj.isPlaceholder} - {row[column.id] ?? ''} + {@render rowCellInteractiveButton({ + interactable, + column, + row + })} {/each} @@ -1543,37 +1550,10 @@ {#each spreadsheetColumns as column} {@const columnObj = getColumn(column.id)} - {@const isColumnInteractable = + {@const interactable = isCustomColumn(column.id) && columnObj && !columnObj.isPlaceholder} - + {@render rowCellInteractiveButton({ interactable, column })} {/each} @@ -1756,6 +1736,41 @@ {/snippet}--> +{#snippet rowCellInteractiveButton({ interactable, column, row = null })} + +{/snippet} + {#snippet changeColumnTypePopover({ id, columnObj, iconColor, icon, isColumnInteractable, index })}