import { BaseModel } from 'verben-workflow-ui/src/lib/models'; import { SearchPropertyValue } from './api-payload'; /** * Per-user, per-page saved UI configuration (saved filters, column arrangement, * last table/card view). Built here and persisted through the host app's * UTIL_SERVICE, which stamps ownership (PageOwner) and talks to the backend. */ export interface PageFilterTabOption extends BaseModel { /** UI identifier for the page (matches the host's UIs value). */ UIRoute: string; /** Owner (logged-in user) — stamped by the host on save. */ PageOwner?: string; /** Last view. `true` = card, `false` = table (i.e. `!isTableView`). */ IsCardView: boolean; /** Ordered identifiers of the visible columns (`column.id`). */ VisibleColumns: string[]; /** Saved filters already in the API filter shape. */ SavedFilters: SearchPropertyValue[]; }