A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Tweak: add saved views hint to dashboard
shamoon94556a26079e
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlfindex 2f6a515be..67e8be0fc 100644--- a/src-ui/messages.xlf+++ b/src-ui/messages.xlf@@ -6185,32 +6185,39 @@<context context-type="linenumber">43</context></context-group></trans-unit>+ <trans-unit id="4524189418954028091" datatype="html">+ <source>Hint: saved views can be created from the <x id="START_LINK" ctype="x-a" equiv-text="<a routerLink="/documents">"/>documents list<x id="CLOSE_LINK" ctype="x-a" equiv-text="</a>"/></source>+ <context-group purpose="location">+ <context context-type="sourcefile">src/app/components/dashboard/dashboard.component.html</context>+ <context context-type="linenumber">42</context>+ </context-group>+ </trans-unit><trans-unit id="6581372518205328477" datatype="html"><source>Hello <x id="PH" equiv-text="this.settingsService.displayName"/>, welcome to <x id="PH_1" equiv-text="environment.appTitle"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/dashboard.component.ts</context>- <context context-type="linenumber">57</context>+ <context context-type="linenumber">61</context></context-group></trans-unit><trans-unit id="2901300640157872718" datatype="html"><source>Welcome to <x id="PH" equiv-text="environment.appTitle"/></source><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/dashboard.component.ts</context>- <context context-type="linenumber">59</context>+ <context context-type="linenumber">63</context></context-group></trans-unit><trans-unit id="1325877348738783391" datatype="html"><source>Dashboard updated</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/dashboard.component.ts</context>- <context context-type="linenumber">90</context>+ <context context-type="linenumber">94</context></context-group></trans-unit><trans-unit id="3214475953924351473" datatype="html"><source>Error updating dashboard</source><context-group purpose="location"><context context-type="sourcefile">src/app/components/dashboard/dashboard.component.ts</context>- <context context-type="linenumber">93</context>+ <context context-type="linenumber">97</context></context-group></trans-unit><trans-unit id="2946624699882754313" datatype="html">diff --git a/src-ui/src/app/components/dashboard/dashboard.component.html b/src-ui/src/app/components/dashboard/dashboard.component.htmlindex 99c725802..c42fc82eb 100644--- a/src-ui/src/app/components/dashboard/dashboard.component.html+++ b/src-ui/src/app/components/dashboard/dashboard.component.html@@ -34,6 +34,17 @@}<ng-container *pngxIfPermissions="{ action: PermissionAction.View, type: PermissionType.SavedView }">+ @if (!settingsService.offerTour() && savedViewService.allViews.length === 0) {+ <div class="col">+ <div class="card shadow-sm bg-light opacity-50">+ <div class="card-body">+ <div class="text-center">+ <p class="mb-0 fst-italic"><i-bs name="info-circle" class="me-2"></i-bs><ng-container i18n>Hint: saved views can be created from the <a routerLink="/documents">documents list</a></ng-container></p>+ </div>+ </div>+ </div>+ </div>+ }@for (v of dashboardViews; track v.id) {<div class="col"><pngx-saved-view-widgetdiff --git a/src-ui/src/app/components/dashboard/dashboard.component.spec.ts b/src-ui/src/app/components/dashboard/dashboard.component.spec.tsindex 2ff5eab78..31f4379e8 100644--- a/src-ui/src/app/components/dashboard/dashboard.component.spec.ts+++ b/src-ui/src/app/components/dashboard/dashboard.component.spec.ts@@ -105,6 +105,7 @@ describe('DashboardComponent', () => {results: saved_views,}),dashboardViews: saved_views.filter((v) => v.show_on_dashboard),+ allViews: saved_views,},},provideHttpClient(withInterceptorsFromDi()),diff --git a/src-ui/src/app/components/dashboard/dashboard.component.ts b/src-ui/src/app/components/dashboard/dashboard.component.tsindex 94637ba0f..5a0f6c69d 100644--- a/src-ui/src/app/components/dashboard/dashboard.component.ts+++ b/src-ui/src/app/components/dashboard/dashboard.component.ts@@ -6,6 +6,8 @@ import {moveItemInArray,} from '@angular/cdk/drag-drop'import { Component } from '@angular/core'+import { RouterModule } from '@angular/router'+import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'import { TourNgBootstrapModule, TourService } from 'ngx-ui-tour-ng-bootstrap'import { SavedView } from 'src/app/data/saved-view'import { IfPermissionsDirective } from 'src/app/directives/if-permissions.directive'@@ -35,6 +37,8 @@ import { WelcomeWidgetComponent } from './widgets/welcome-widget/welcome-widget.IfPermissionsDirective,DragDropModule,TourNgBootstrapModule,+ NgxBootstrapIconsModule,+ RouterModule,],})export class DashboardComponent extends ComponentWithPermissions {