Enhancement: updated private tags UX (#14870)

This commit is contained in:
shamoon authored and GitHub committed 2026-11-27 04:55:27 +00:00
1 parent e116b3e7ac
commit b6247d0602
23 files changed
+437 -54

No files matched your search

@@ -76,9 +76,13 @@
}
}
@case (DisplayField.TAGS) {
@for (tagID of doc.tags | collapseTags | async; track tagID) {
@let tags = doc.tags | displayTags | async;
@for (tagID of tags?.visible; track tagID) {
<pngx-tag [tagID]="tagID" [split]="true" class="ms-1 fs-6" (click)="clickTag(tagID, $event)" (parentClick)="clickTag($event)" [clickable]="true" linkTitle="Filter by tag" i18n-title></pngx-tag>
}
@if (tags?.hidden.length) {
<pngx-hidden-tags-badge [count]="tags.hidden.length" class="ms-1 fs-6"></pngx-hidden-tags-badge>
}
}
@case (DisplayField.DOCUMENT_TYPE) {
@if (doc.document_type) {
@@ -1,3 +1,4 @@
import { HiddenTagsBadgeComponent } from 'src/app/components/common/hidden-tags-badge/hidden-tags-badge.component'
import { AsyncPipe, NgClass, NgStyle } from '@angular/common'
import {
Component,
@@ -38,7 +39,7 @@ import {
} from 'src/app/data/filter-rule-type'
import { SavedView } from 'src/app/data/saved-view'
import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'
import { CollapseTagsPipe } from 'src/app/pipes/collapse-tags.pipe'
import { DisplayTagsPipe } from 'src/app/pipes/display-tags.pipe'
import { CorrespondentNamePipe } from 'src/app/pipes/correspondent-name.pipe'
import { CustomDatePipe } from 'src/app/pipes/custom-date.pipe'
import { DocumentTitlePipe } from 'src/app/pipes/document-title.pipe'
@@ -76,7 +77,8 @@ import { WidgetFrameComponent } from '../widget-frame/widget-frame.component'
DocumentTypeNamePipe,
StoragePathNamePipe,
AsyncPipe,
CollapseTagsPipe,
DisplayTagsPipe,
HiddenTagsBadgeComponent,
DocumentTitlePipe,
CustomDatePipe,
NgClass,