Customizable dashboard views

This commit is contained in:
shamoon
2024-04-16 20:19:58 -07:00
parent 7a0334f353
commit 38e79aa1d9
13 changed files with 452 additions and 72 deletions

View File

@@ -1,6 +1,21 @@
import { FilterRule } from './filter-rule'
import { ObjectWithPermissions } from './object-with-permissions'
export enum DashboardViewMode {
TABLE = 'table',
SMALL_CARDS = 'small_cards',
}
export enum DashboardViewTableColumn {
TITLE = 'title',
CREATED = 'created',
ADDED = 'added',
TAGS = 'tag',
CORRESPONDENT = 'correspondent',
DOCUMENT_TYPE = 'documenttype',
STORAGE_PATH = 'storagepath',
}
export interface SavedView extends ObjectWithPermissions {
name?: string
@@ -13,4 +28,10 @@ export interface SavedView extends ObjectWithPermissions {
sort_reverse: boolean
filter_rules: FilterRule[]
dashboard_view_limit?: number
dashboard_view_mode?: DashboardViewMode
dashboard_view_table_columns?: DashboardViewTableColumn[]
}