From 0d7adb4e6b7c9fd869c450d70f2a978d0c097cf2 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Mon, 12 Aug 2024 11:12:31 +0300 Subject: [PATCH] RED-9777: added help mode missing links. --- .../admin-side-nav.component.ts | 4 + ...sier-overview-screen-header.component.html | 2 +- ...-structured-component-value.component.html | 8 +- ...-structured-component-value.component.scss | 5 ++ ...le-structured-component-value.component.ts | 6 +- .../file-workload.component.html | 4 +- ...ctured-component-management.component.html | 6 +- .../edit-annotation-dialog.component.html | 2 +- .../remove-annotation-dialog.component.html | 4 +- .../dossiers-listing-actions.component.html | 2 +- .../dossiers-listing-actions.component.ts | 3 +- .../file-actions/file-actions.component.ts | 2 +- .../src/assets/help-mode/help-mode-keys.json | 86 +++++++++++++++++++ 13 files changed, 119 insertions(+), 15 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/shared/components/admin-side-nav/admin-side-nav.component.ts b/apps/red-ui/src/app/modules/admin/shared/components/admin-side-nav/admin-side-nav.component.ts index e724280e4..6f619125f 100644 --- a/apps/red-ui/src/app/modules/admin/shared/components/admin-side-nav/admin-side-nav.component.ts +++ b/apps/red-ui/src/app/modules/admin/shared/components/admin-side-nav/admin-side-nav.component.ts @@ -96,11 +96,13 @@ export class AdminSideNavComponent implements OnInit { { screen: 'entity-rules', label: _('admin-side-nav.entity-rule-editor'), + helpModeKey: 'rule_editors', show: (this.isIqserDevMode || this.canAccessRulesInDocumine) && this._permissionsService.has(Roles.rules.read), }, { screen: 'component-rules', label: _('admin-side-nav.component-rule-editor'), + helpModeKey: 'rule_editors', show: this.isDocumine && (this.isIqserDevMode || this.canAccessRulesInDocumine) && @@ -109,11 +111,13 @@ export class AdminSideNavComponent implements OnInit { { screen: 'component-mappings', label: _('admin-side-nav.component-mappings'), + helpModeKey: 'component_mappings', show: this.isDocumine, }, { screen: 'components', label: _('admin-side-nav.components'), + helpModeKey: 'components_management', show: this.isDocumine, }, { diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/screen-header/dossier-overview-screen-header.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/screen-header/dossier-overview-screen-header.component.html index 135e63064..5e45b10fa 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/screen-header/dossier-overview-screen-header.component.html +++ b/apps/red-ui/src/app/modules/dossier-overview/components/screen-header/dossier-overview-screen-header.component.html @@ -7,7 +7,7 @@ > @if (hasUpdatedValues) { @@ -26,17 +28,19 @@
-
+
@@ -56,6 +60,7 @@ diff --git a/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.scss b/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.scss index 3ee2c0515..0246ffeb3 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.scss +++ b/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.scss @@ -29,6 +29,11 @@ iqser-circle-button { visibility: hidden; + + &.help-mode { + visibility: visible; + z-index: 600; + } } .changes-dot { diff --git a/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.ts b/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.ts index 90dd06fc8..5617d84e0 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/editable-structured-component-value/editable-structured-component-value.component.ts @@ -1,9 +1,9 @@ import { CdkDrag, CdkDragDrop, CdkDragHandle, CdkDropList, moveItemInArray } from '@angular/cdk/drag-drop'; -import { KeyValuePipe, NgClass, NgForOf, NgIf } from '@angular/common'; +import { AsyncPipe, KeyValuePipe, NgClass, NgForOf, NgIf } from '@angular/common'; import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { MatIcon } from '@angular/material/icon'; -import { CircleButtonComponent, IconButtonComponent, IconButtonTypes, IqserDialog } from '@iqser/common-ui'; +import { CircleButtonComponent, HelpModeService, IconButtonComponent, IconButtonTypes, IqserDialog } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { IComponentLogEntry, IComponentValue } from '@red/domain'; import { RevertValueDialogComponent } from '../../dialogs/docu-mine/revert-value-dialog/revert-value-dialog.component'; @@ -27,6 +27,7 @@ import { FilePreviewStateService } from '../../services/file-preview-state.servi NgForOf, CdkDragHandle, FormsModule, + AsyncPipe, ], }) export class EditableStructuredComponentValueComponent implements OnInit { @@ -43,6 +44,7 @@ export class EditableStructuredComponentValueComponent implements OnInit { selected = false; constructor( + readonly helpModeService: HelpModeService, private readonly _iqserDialog: IqserDialog, private readonly _state: FilePreviewStateService, ) {} diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html index 531d15776..f5cc9ecf5 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html @@ -246,7 +246,7 @@ - + @@ -254,7 +254,7 @@ - - + +
-
+
{{ 'component-management.table-header.component' | translate }}
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/edit-annotation-dialog/edit-annotation-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/edit-annotation-dialog/edit-annotation-dialog.component.html index 47979cbd3..9c1f26c13 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/edit-annotation-dialog/edit-annotation-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/edit-annotation-dialog/edit-annotation-dialog.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/remove-annotation-dialog/remove-annotation-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/remove-annotation-dialog/remove-annotation-dialog.component.html index 3d7fe1b1c..1cef8cb15 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/remove-annotation-dialog/remove-annotation-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/docu-mine/remove-annotation-dialog/remove-annotation-dialog.component.html @@ -1,4 +1,4 @@ -
+
(); + readonly isDocumine = getConfig().IS_DOCUMINE; analysisForced: boolean; files: File[]; diff --git a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts index 60c37c090..19a721f98 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts @@ -128,7 +128,7 @@ export class FileActionsComponent implements OnChanges { tooltipClass: 'small', show: this.showDownload, disabled: this.file.processingStatus === ProcessingFileStatuses.ERROR, - helpModeKey: 'download', + helpModeKey: this.#isDocumine ? 'download_document' : 'download', }, { id: 'btn-delete_file', diff --git a/apps/red-ui/src/assets/help-mode/help-mode-keys.json b/apps/red-ui/src/assets/help-mode/help-mode-keys.json index bab5118aa..06209d4b4 100644 --- a/apps/red-ui/src/assets/help-mode/help-mode-keys.json +++ b/apps/red-ui/src/assets/help-mode/help-mode-keys.json @@ -651,6 +651,11 @@ "documentKey": "workload_filter", "overlappingElements": ["USER_MENU", "DOCUMENT_INFO"] }, + { + "elementKey": "filter_annotations", + "documentKey": "filter_annotations", + "overlappingElements": ["USER_MENU", "DOCUMENT_INFO"] + }, { "elementKey": "workload_bulk_selection", "documentKey": "workload_bulk_selection", @@ -692,5 +697,86 @@ { "elementKey": "document_list_view", "documentKey": "document_list" + }, + { + "elementKey": "editor_edit_component", + "documentKey": "editor_edit_component", + "scrollableParentView": "COMPONENTS_VIEW" + }, + { + "elementKey": "edit_component", + "documentKey": "edit_component" + }, + { + "elementKey": "add_component_value", + "documentKey": "add_component_value" + }, + { + "elementKey": "undo_component_change", + "documentKey": "undo_component_change" + }, + { + "elementKey": "change_component_order", + "documentKey": "change_component_order" + }, + { + "elementKey": "remove_component_value", + "documentKey": "remove_component_value" + }, + { + "elementKey": "filter_components", + "documentKey": "filter_components" + }, + { + "elementKey": "annotations_list", + "documentKey": "annotations_list" + }, + { + "elementKey": "components_table", + "documentKey": "components_table" + }, + { + "elementKey": "components_table", + "documentKey": "components_table" + }, + { + "elementKey": "remove_annotation_DIALOG", + "documentKey": "remove_annotation" + }, + { + "elementKey": "edit_annotation_DIALOG", + "documentKey": "edit_annotation" + }, + { + "elementKey": "dossier_download_dossier", + "documentKey": "dossier_download_dossier", + "overlappingElements": ["USER_MENU"] + }, + { + "elementKey": "dossier_download_document", + "documentKey": "dossier_download_document", + "scrollableParentView": "VIRTUAL_SCROLL" + }, + { + "elementKey": "template_download_dossier", + "documentKey": "template_download_dossier", + "scrollableParentView": "VIRTUAL_SCROLL" + }, + { + "elementKey": "editor_download_document", + "documentKey": "editor_download_document", + "overlappingElements": ["USER_MENU"] + }, + { + "elementKey": "rule_editors", + "documentKey": "rule_editors" + }, + { + "elementKey": "component_mappings", + "documentKey": "component_mappings" + }, + { + "elementKey": "components_management", + "documentKey": "components_management" } ]