CM-355, change modal texts, update common-ui.

This commit is contained in:
George 2023-07-24 12:53:20 +03:00
parent 990c52ad6d
commit 62dc457476
8 changed files with 37 additions and 14 deletions

View File

@ -4,7 +4,10 @@
<hr /> <hr />
<div class="dialog-content"> <div class="dialog-content">
<div *ngIf="rssData() | log as rssEntry" class="table output-data"> <div *ngIf="rssData() | log as rssEntry" class="table output-data">
<div class="table-header" *ngFor="let cell of tableHeaderCells">{{ getHeaderCellTranslation(cell) | translate }}</div> <div class="table-header">{{ 'rss-dialog.table-header.component' | translate }}</div>
<div class="table-header">{{ 'rss-dialog.table-header.value' | translate }}</div>
<div class="table-header">{{ 'rss-dialog.table-header.transformation-rule' | translate }}</div>
<div class="table-header">{{ 'rss-dialog.table-header.annotation-references' | translate }}</div>
<ng-container *ngFor="let entry of rssEntry.result | keyvalue : originalOrder"> <ng-container *ngFor="let entry of rssEntry.result | keyvalue : originalOrder">
<div class="bold">{{ entry.key }}</div> <div class="bold">{{ entry.key }}</div>

View File

@ -1,4 +1,4 @@
import { Component, Inject, OnInit, signal } from '@angular/core'; import { ChangeDetectionStrategy, Component, Inject, OnInit, signal } from '@angular/core';
import { BaseDialogComponent, CircleButtonTypes } from '@iqser/common-ui'; import { BaseDialogComponent, CircleButtonTypes } from '@iqser/common-ui';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { RssService } from '@services/files/rss.service'; import { RssService } from '@services/files/rss.service';
@ -14,6 +14,7 @@ interface RssData {
@Component({ @Component({
templateUrl: './rss-dialog.component.html', templateUrl: './rss-dialog.component.html',
styleUrls: ['./rss-dialog.component.scss'], styleUrls: ['./rss-dialog.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
}) })
export class RssDialogComponent extends BaseDialogComponent implements OnInit { export class RssDialogComponent extends BaseDialogComponent implements OnInit {
readonly circleButtonTypes = CircleButtonTypes; readonly circleButtonTypes = CircleButtonTypes;
@ -21,7 +22,6 @@ export class RssDialogComponent extends BaseDialogComponent implements OnInit {
readonly openStructuredComponentManagementDialogByDefault = signal( readonly openStructuredComponentManagementDialogByDefault = signal(
this.userPreferences.getOpenStructuredComponentManagementDialogByDefault(), this.userPreferences.getOpenStructuredComponentManagementDialogByDefault(),
); );
readonly tableHeaderCells = ['component', 'value', 'transformation-rule', 'annotation-references'] as const;
constructor( constructor(
protected readonly _dialogRef: MatDialogRef<RssDialogComponent>, protected readonly _dialogRef: MatDialogRef<RssDialogComponent>,
@ -37,10 +37,6 @@ export class RssDialogComponent extends BaseDialogComponent implements OnInit {
await this.#loadData(); await this.#loadData();
} }
getHeaderCellTranslation(cell: string) {
return `rss-dialog.table-header.${cell}`;
}
originalOrder = (): number => 0; originalOrder = (): number => 0;
exportJSON() { exportJSON() {

View File

@ -2,7 +2,7 @@
"ADMIN_CONTACT_NAME": null, "ADMIN_CONTACT_NAME": null,
"ADMIN_CONTACT_URL": null, "ADMIN_CONTACT_URL": null,
"API_URL": "https://dev-04.iqser.cloud", "API_URL": "https://dev-04.iqser.cloud",
"APP_NAME": "RedactManager very very very very long", "APP_NAME": "DocuMine",
"IS_DOCUMINE": true, "IS_DOCUMINE": true,
"AUTO_READ_TIME": 3, "AUTO_READ_TIME": 3,
"BACKEND_APP_VERSION": "4.4.40", "BACKEND_APP_VERSION": "4.4.40",
@ -17,8 +17,8 @@
"SELECTION_MODE": "structural", "SELECTION_MODE": "structural",
"MANUAL_BASE_URL": "https://docs.redactmanager.com/preview", "MANUAL_BASE_URL": "https://docs.redactmanager.com/preview",
"ANNOTATIONS_THRESHOLD": 1000, "ANNOTATIONS_THRESHOLD": 1000,
"THEME": "redact", "THEME": "scm",
"BASE_TRANSLATIONS_DIRECTORY": "/assets/i18n/redact/", "BASE_TRANSLATIONS_DIRECTORY": "/assets/i18n/scm/",
"AVAILABLE_NOTIFICATIONS_DAYS": 30, "AVAILABLE_NOTIFICATIONS_DAYS": 30,
"AVAILABLE_OLD_NOTIFICATIONS_MINUTES": 60, "AVAILABLE_OLD_NOTIFICATIONS_MINUTES": 60,
"NOTIFICATIONS_THRESHOLD": 1000, "NOTIFICATIONS_THRESHOLD": 1000,

View File

@ -2132,6 +2132,12 @@
"undo": "" "undo": ""
}, },
"annotations": "", "annotations": "",
"table-header": {
"annotation-references": "",
"component": "",
"transformation-rule": "",
"value": ""
},
"title": "" "title": ""
}, },
"rules-screen": { "rules-screen": {

View File

@ -2132,6 +2132,12 @@
"undo": "Undo" "undo": "Undo"
}, },
"annotations": "", "annotations": "",
"table-header": {
"annotation-references": "",
"component": "",
"transformation-rule": "",
"value": ""
},
"title": "Structured Component Management" "title": "Structured Component Management"
}, },
"rules-screen": { "rules-screen": {

View File

@ -2132,6 +2132,12 @@
"undo": "" "undo": ""
}, },
"annotations": "", "annotations": "",
"table-header": {
"annotation-references": "",
"component": "",
"transformation-rule": "",
"value": ""
},
"title": "" "title": ""
}, },
"rules-screen": { "rules-screen": {

View File

@ -1410,7 +1410,7 @@
"no-data": { "no-data": {
"title": "There have been no changes to this page." "title": "There have been no changes to this page."
}, },
"open-rss-view": "Open Structured Component Management View", "open-rss-view": "Open Component View",
"quick-nav": { "quick-nav": {
"jump-first": "Jump to first page", "jump-first": "Jump to first page",
"jump-last": "Jump to last page" "jump-last": "Jump to last page"
@ -1913,7 +1913,7 @@
"form": { "form": {
"auto-expand-filters-on-action": "Auto expand filters on my actions", "auto-expand-filters-on-action": "Auto expand filters on my actions",
"load-all-annotations-warning": "Warning regarding loading all annotations at once in file preview", "load-all-annotations-warning": "Warning regarding loading all annotations at once in file preview",
"open-structured-view-by-default": "Display structured component management modal by default", "open-structured-view-by-default": "Display component view by default when opening a document",
"show-suggestions-in-preview": "Display suggestions in document preview", "show-suggestions-in-preview": "Display suggestions in document preview",
"unapproved-suggestions-warning": "Warning regarding unapproved suggestions in document Preview mode" "unapproved-suggestions-warning": "Warning regarding unapproved suggestions in document Preview mode"
}, },
@ -2132,7 +2132,13 @@
"undo": "Undo to: {value}" "undo": "Undo to: {value}"
}, },
"annotations": "<strong>{type}</strong> found on {pageCount, plural, one{page} other{pages}} {pages} by rule #{ruleNumber}", "annotations": "<strong>{type}</strong> found on {pageCount, plural, one{page} other{pages}} {pages} by rule #{ruleNumber}",
"title": "Structured Component Management" "table-header": {
"annotation-references": "Annotation references",
"component": "Component",
"transformation-rule": "Transformation rule",
"value": "Value"
},
"title": "Component View"
}, },
"rules-screen": { "rules-screen": {
"error": { "error": {

@ -1 +1 @@
Subproject commit d40f839365d62af8893cb529020702949ffeca33 Subproject commit 7ff7864767e693a74ef1e05c8808847f7b4f0841