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
Get rid of bento (#848)
Jacob Beckermanb04292f06d43
diff --git a/js/app/packages/app/component/Layout.tsx b/js/app/packages/app/component/Layout.tsxindex 528ac10fea..aec791cef5 100644--- a/js/app/packages/app/component/Layout.tsx+++ b/js/app/packages/app/component/Layout.tsx@@ -3,7 +3,6 @@ import { useIsAuthenticated } from '@core/auth';import { Resize } from '@core/component/Resize';import { useABTest } from '@core/constant/ABTest';import { usePaywallState } from '@core/constant/PaywallState';-import { isTouchDevice } from '@core/mobile/isTouchDevice';import { isMobileWidth } from '@core/mobile/mobileWidth';import {LAYOUT_CONTEXT_ID,@@ -16,7 +15,6 @@ import { updateCookie } from '../util/updateCookie';import Banner from './banner/Banner';import { GlobalBulkEditEntityModal } from './bulk-edit-entity/BulkEditEntityModal';import { KommandMenu } from './command/Konsole';-import { Dock } from './dock/Dock';import GlobalShortcuts from './GlobalHotkeys';import { ItemDndProvider } from './ItemDragAndDrop';import { createMenuOpen, Launcher, setCreateMenuOpen } from './Launcher';@@ -147,9 +145,9 @@ export function Layout(props: RouteSectionProps) {<Show when={paywallOpen()}><Paywall /></Show>- <div class="p-[var(--gutter-size)] touch:mobile-width:p-0 grow-1">+ <div class="grow-1"><Resize.Zone- gutter={8}+ gutter={4}direction="horizontal"class="flex-1 w-full min-h-0 font-sans text-ink caret-accent"id={'main-layout'}@@ -167,9 +165,6 @@ export function Layout(props: RouteSectionProps) {<Showwhen={isAuthenticated() && !AUTH_URLS.includes(location.pathname)}>- <Show when={!isTouchDevice() || !isMobileWidth()}>- <Dock />- </Show><Launcher open={createMenuOpen()} onOpenChange={setCreateMenuOpen} /></Show></Suspense>diff --git a/js/app/packages/app/component/split-layout/SplitLayout.tsx b/js/app/packages/app/component/split-layout/SplitLayout.tsxindex f3a35732c1..dcb0575d23 100644--- a/js/app/packages/app/component/split-layout/SplitLayout.tsx+++ b/js/app/packages/app/component/split-layout/SplitLayout.tsx@@ -19,7 +19,6 @@ import {Suspense,} from 'solid-js';import { Dynamic } from 'solid-js/web';-import { gutterSize } from '../../../block-theme/signals/themeSignals';import {createNavigationEntityListShortcut,createSoupContext,@@ -307,7 +306,7 @@ export function SplitLayoutContainer(props: SplitLayoutContainerProps) {<SplitLayoutContext.Provider value={{ manager: splitManager }}><Resize.Zonedirection="horizontal"- gutter={gutterSize()}+ gutter={4}captureResizeCtx={splitManager.setResizeContext}><For each={ids()}>diff --git a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx b/js/app/packages/app/component/split-layout/components/SplitContainer.tsxindex 563906208c..6c91454f47 100644--- a/js/app/packages/app/component/split-layout/components/SplitContainer.tsx+++ b/js/app/packages/app/component/split-layout/components/SplitContainer.tsx@@ -1,10 +1,7 @@import MacroJump from '@app/component/MacroJump';import { MobileDock } from '@app/component/mobile/MobileDock';-import { globalSplitManager } from '@app/signal/splitLayout';-import { ClippedPanel } from '@core/component/ClippedPanel';import { isTouchDevice } from '@core/mobile/isTouchDevice';import { isMobileWidth } from '@core/mobile/mobileWidth';-import { isRightPanelOpen, isSettingsPanelOpen } from '@core/signal/layout';import { createElementSize } from '@solid-primitives/resize-observer';import {type Accessor,@@ -56,11 +53,6 @@ export function SplitContainer(return offset;});- function multipleSplits() {- const splits = globalSplitManager()?.splits?.();- return Boolean(splits && splits.length > 1);- }-return (<SplitModalProvider><SplitDrawerGroup@@ -72,7 +64,7 @@ export function SplitContainer(class="fixed inset-0 w-screen h-screen z-modal-overlay bg-modal-overlay pattern-diagonal-4 pattern-edge-muted"onClick={() => panel.handle.toggleSpotlight(false)}/>- <div class="fixed inset-[4rem] bg-panel shadow-xl rounded-tl-[1.5rem]" />+ <div class="fixed inset-[4rem] bg-panel shadow-xl" /></Show><div@@ -94,34 +86,19 @@ export function SplitContainer(data-modal={panel.handle.isSpotLight()}tabindex={-1}>- <ClippedPanel- active={- panel.handle.isActive() &&- multipleSplits() &&- !panel.handle.isSpotLight()- }- tr={- panel.handle.isLast() &&- !isRightPanelOpen() &&- !isSettingsPanelOpen() &&- !panel.handle.isSpotLight()- }- tl={panel.handle.isFirst() && !panel.handle.isSpotLight()}- >- <div class="flex flex-col min-h-0 size-full">- <SplitHeader ref={setHeaderRef} />- <SplitToolbar ref={setToolbarRef} />- <div class="@container/split size-full overflow-hidden">- {props.children}- </div>- <Show when={panel.handle.isSpotLight()}>- <MacroJump tabbableParent={ref} />- </Show>- <Show when={isTouchDevice() && isMobileWidth()}>- <MobileDock />- </Show>+ <div class="flex flex-col min-h-0 size-full bg-panel">+ <SplitHeader ref={setHeaderRef} />+ <SplitToolbar ref={setToolbarRef} />+ <div class="@container/split size-full overflow-hidden">+ {props.children}</div>- </ClippedPanel>+ <Show when={panel.handle.isSpotLight()}>+ <MacroJump tabbableParent={ref} />+ </Show>+ <Show when={isTouchDevice() && isMobileWidth()}>+ <MobileDock />+ </Show>+ </div></div></SplitDrawerGroup></SplitModalProvider>@@ -155,7 +132,7 @@ export function SplitlikeContainer(</Show><div- class="@container/split flex flex-col min-h-0 bracket-never"+ class="@container/split flex flex-col min-h-0 bracket-never bg-panel"classList={{'fixed inset-[4rem] z-modal isolate': props.spotlight(),'size-full': !props.spotlight(),@@ -164,15 +141,7 @@ export function SplitlikeContainer(tabindex={-1}ref={setPanel}>- <ClippedPanel- active={props.active}- tl={props.tl}- tr={props.tr}- bl={props.bl}- br={props.br}- >- <div class="size-full">{props.children}</div>- </ClippedPanel>+ <div class="size-full">{props.children}</div></div></SplitDrawerGroup></SplitModalProvider>