Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: remove deprecated list view code (#3894)

gbirmanc413006ed7e9
diff --git a/js/app/packages/app/constants/list-views.ts b/js/app/packages/app/constants/list-views.ts
index 937e1166ad..b483d3db03 100644
--- a/js/app/packages/app/constants/list-views.ts
+++ b/js/app/packages/app/constants/list-views.ts
@@ -1,5 +1,3 @@
-import type { BlockAlias, BlockName } from '@core/block';
-
export const LIST_VIEWS = [
'inbox',
'agents',
@@ -26,10 +24,6 @@ export const LIST_VIEW_PATHS = {
search: '/search',
} as const satisfies Record<ListView, string>;
-const _isListViewPath = (path: string) => {
- return LIST_VIEW_PATHS[path as ListView] !== undefined;
-};
-
export const LIST_VIEW_ID = {
inbox: 'inbox',
agents: 'agents',
@@ -47,27 +41,3 @@ export const isListViewID = (id: string | null | undefined): id is ListView => {
return LIST_VIEWS.includes(id as 'inbox');
};
-
-const BLOCK_LIST_VIEW_MAP = {
- channel: 'channels',
- canvas: 'documents',
- chat: 'agents',
- code: 'documents',
- contact: 'channels',
- csv: 'documents',
- call: 'calls',
- email: 'mail',
- image: 'documents',
- md: 'documents',
- pdf: 'documents',
- project: 'folders',
- task: 'tasks',
- unknown: 'inbox',
- video: 'documents',
- write: 'documents',
- automation: 'agents',
-} as const satisfies Record<BlockName | BlockAlias, ListView>;
-
-const _getBlockListView = (block: BlockName | BlockAlias): ListView => {
- return BLOCK_LIST_VIEW_MAP[block];
-};