mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-27 17:36:25 +02:00
app navigation
This commit is contained in:
parent
8f1adfb6a5
commit
d150294af1
9 changed files with 433 additions and 1 deletions
22
apps/x/packages/shared/src/bases.ts
Normal file
22
apps/x/packages/shared/src/bases.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* Shared types for the Bases view (saved filtered views over the knowledge graph).
|
||||
*/
|
||||
|
||||
export type SortDir = 'asc' | 'desc';
|
||||
|
||||
export interface ActiveFilter {
|
||||
category: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export interface BaseConfig {
|
||||
filters: ActiveFilter[];
|
||||
columns: string[];
|
||||
sort?: { field: string; dir: SortDir };
|
||||
search?: string;
|
||||
}
|
||||
|
||||
export const DEFAULT_BASE_CONFIG: BaseConfig = {
|
||||
filters: [],
|
||||
columns: [],
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue