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.

feat(app): Local/dev tab title prefix (#1926)

Evan Hutnikfa3f6b035664
diff --git a/js/app/packages/core/signal/tabTitle.ts b/js/app/packages/core/signal/tabTitle.ts
index cb1e1de538..516cfbca6d 100644
--- a/js/app/packages/core/signal/tabTitle.ts
+++ b/js/app/packages/core/signal/tabTitle.ts
@@ -1,8 +1,11 @@
import { createSignal } from 'solid-js';
+import { DEV_MODE_ENV, LOCAL_ONLY } from '@core/constant/featureFlags';
export const tabTitleSignal = createSignal<string | undefined>();
+const ENV_PREFIX = LOCAL_ONLY ? '[L] ' : DEV_MODE_ENV ? '[D] ' : '';
+
export function formatTabTitle(title: string | undefined) {
- if (title) return `Macro - ${title}`;
- return `Macro`;
+ if (title) return `${ENV_PREFIX}Macro - ${title}`;
+ return `${ENV_PREFIX}Macro`;
}