From 1717517e70f5de571a18d59bde69ed2db9958fea Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 26 Sep 2025 13:47:24 -0700 Subject: [PATCH] Tweakhancement: reorganize some list & bulk editing buttons (#10944) --- .../e2e/document-list/document-list.spec.ts | 2 +- .../bulk-editor/bulk-editor.component.html | 291 +++++++++--------- .../bulk-editor/bulk-editor.component.scss | 4 + .../document-list.component.html | 37 ++- .../document-list/document-list.component.ts | 2 + 5 files changed, 175 insertions(+), 161 deletions(-) diff --git a/src-ui/e2e/document-list/document-list.spec.ts b/src-ui/e2e/document-list/document-list.spec.ts index 45857bb09..0a7b54fcb 100644 --- a/src-ui/e2e/document-list/document-list.spec.ts +++ b/src-ui/e2e/document-list/document-list.spec.ts @@ -174,7 +174,7 @@ test('bulk edit', async ({ page }) => { await expect(page.locator('pngx-document-list')).toHaveText( /Selected 61 of 61 documents/i ) - await page.getByRole('button', { name: 'Cancel' }).click() + await page.getByRole('button', { name: 'None' }).click() await page.locator('pngx-document-card-small').nth(1).click() await page.locator('pngx-document-card-small').nth(2).click() diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html index 0eb655a21..7e499dfd0 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html @@ -1,161 +1,144 @@
-
-
-
- -
-
+
+
+
+ +
+ + + - -
-
- - @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.Tag)) { - - - } - @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.Correspondent)) { - - - } - @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.DocumentType)) { - - - } - @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.StoragePath)) { - - - } - @if (permissionService.currentUserCan(PermissionAction.View, PermissionType.CustomField)) { - - - } +
+
+
+ +
+ +
+
+

Include:

+
+
+ + +
+
+ + +
+
+
+ + +
+
-
-
+
+
- - -
- -
- - - -
-
-
- -
- -
- -
-
-

Include:

-
-
- - -
-
- - -
-
-
- - -
-
-
-
-
- -
- -
-
-
+
+ +
+
+
diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.scss b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.scss index 939f2c790..a5ea35ce4 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.scss +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.scss @@ -5,3 +5,7 @@ .dropdown-menu{ --bs-dropdown-min-width: 12rem; } + +.btn-group .btn { + white-space: nowrap; +} diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index c58d1ede1..a6d23f2a5 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -1,16 +1,36 @@ - -
- -
+
+
+
+ Select: +
+
+ @if (list.selected.size > 0) { + + } + + +
+
- } + + } + @if (!list.isReloading && list.selected.size > 0) { + + }
@if (list.collectionSize) {