From 031f8e66ef7ef094e8b0776596c0182921de02cf Mon Sep 17 00:00:00 2001 From: Lyubov Voloshko Date: Wed, 19 Nov 2025 13:44:23 +0200 Subject: [PATCH 1/2] CSV export: use only primary key value in foreign keys --- .../db-table-view/db-table-view.component.ts | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts b/frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts index 4a817a55d..c5279a681 100644 --- a/frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts +++ b/frontend/src/app/components/dashboard/db-table-view/db-table-view.component.ts @@ -557,12 +557,32 @@ export class DbTableViewComponent implements OnInit { return stringValue; }; + // Check if there's any selection + if (!this.selection.selected || this.selection.selected.length === 0) { + this._notifications.showErrorSnackbar('No rows selected for export'); + return; + } + const header = Object.keys(this.selection.selected[0]); - // Create CSV rows with proper handling of nested objects + // Create CSV rows with proper handling of foreign keys const csv = this.selection.selected.map((row) => header - .map((fieldName) => convertToCSVValue(row[fieldName])) + .map((fieldName) => { + let value = row[fieldName]; + + // Check if this field is a foreign key + if (this.isForeignKey(fieldName) && value && typeof value === 'object') { + // Get the foreign key definition + const foreignKey = this.tableData.foreignKeys[fieldName]; + if (foreignKey) { + // Extract only the primary key value from the foreign key object + value = value[foreignKey.referenced_column_name]; + } + } + + return convertToCSVValue(value); + }) .join(',') ); From d402c2698074c39b0d6e41ab1d43709fd1515365 Mon Sep 17 00:00:00 2001 From: Lyubov Voloshko Date: Wed, 19 Nov 2025 13:51:43 +0200 Subject: [PATCH 2/2] sso page: fix checkbox spacing --- frontend/src/app/components/sso/sso.component.css | 5 +++++ frontend/src/app/components/sso/sso.component.html | 2 ++ 2 files changed, 7 insertions(+) diff --git a/frontend/src/app/components/sso/sso.component.css b/frontend/src/app/components/sso/sso.component.css index 2f28fe0bf..57f73ee0b 100644 --- a/frontend/src/app/components/sso/sso.component.css +++ b/frontend/src/app/components/sso/sso.component.css @@ -7,6 +7,11 @@ width: 100%; } +.samlConfigForm__checkbox { + margin-top: -4px; + margin-bottom: 20px; +} + .ssoPageHeader { margin-bottom: 24px !important; } diff --git a/frontend/src/app/components/sso/sso.component.html b/frontend/src/app/components/sso/sso.component.html index 24d9834bd..4b3479313 100644 --- a/frontend/src/app/components/sso/sso.component.html +++ b/frontend/src/app/components/sso/sso.component.html @@ -71,6 +71,7 @@