Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
Make `All` the last tab not the first one (#143)
Jacob Beckermanac812480e214
diff --git a/js/app/packages/app/component/ViewConfig.tsx b/js/app/packages/app/component/ViewConfig.tsxindex dfaa5c5ca8..229be93da2 100644--- a/js/app/packages/app/component/ViewConfig.tsx+++ b/js/app/packages/app/component/ViewConfig.tsx@@ -143,20 +143,6 @@ export const PROJECT_VIEWCONFIG_BASE: ViewConfigBase = {};const ALL_VIEWCONFIG_DEFAULTS = {- all: {- view: 'all',- sort: {- sortBy: 'viewed_at',- },- hotkeyOptions: {- e: (entity: EntityData) => {- if (entity.type === 'email') {- archiveEmail(entity.id, { isDone: entity.done });- }- return true;- },- },- },inbox: {view: 'inbox',filters: {@@ -247,6 +233,20 @@ const ALL_VIEWCONFIG_DEFAULTS = {typeFilter: ['project'],},},+ all: {+ view: 'all',+ sort: {+ sortBy: 'viewed_at',+ },+ hotkeyOptions: {+ e: (entity: EntityData) => {+ if (entity.type === 'email') {+ archiveEmail(entity.id, { isDone: entity.done });+ }+ return true;+ },+ },+ },} satisfies Record<View, Omit<DeepPartial<ViewConfigEnhanced>, 'id'>>;export const VIEWCONFIG_DEFAULTS = Object.fromEntries(diff --git a/js/app/packages/core/types/view.ts b/js/app/packages/core/types/view.tsindex fd6858abb0..44375363e2 100644--- a/js/app/packages/core/types/view.ts+++ b/js/app/packages/core/types/view.ts@@ -16,13 +16,13 @@ export type ConditionalView = (typeof CONDITIONAL_VIEWS)[number];export type View = DefaultView | ConditionalView;const VIEW_DEFINITIONS: Array<{ key: View; disabled?: boolean }> = [- { key: 'all' },{ key: 'inbox' },{ key: 'emails', disabled: !ENABLE_EMAIL_VIEW },{ key: 'comms' },{ key: 'docs' },{ key: 'ai' },{ key: 'folders' },+ { key: 'all' },];export const VIEWS = VIEW_DEFINITIONS.filter((v) => !v.disabled).map(