mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-180] Add Description column to My libraries / Favorites (#1486)
* [ACS-180] Add Description column to My libraries / Favorites * Fix e2e test * Fix datatable selector * Fix role and visibility selectors * Add description to search library layout * Final fix
This commit is contained in:
parent
7130a5c15c
commit
03b75a5fb3
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
}, {});
|
||||
}
|
||||
|
@ -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",
|
||||
|
@ -236,6 +236,7 @@
|
||||
"COLUMNS": {
|
||||
"ID": "ID",
|
||||
"NAME": "Name",
|
||||
"DESCRIPTION": "Description",
|
||||
"SIZE": "Size",
|
||||
"MODIFIED_ON": "Modified",
|
||||
"MODIFIED_BY": "Modified by",
|
||||
|
Loading…
x
Reference in New Issue
Block a user