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
fix[mobile]: clean settings (#1768)
Peter Chinmanbc4181db39fd
diff --git a/js/app/packages/app/component/settings/Inbox.tsx b/js/app/packages/app/component/settings/Inbox.tsxdeleted file mode 100644index 69aaf452cd..0000000000--- a/js/app/packages/app/component/settings/Inbox.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { DEPRIORITY_LABEL_SIGNAL_TOGGLES, PRIORITY_LABEL_SIGNAL_TOGGLES } from '@app/component/next-soup/filters/signal-configs';-import { ToggleSwitch } from '@core/component/FormControls/ToggleSwitch';-import { For } from 'solid-js';--export function Inbox() {- const prioritySignals = PRIORITY_LABEL_SIGNAL_TOGGLES;- const deprioritySignals = DEPRIORITY_LABEL_SIGNAL_TOGGLES;-- return (- <div class="font-mono flex flex-col gap-3 text-sm p-2">- <div class="border border-[var(--b4)] box-border px-5 py-3 flex flex-col gap-3">- <div class="font-bold mb-1">Signal</div>- <For each={prioritySignals}>- {(signal) => (- <div class="flex items-center justify-between">- <span>{signal.label}</span>- <ToggleSwitch- checked={signal.enabled()}- onChange={(enabled) => signal.setEnabled(enabled)}- />- </div>- )}- </For>- </div>-- <div class="border border-[var(--b4)] box-border px-5 py-3 flex flex-col gap-3">- <div class="font-bold mb-1">Noise</div>- <For each={deprioritySignals}>- {(signal) => (- <div class="flex items-center justify-between">- <span>{signal.label}</span>- <ToggleSwitch- checked={signal.enabled()}- onChange={(enabled) => signal.setEnabled(enabled)}- />- </div>- )}- </For>- </div>- </div>- );-}diff --git a/js/app/packages/app/component/settings/Settings.tsx b/js/app/packages/app/component/settings/Settings.tsxindex d39f9faf5b..357f282272 100644--- a/js/app/packages/app/component/settings/Settings.tsx+++ b/js/app/packages/app/component/settings/Settings.tsx@@ -13,7 +13,6 @@ import { Subscription } from './Subscription';import { Appearance } from './Appearance';import { Tabs } from '@kobalte/core/tabs';import { Account } from './Account';-import { Inbox } from './Inbox';import { Shortcuts } from './Shortcuts';import { isMobile } from '@core/mobile/isMobile';import { registerHotkey, useHotkeyDOMScope } from '@core/hotkey/hotkeys';@@ -136,12 +135,14 @@ export function SettingsPanel(props: SettingsPanelProps) {const tabs: {value: string; label: string }[] = [{value: 'Appearance', label: 'Appearance'},{value: 'Account', label: 'Account'},- {value: 'Shortcuts', label: 'Shortcuts'}];+ if (!isMobile()) {+ tabs.push({value: 'Shortcuts', label: 'Shortcuts'})+ }+if(permissions()?.includes('write:stripe_subscription') && !isNativeMobilePlatform()){tabs.push({value: 'Subscription', label: 'Subscription'})}if(isNativeMobilePlatform() && DEV_MODE_ENV){tabs.push({ value: 'Mobile', label: 'Mobile Dev Tools' })}- if(DEV_MODE_ENV){tabs.push({ value: 'Inbox', label: 'Inbox' })}return tabs;});@@ -241,7 +242,7 @@ export function SettingsPanel(props: SettingsPanelProps) {<Tabsvalue={activeTabId()}onChange={(value: string | undefined) => {- if(value && (value === 'Account' || value === 'Subscription' || value === 'Appearance' || value === 'Mobile' || value === 'AI Memory' || value === 'Inbox' || value === 'Shortcuts')){+ if(value && (value === 'Account' || value === 'Subscription' || value === 'Appearance' || value === 'Mobile' || value === 'AI Memory' || value === 'Shortcuts')){setActiveTabId(value as SettingsTab);track(TrackingEvents.SETTINGS.CHANGETAB, { tab: value });}@@ -364,11 +365,6 @@ export function SettingsPanel(props: SettingsPanelProps) {<Tabs.Content value="Shortcuts" class="absolute inset-0"><Shortcuts /></Tabs.Content>- <Show when={DEV_MODE_ENV}>- <Tabs.Content value="Inbox" class="absolute inset-0">- <Inbox />- </Tabs.Content>- </Show></div></Tabs></div>