sync: features from private repo (2025-12-24)
Synced from ra-h private repo: - Collapsible chat panel (Cmd+\) - FolderViewOverlay with Kanban/Grid/List views - Updated agent prompts - Improved executor and quickAdd services - New views.ts types Files kept at OS versions (auth/backend deps): - SettingsModal, RAHChat, useSSEChat - Delegation tools and wiseRAHExecutor - openExternalUrl (no Tauri) Added stub: supabaseTokenRegistry.ts for compatibility
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
// View system types
|
||||
|
||||
export type ViewType = 'focus' | 'list' | 'kanban' | 'grid';
|
||||
|
||||
export interface ViewFilter {
|
||||
dimension: string;
|
||||
operator: 'includes' | 'excludes';
|
||||
}
|
||||
|
||||
export interface ViewSort {
|
||||
field: 'title' | 'created_at' | 'updated_at' | 'edge_count';
|
||||
direction: 'asc' | 'desc';
|
||||
}
|
||||
|
||||
export interface KanbanColumn {
|
||||
id: string;
|
||||
dimension: string;
|
||||
order: number;
|
||||
}
|
||||
|
||||
export interface ViewConfig {
|
||||
filters: ViewFilter[];
|
||||
filterLogic: 'and' | 'or';
|
||||
sort: ViewSort;
|
||||
// Kanban-specific
|
||||
columns?: KanbanColumn[];
|
||||
}
|
||||
|
||||
export interface SavedView {
|
||||
id: number;
|
||||
name: string;
|
||||
type: ViewType;
|
||||
config: ViewConfig;
|
||||
is_default: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
// Default view configuration
|
||||
export const DEFAULT_VIEW_CONFIG: ViewConfig = {
|
||||
filters: [],
|
||||
filterLogic: 'and',
|
||||
sort: { field: 'updated_at', direction: 'desc' },
|
||||
columns: []
|
||||
};
|
||||
Reference in New Issue
Block a user