Skip to content

Commit 4b88263

Browse files
authored
s3 widget image support (#1491)
1 parent f2503a0 commit 4b88263

16 files changed

Lines changed: 1165 additions & 934 deletions

File tree

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
export interface S3WidgetParams {
2-
bucket: string;
3-
prefix?: string;
4-
region?: string;
5-
aws_access_key_id_secret_name: string;
6-
aws_secret_access_key_secret_name: string;
2+
bucket: string;
3+
prefix?: string;
4+
region?: string;
5+
aws_access_key_id_secret_name: string;
6+
aws_secret_access_key_secret_name: string;
7+
type?: 'file' | 'image'; // 'file' (default) - accepts all files, 'image' - accepts only images
78
}

frontend/src/app/components/dashboard/db-table-view/db-table-row-view/db-table-row-view.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ <h2 class="mat-heading-2 row-preview-sidebar__title">Preview</h2>
9999
[ndcDynamicInputs]="{
100100
key: column.title,
101101
value: selectedRow.record[column.title],
102-
widgetStructure: selectedRow.widgets[column.title]
102+
widgetStructure: selectedRow.widgets[column.title],
103+
rowData: selectedRow.record,
104+
primaryKeys: selectedRow.primaryKeys
103105
}">
104106
</ndc-dynamic>
105107
<ng-template #simpleValue>

frontend/src/app/components/dashboard/db-table-view/db-table-view.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ <h2 class="mat-h2 table-name">{{ displayName }}</h2>
254254
[ndcDynamicInputs]="{
255255
key: i,
256256
value: element[column],
257-
widgetStructure: tableData.widgets[column]
257+
widgetStructure: tableData.widgets[column],
258+
rowData: element,
259+
primaryKeys: tableData.keyAttributes
258260
}"
259261
[ndcDynamicOutputs]="{
260262
onCopyToClipboard: { handler: showCopyNotification, args: ['$event'] }

0 commit comments

Comments
 (0)