From 3094a0b55c1c22acf138e5216081e3cceef75a17 Mon Sep 17 00:00:00 2001 From: Florian Chabert <65234487+FloDevelops@users.noreply.github.com> Date: Tue, 6 Jan 2026 13:32:47 -0500 Subject: [PATCH 1/2] feat: add external table configuration details to table_details --- .../table_details/table_details.html | 10 ++++ .../components/table_details/table_details.js | 46 +++++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/src/app/components/table_details/table_details.html b/src/app/components/table_details/table_details.html index c6c9198ca..674f39709 100644 --- a/src/app/components/table_details/table_details.html +++ b/src/app/components/table_details/table_details.html @@ -39,6 +39,16 @@
Details
+
+
+
+
{{ item.name }}
+
{{ item.value }}
+
{{ item.value }}
+
+
+
diff --git a/src/app/components/table_details/table_details.js b/src/app/components/table_details/table_details.js index 58a4c8325..07fecdd2b 100644 --- a/src/app/components/table_details/table_details.js +++ b/src/app/components/table_details/table_details.js @@ -19,6 +19,7 @@ angular scope.details = []; scope.extended = []; + scope.external = []; scope.exclude = scope.exclude || []; scope.meta = null; scope._show_expanded = false; @@ -181,6 +182,50 @@ angular return mapped; } + function getExternalTablesInfo(external) { + if (!external || _.isEmpty(external)) { + return []; + } + + var result = []; + _.each(external, function(value, key) { + if (value === null || value === undefined) { + return; + } + + if (key === 'options' && typeof value === 'object') { + // Expand options into separate rows + _.each(value, function(optValue, optKey) { + if (optValue !== null && optValue !== undefined) { + result.push({ + name: 'Option: ' + optKey, + value: String(optValue), + isUrl: false + }); + } + }); + } else if (typeof value === 'object') { + // For other objects, stringify them + var stringValue = JSON.stringify(value); + if (stringValue !== '{}' && stringValue !== '[]') { + result.push({ + name: key, + value: stringValue, + isUrl: false + }); + } + } else { + result.push({ + name: key, + value: String(value), + isUrl: key === 'location' && typeof value === 'string' && value.match(/^https?:\/\//) + }); + } + }); + + return result; + } + scope.$watch("model", function(nv, ov) { var get_type = _.property(['metadata', 'type']) var rel_type = get_type(nv); @@ -190,6 +235,7 @@ angular scope.details = getBaseStats(nv); scope.extended = getExtendedStats(nv.stats); + scope.external = getExternalTablesInfo(nv.external); if (scope.extras) { var extrasToAdd = _.filter(scope.extras, function(extra) { From f8211ddc89947dac2b746aafe79e9fdaaa521774 Mon Sep 17 00:00:00 2001 From: Florian Chabert <65234487+FloDevelops@users.noreply.github.com> Date: Tue, 6 Jan 2026 13:53:43 -0500 Subject: [PATCH 2/2] chore: add changelog entry --- .changes/unreleased/Docs-20260106-135315.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/unreleased/Docs-20260106-135315.yaml diff --git a/.changes/unreleased/Docs-20260106-135315.yaml b/.changes/unreleased/Docs-20260106-135315.yaml new file mode 100644 index 000000000..88c235fca --- /dev/null +++ b/.changes/unreleased/Docs-20260106-135315.yaml @@ -0,0 +1,6 @@ +kind: Docs +body: Add external table configuration details to source table_details +time: 2026-01-06T13:53:15.813385-05:00 +custom: + Author: portalhacker + Issue: "572"