diff --git a/e2e/resources/extensibility-configs/info-drawer-ext.json b/e2e/resources/extensibility-configs/info-drawer-ext.json index 0269a7246..cf9a60c28 100644 --- a/e2e/resources/extensibility-configs/info-drawer-ext.json +++ b/e2e/resources/extensibility-configs/info-drawer-ext.json @@ -1340,11 +1340,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-5", + "class": "adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.libraries.role", "key": "role", @@ -1377,11 +1387,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-5", + "class": "adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.favorite.libraries.role", "key": "role", diff --git a/e2e/resources/extensibility-configs/viewer-ext.json b/e2e/resources/extensibility-configs/viewer-ext.json index 8f4a607a6..e11a53536 100644 --- a/e2e/resources/extensibility-configs/viewer-ext.json +++ b/e2e/resources/extensibility-configs/viewer-ext.json @@ -1375,11 +1375,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-5", + "class": "adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.libraries.role", "key": "role", @@ -1412,11 +1422,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-expand-cell-5", + "class": "adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.favorite.libraries.role", "key": "role", diff --git a/e2e/suites/list-views/file-libraries.test.ts b/e2e/suites/list-views/file-libraries.test.ts index 852b4203a..bc2989fe9 100755 --- a/e2e/suites/list-views/file-libraries.test.ts +++ b/e2e/suites/list-views/file-libraries.test.ts @@ -107,7 +107,7 @@ describe('File Libraries', () => { }); it('[C217095] has the correct columns', async () => { - const expectedColumns = [ 'Name', 'My Role', 'Visibility' ]; + const expectedColumns = [ 'Name', 'Description', 'My Role', 'Visibility' ]; const actualColumns = await dataTable.getColumnHeadersText(); expect(actualColumns).toEqual(expectedColumns); @@ -176,7 +176,7 @@ describe('File Libraries', () => { }); it('[C289893] has the correct columns', async () => { - const expectedColumns = [ 'Name', 'My Role', 'Visibility' ]; + const expectedColumns = [ 'Name', 'Description', 'My Role', 'Visibility' ]; const actualColumns = await dataTable.getColumnHeadersText(); expect(actualColumns).toEqual(expectedColumns); diff --git a/e2e/suites/search/search-results-libraries.test.ts b/e2e/suites/search/search-results-libraries.test.ts index 7c9bd6fe6..ad3bae632 100644 --- a/e2e/suites/search/search-results-libraries.test.ts +++ b/e2e/suites/search/search-results-libraries.test.ts @@ -176,7 +176,7 @@ describe('Search results - libraries', () => { await searchInput.searchFor(site1.name); await dataTable.waitForBody(); - const expectedColumns = [ 'Name', 'My Role', 'Visibility' ]; + const expectedColumns = [ 'Name', 'Description', 'My Role', 'Visibility' ]; const actualColumns = await dataTable.getColumnHeadersText(); expect(actualColumns).toEqual(expectedColumns); diff --git a/projects/aca-testing-shared/src/components/data-table/data-table.ts b/projects/aca-testing-shared/src/components/data-table/data-table.ts index 53d337bd9..f427da562 100755 --- a/projects/aca-testing-shared/src/components/data-table/data-table.ts +++ b/projects/aca-testing-shared/src/components/data-table/data-table.ts @@ -438,7 +438,7 @@ export class DataTable extends Component { async getSitesNameAndVisibility(): Promise<{}> { const data = await this.getEntireDataTableText(); return data.reduce((acc, cell) => { - acc[cell[1]] = cell[3].toUpperCase(); + acc[cell[1]] = cell[4].toUpperCase(); return acc; }, {}); } @@ -446,7 +446,7 @@ export class DataTable extends Component { async getSitesNameAndRole(): Promise<{}> { const data = await this.getEntireDataTableText(); return data.reduce((acc, cell) => { - acc[cell[1]] = cell[2]; + acc[cell[1]] = cell[3]; return acc; }, {}); } diff --git a/src/assets/app.extensions.json b/src/assets/app.extensions.json index 3dcab100b..71ea02611 100644 --- a/src/assets/app.extensions.json +++ b/src/assets/app.extensions.json @@ -1180,11 +1180,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-ellipsis-cell adf-expand-cell-5", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.libraries.role", "key": "role", @@ -1219,11 +1229,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-ellipsis-cell adf-expand-cell-5", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.favorite.libraries.role", "key": "role", @@ -1477,11 +1497,21 @@ "key": "title", "title": "APP.DOCUMENT_LIST.COLUMNS.NAME", "type": "text", - "class": "adf-ellipsis-cell adf-expand-cell-5", + "class": "adf-ellipsis-cell adf-expand-cell-3", "sortable": true, "template": "app.columns.libraryName", "desktopOnly": false }, + { + "id": "app.favorite.libraries.description", + "key": "description", + "title": "APP.DOCUMENT_LIST.COLUMNS.DESCRIPTION", + "type": "text", + "class": "adf-ellipsis-cell adf-expand-cell-5", + "sortable": true, + "template": "app.columns.libraryDescription", + "desktopOnly": true + }, { "id": "app.libraries.role", "key": "role", diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index cfcd50a6a..8a8befdd9 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -236,6 +236,7 @@ "COLUMNS": { "ID": "ID", "NAME": "Name", + "DESCRIPTION": "Description", "SIZE": "Size", "MODIFIED_ON": "Modified", "MODIFIED_BY": "Modified by",