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.

fix: bring back inbox settings (#660)

Peter Chinman28dd80d3d3b4
diff --git a/js/app/packages/app/component/settings/Inbox.tsx b/js/app/packages/app/component/settings/Inbox.tsx
index d04ec79e30..6fa45ca08f 100644
--- a/js/app/packages/app/component/settings/Inbox.tsx
+++ b/js/app/packages/app/component/settings/Inbox.tsx
@@ -1,5 +1,4 @@
import { ToggleSwitch } from '@core/component/FormControls/ToggleSwitch';
-import { TabContent } from '@core/component/TabContent';
import { For } from 'solid-js';
import {
DEPRIORITY_LABEL_SIGNAL_TOGGLES,
@@ -19,8 +18,7 @@ export function Inbox() {
];
return (
- <TabContent title="Inbox">
- <div class="font-mono flex flex-col gap-3 text-sm">
+ <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}>
@@ -51,7 +49,6 @@ export function Inbox() {
</For>
</div>
</div>
- </TabContent>
);
}
diff --git a/js/app/packages/app/component/settings/Settings.tsx b/js/app/packages/app/component/settings/Settings.tsx
index bd0f4422bc..669ba47449 100644
--- a/js/app/packages/app/component/settings/Settings.tsx
+++ b/js/app/packages/app/component/settings/Settings.tsx
@@ -15,6 +15,7 @@ import { Subscription } from './Subscription';
import { Appearance } from './Appearance';
import { Tabs } from '@kobalte/core/tabs';
import { Account } from './Account';
+import { Inbox } from './Inbox';
const SCROLL_THRESHOLD = 10;
@@ -113,6 +114,7 @@ export function SettingsPanel() {
if(!orgName() && !isNativeMobilePlatform()){tabs.push({value: 'Subscription', label: 'Subscription'})}
if(orgName() && permissions()?.includes(MacroPermissions.WriteItPanel)){tabs.push({value: 'Organization', label: 'Organization'})}
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;
});
@@ -133,7 +135,7 @@ export function SettingsPanel() {
<Tabs
value={activeTabId()}
onChange={(value: string | undefined) => {
- if(value && (value === 'Account' || value === 'Subscription' || value === 'Organization' || value === 'Appearance' || value === 'Mobile' || value === 'AI Memory')){
+ if(value && (value === 'Account' || value === 'Subscription' || value === 'Organization' || value === 'Appearance' || value === 'Mobile' || value === 'AI Memory' || value === 'Inbox')){
setActiveTabId(value as SettingsTab);
track(TrackingEvents.SETTINGS.CHANGETAB, { tab: value });
}
@@ -254,6 +256,11 @@ export function SettingsPanel() {
<Tabs.Content value="Appearance" class="absolute inset-0">
<Appearance />
</Tabs.Content>
+ <Show when={DEV_MODE_ENV}>
+ <Tabs.Content value="Inbox" class="absolute inset-0">
+ <Inbox />
+ </Tabs.Content>
+ </Show>
</div>
</Tabs>
</div>
diff --git a/js/app/packages/core/component/TabContent.tsx b/js/app/packages/core/component/TabContent.tsx
index 3c7c84f5e0..cb7f1cc0ec 100644
--- a/js/app/packages/core/component/TabContent.tsx
+++ b/js/app/packages/core/component/TabContent.tsx
@@ -11,7 +11,7 @@ export function TabContent(props: TabContentProps) {
return (
<>
{props.header}
- <div class="font-medium border-edge pb-3 mb-4 border-b text-ink">
+ <div class="font-medium border-edge pb-3 mb-4 border-b text-ink p-2">
{props.title}
</div>
<Show when={props.description}>