Skip to content

Commit ae9ac4e

Browse files
committed
fix: views broken on userColumns.
update: hide tooltip [temporarily].
1 parent 1fa62ad commit ae9ac4e

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)

src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/empty.svelte

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@
8989
return reorderItems(columnsWithWidths, $columnsOrder);
9090
}
9191
92-
return columnsWithWidths;
92+
return columnsWithWidths.filter(
93+
(column) => !['$id', '$createdAt', '$updatedAt', 'actions'].includes(column.id)
94+
);
9395
});
9496
9597
let resizeObserver: ResizeObserver;
@@ -305,13 +307,7 @@
305307
// start overlay **after** the last userColumn
306308
if (staticUserColumns.length > 0) {
307309
const lastUserColumn = staticUserColumns[staticUserColumns.length - 1];
308-
let lastUserCell = getById(lastUserColumn.id);
309-
310-
if (!lastUserCell) {
311-
lastUserCell = headerElement!.querySelector<HTMLElement>(
312-
`[role="cell"][data-column-id="${lastUserColumn.id}"]`
313-
);
314-
}
310+
const lastUserCell = getById(lastUserColumn.id);
315311
316312
if (lastUserCell) {
317313
const lastUserRect = lastUserCell.getBoundingClientRect();
@@ -1279,7 +1275,7 @@
12791275
out:fade={{ duration: 200 }}>
12801276
</div>
12811277

1282-
{@render customTooltip({ text: 'Click to select column', show: isHovered })}
1278+
<!--{@render customTooltip({ text: 'Click to select column', show: isHovered })}-->
12831279
{/if}
12841280
</div>
12851281

src/routes/(console)/project-[region]-[project]/databases/database-[database]/(suggestions)/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ export const mockSuggestions: { total: number; columns: ColumnInput[] } = {
6060
total: 7,
6161
columns: [
6262
{
63-
name: 'name',
63+
name: 'title',
6464
type: 'string',
6565
size: 255,
6666
format: null,
6767
required: true,
6868
formatOptions: null
6969
},
7070
{
71-
name: 'age',
71+
name: 'authorName',
7272
type: 'string',
7373
size: 128,
7474
format: null,

0 commit comments

Comments
 (0)