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(ui): silence tailwind warnings (#2836)
Fake-Usere06e30f3c0e3
diff --git a/js/.zed/settings.json b/js/.zed/settings.jsonindex f0db38b441..9b04e2b32f 100644--- a/js/.zed/settings.json+++ b/js/.zed/settings.json@@ -6,5 +6,10 @@"require_config_file": true,}}+ },+ "languages": {+ "CSS": {+ "language_servers": ["tailwindcss-language-server", "!vscode-css-language-server"]+ }}}diff --git a/js/app/biome.jsonc b/js/app/biome.jsoncindex ba543a5d28..1b4cb7485b 100644--- a/js/app/biome.jsonc+++ b/js/app/biome.jsonc@@ -126,7 +126,7 @@},{"includes": [- "packages/block-theme/**",+ "packages/theme/**","packages/app/component/dock/Dock.tsx","packages/app/component/settings/**"],diff --git a/js/app/packages/app/component/GlobalHotkeys.tsx b/js/app/packages/app/component/GlobalHotkeys.tsxindex d98facd22d..ab5d57356d 100644--- a/js/app/packages/app/component/GlobalHotkeys.tsx+++ b/js/app/packages/app/component/GlobalHotkeys.tsx@@ -18,8 +18,8 @@ import {setThemeShouldMatchSystem,themeShouldMatchSystem,themes,-} from '../../block-theme/signals/themeSignals';-import { applyTheme } from '../../block-theme/utils/themeUtils';+} from '../../theme/signals/themeSignals';+import { applyTheme } from '../../theme/utils/themeUtils';import { globalSplitManager } from '../signal/splitLayout';import { CommandState } from './command';import {diff --git a/js/app/packages/app/component/ReactiveFavicon.tsx b/js/app/packages/app/component/ReactiveFavicon.tsxindex 0bd9acab75..30fc057cac 100644--- a/js/app/packages/app/component/ReactiveFavicon.tsx+++ b/js/app/packages/app/component/ReactiveFavicon.tsx@@ -1,7 +1,7 @@import { updateFavicon } from '@app/util/favicon';import { createBroadcastChannel } from '@solid-primitives/broadcast-channel';import { createEffect, createSignal, on, onCleanup, onMount } from 'solid-js';-import { useReactiveColorString } from '../../block-theme/signals/themeReactive';+import { useReactiveColorString } from '../../theme/signals/themeReactive';import { useGlobalNotificationSource } from './GlobalAppState';type BadgeMessage = { hasBadge: boolean };diff --git a/js/app/packages/app/component/Root.tsx b/js/app/packages/app/component/Root.tsxindex 157743314d..9d81ec86c0 100644--- a/js/app/packages/app/component/Root.tsx+++ b/js/app/packages/app/component/Root.tsx@@ -63,12 +63,12 @@ import {Suspense,Switch,} from 'solid-js';-import { currentThemeId } from '../../block-theme/signals/themeSignals';+import { currentThemeId } from '../../theme/signals/themeSignals';import {applyTheme,ensureMinimalThemeContrast,systemThemeEffect,-} from '../../block-theme/utils/themeUtils';+} from '../../theme/utils/themeUtils';import { TauriRouteListener } from '../../tauri/src/TauriProvider';import { Login } from './auth/Login';import { Signup } from './auth/Signup';diff --git a/js/app/packages/app/component/auth/store.ts b/js/app/packages/app/component/auth/store.tsindex a8e4ca6e93..661e292643 100644--- a/js/app/packages/app/component/auth/store.ts+++ b/js/app/packages/app/component/auth/store.ts@@ -1,5 +1,5 @@import { createSignal } from 'solid-js';-import { themeReactive } from '../../../block-theme/signals/themeReactive';+import { themeReactive } from '../../../theme/signals/themeReactive';// RGB values as tuples - THREE.Color creation moved to ThreeWireframe for lazy loadingexport const [colorContrastRgb, setColorContrastRgb] = createSignal<diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view-mobile-create-button.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view-mobile-create-button.tsxindex 6ab1182e78..13dd0c104c 100644--- a/js/app/packages/app/component/next-soup/soup-view/soup-view-mobile-create-button.tsx+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view-mobile-create-button.tsx@@ -16,7 +16,7 @@ import type { ListView } from '@app/constants/list-views';import { runCreateAction, setCreateMenuOpen } from '../../Launcher';import { useAnalytics } from '@app/component/analytics-context';import { cn } from '@ui/utils/classname';-import { isThemeDark } from '@block-theme/utils/themeUtils';+import { isThemeDark } from '@theme/utils/themeUtils';const ICON_ANIMATION_DURATION_MS = 500;diff --git a/js/app/packages/app/component/settings/Appearance.tsx b/js/app/packages/app/component/settings/Appearance.tsxindex 0d952f9308..3e91b806ad 100644--- a/js/app/packages/app/component/settings/Appearance.tsx+++ b/js/app/packages/app/component/settings/Appearance.tsx@@ -1,7 +1,7 @@-import { ThemeEditorAdvanced } from '../../../block-theme/components/ThemeEditorAdvanced';-import { ThemeEditorBasic } from '../../../block-theme/components/ThemeEditorBasic';-import ThemeTools from '../../../block-theme/components/ThemeTools';-import ThemeList from '../../../block-theme/components/ThemeList';+import { ThemeEditorAdvanced } from '../../../theme/components/ThemeEditorAdvanced';+import { ThemeEditorBasic } from '../../../theme/components/ThemeEditorBasic';+import ThemeTools from '../../../theme/components/ThemeTools';+import ThemeList from '../../../theme/components/ThemeList';export function Appearance() {return (diff --git a/js/app/packages/app/index.css b/js/app/packages/app/index.cssindex ccf32e0719..6c564d4bdb 100644--- a/js/app/packages/app/index.css+++ b/js/app/packages/app/index.css@@ -541,7 +541,7 @@--font-serif: "Georgia", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--text-xxs: 0.625rem;-+/* Custom container size */--container-small: 40rem;@@ -728,7 +728,7 @@ html[data-modality="keyboard"] .suppress-css-brackets .allow-css-brackets *:focu/* Suppressed on touch devices */html:not([data-touch-device="true"]) [data-message]:hover,html:not([data-touch-device="true"]) [data-message][data-highlighted] {- @apply bg-accent/5 outline-1 outline-accent/20 outline-offset-[-1px];+ @apply bg-accent/5 outline-1 outline-accent/20 outline-offset-1;}/* Keyboard selection accent bar can coexist with hover styles */@@ -830,7 +830,7 @@ html[data-modality="keyboard"] [contenteditable="true"]:focus-visible::after {@utility macro-message-width {max-width: 100%;-+@media (min-width: 640px) {max-width: 800px;min-width: 250px;@@ -838,7 +838,7 @@ html[data-modality="keyboard"] [contenteditable="true"]:focus-visible::after {}@utility macro-message-padding {-+@container (width < 816px) {padding-inline: calc(var(--spacing) * 4);}@@ -848,7 +848,7 @@ html[data-modality="keyboard"] [contenteditable="true"]:focus-visible::after {}@utility macro-message-margin {-+@container (width < 816px) {margin-inline: calc(var(--spacing) * 4);}diff --git a/js/app/packages/block-email/component/EmailMessageBody.tsx b/js/app/packages/block-email/component/EmailMessageBody.tsxindex 356ed24a73..94be924230 100644--- a/js/app/packages/block-email/component/EmailMessageBody.tsx+++ b/js/app/packages/block-email/component/EmailMessageBody.tsx@@ -26,8 +26,8 @@ import {Switch,untrack,} from 'solid-js';-import { themeReactive } from '../../block-theme/signals/themeReactive';-import { themeUpdate } from '../../block-theme/signals/themeSignals';+import { themeReactive } from '../../theme/signals/themeReactive';+import { themeUpdate } from '../../theme/signals/themeSignals';interface EmailMessageBodyProps {message: ApiMessage;diff --git a/js/app/packages/block-pdf/component/placeables/Signature.tsx b/js/app/packages/block-pdf/component/placeables/Signature.tsxindex 1c303e262a..032fc44a82 100644--- a/js/app/packages/block-pdf/component/placeables/Signature.tsx+++ b/js/app/packages/block-pdf/component/placeables/Signature.tsx@@ -10,7 +10,7 @@ import { createCallback } from '@solid-primitives/rootless';import SignaturePad from 'signature_pad';import { onCleanup, onMount, Show } from 'solid-js';import { Portal } from 'solid-js/web';-import { themeReactive } from '../../../block-theme/signals/themeReactive';+import { themeReactive } from '../../../theme/signals/themeReactive';import { useDeletePlaceable, useModifyPayload } from '../../store/placeables';import { type AllowableEdits, PayloadMode } from '../../type/placeables';diff --git a/js/app/packages/core/component/BozzyBracket.tsx b/js/app/packages/core/component/BozzyBracket.tsxindex 2b51c97d53..eadc451157 100644--- a/js/app/packages/core/component/BozzyBracket.tsx+++ b/js/app/packages/core/component/BozzyBracket.tsx@@ -55,7 +55,7 @@ export function BozzyBracketInnerSibling(props: {/* TEST BEFORE REMOVING left-[-1px] top-[-1px] w-[calc(100%+2px)] h-[calc(100%+2px)] */return (<div- class="pointer-events-none absolute left-[-1px] top-[-1px] w-[calc(100%+2px)] h-[calc(100%+2px)] bracket-offset-2"+ class="pointer-events-none absolute -left-px -top-1 w-[calc(100%+2px)] h-[calc(100%+2px)] bracket-offset-2"classList={{'transition-transform ease-out duration-100': props.animOnOpen,'scale-110': big(),diff --git a/js/app/packages/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsx b/js/app/packages/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsxindex 27e97c4885..0c16f25ce3 100644--- a/js/app/packages/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsx+++ b/js/app/packages/core/component/LexicalMarkdown/component/decorator/ThemeMention.tsx@@ -1,12 +1,8 @@import type { ThemeMentionDecoratorProps } from '@lexical-core';-import type { ThemeV1 } from '@block-theme/types/themeTypes';-import { isThemeV1 } from '@block-theme/utils/themeValidation';-import {- setUserThemes,- themes,- userThemes,-} from '@block-theme/signals/themeSignals';-import { applyTheme } from '@block-theme/utils/themeUtils';+import type { ThemeV1 } from '@theme/types/themeTypes';+import { isThemeV1 } from '@theme/utils/themeValidation';+import { setUserThemes, themes, userThemes } from '@theme/signals/themeSignals';+import { applyTheme } from '@theme/utils/themeUtils';import { useSettingsState } from '@core/constant/SettingsState';export function ThemeMention(props: ThemeMentionDecoratorProps) {@@ -41,7 +37,7 @@ export function ThemeMention(props: ThemeMentionDecoratorProps) {return (<span class="pointer-events-auto mx-0.5" onClick={handleClick}>- <span class="inline-flex items-center gap-[3px] align-baseline px-1 py-px rounded-[3px] border border-edge-muted">+ <span class="inline-flex items-center gap-0.75 align-baseline px-1 py-px rounded-[3px] border border-edge-muted"><span class="inline-flex items-center gap-0.5"><spanclass="inline-block size-2.5 rounded-xs border border-edge-muted"diff --git a/js/app/packages/core/component/LexicalMarkdown/plugins/text-paste/textPastePlugin.ts b/js/app/packages/core/component/LexicalMarkdown/plugins/text-paste/textPastePlugin.tsindex 12a8d1e00b..75899e6de1 100644--- a/js/app/packages/core/component/LexicalMarkdown/plugins/text-paste/textPastePlugin.ts+++ b/js/app/packages/core/component/LexicalMarkdown/plugins/text-paste/textPastePlugin.ts@@ -1,6 +1,6 @@import type { BlockAlias, BlockName } from '@core/block';import { mergeRegister } from '@lexical/utils';-import { parseThemeV1Json } from '@block-theme/utils/themeValidation';+import { parseThemeV1Json } from '@theme/utils/themeValidation';import {$getSelection,$isRangeSelection,diff --git a/js/app/packages/core/email/tests/email-rendering.pw.ts b/js/app/packages/core/email/tests/email-rendering.pw.tsindex 1ac6b62e9f..e4753c690f 100644--- a/js/app/packages/core/email/tests/email-rendering.pw.ts+++ b/js/app/packages/core/email/tests/email-rendering.pw.ts@@ -1,7 +1,7 @@import fs from 'node:fs';import path from 'node:path';import { expect, test } from '@playwright/test';-import { DEFAULT_THEMES } from '../../../block-theme/constants';+import { DEFAULT_THEMES } from '../../../theme/constants';import type { ThemeColorParams } from '../transform-email-colors';// =============================================================================diff --git a/js/app/packages/notifications/notification-platform.ts b/js/app/packages/notifications/notification-platform.tsindex 6b0375166c..d51366b7c2 100644--- a/js/app/packages/notifications/notification-platform.ts+++ b/js/app/packages/notifications/notification-platform.ts@@ -2,7 +2,7 @@ import type { SplitManager } from '@app/component/split-layout/layoutManager';import { getFaviconUrl } from '@app/util/favicon';import { markdownToPlainText } from '@lexical-core';import type { UnifiedNotification } from './types';-import { themeReactive } from '../block-theme/signals/themeReactive';+import { themeReactive } from '../theme/signals/themeReactive';import type { PlatformNotificationState } from './components/PlatformNotificationProvider';import {getNotificationAction,diff --git a/js/app/packages/block-theme/components/ColorSwatch.tsx b/js/app/packages/theme/components/ColorSwatch.tsxsimilarity index 100%rename from js/app/packages/block-theme/components/ColorSwatch.tsxrename to js/app/packages/theme/components/ColorSwatch.tsxdiff --git a/js/app/packages/block-theme/components/ThemeEditorAdvanced.tsx b/js/app/packages/theme/components/ThemeEditorAdvanced.tsxsimilarity index 100%rename from js/app/packages/block-theme/components/ThemeEditorAdvanced.tsxrename to js/app/packages/theme/components/ThemeEditorAdvanced.tsxdiff --git a/js/app/packages/block-theme/components/ThemeEditorBasic.tsx b/js/app/packages/theme/components/ThemeEditorBasic.tsxsimilarity index 100%rename from js/app/packages/block-theme/components/ThemeEditorBasic.tsxrename to js/app/packages/theme/components/ThemeEditorBasic.tsxdiff --git a/js/app/packages/block-theme/components/ThemeList.tsx b/js/app/packages/theme/components/ThemeList.tsxsimilarity index 100%rename from js/app/packages/block-theme/components/ThemeList.tsxrename to js/app/packages/theme/components/ThemeList.tsxdiff --git a/js/app/packages/block-theme/components/ThemeTools.tsx b/js/app/packages/theme/components/ThemeTools.tsxsimilarity index 100%rename from js/app/packages/block-theme/components/ThemeTools.tsxrename to js/app/packages/theme/components/ThemeTools.tsxdiff --git a/js/app/packages/block-theme/constants.ts b/js/app/packages/theme/constants.tssimilarity index 100%rename from js/app/packages/block-theme/constants.tsrename to js/app/packages/theme/constants.tsdiff --git a/js/app/packages/block-theme/signals/themeReactive.ts b/js/app/packages/theme/signals/themeReactive.tssimilarity index 100%rename from js/app/packages/block-theme/signals/themeReactive.tsrename to js/app/packages/theme/signals/themeReactive.tsdiff --git a/js/app/packages/block-theme/signals/themeSignals.ts b/js/app/packages/theme/signals/themeSignals.tssimilarity index 100%rename from js/app/packages/block-theme/signals/themeSignals.tsrename to js/app/packages/theme/signals/themeSignals.tsdiff --git a/js/app/packages/block-theme/types/themeTypes.ts b/js/app/packages/theme/types/themeTypes.tssimilarity index 100%rename from js/app/packages/block-theme/types/themeTypes.tsrename to js/app/packages/theme/types/themeTypes.tsdiff --git a/js/app/packages/block-theme/utils/__tests__/themeValidation.test.ts b/js/app/packages/theme/utils/__tests__/themeValidation.test.tssimilarity index 98%rename from js/app/packages/block-theme/utils/__tests__/themeValidation.test.tsrename to js/app/packages/theme/utils/__tests__/themeValidation.test.tsindex 6ba8a7b731..1e63cf9056 100644--- a/js/app/packages/block-theme/utils/__tests__/themeValidation.test.ts+++ b/js/app/packages/theme/utils/__tests__/themeValidation.test.ts@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest';import {isThemeV1,parseThemeV1Json,-} from '@block-theme/utils/themeValidation';+} from '@theme/utils/themeValidation';const validThemeJson = JSON.stringify({id: 'test-theme-id',diff --git a/js/app/packages/block-theme/utils/colorUtil.ts b/js/app/packages/theme/utils/colorUtil.tssimilarity index 100%rename from js/app/packages/block-theme/utils/colorUtil.tsrename to js/app/packages/theme/utils/colorUtil.tsdiff --git a/js/app/packages/block-theme/utils/themeMigrations.ts b/js/app/packages/theme/utils/themeMigrations.tssimilarity index 100%rename from js/app/packages/block-theme/utils/themeMigrations.tsrename to js/app/packages/theme/utils/themeMigrations.tsdiff --git a/js/app/packages/block-theme/utils/themeUtils.ts b/js/app/packages/theme/utils/themeUtils.tssimilarity index 100%rename from js/app/packages/block-theme/utils/themeUtils.tsrename to js/app/packages/theme/utils/themeUtils.tsdiff --git a/js/app/packages/block-theme/utils/themeValidation.ts b/js/app/packages/theme/utils/themeValidation.tssimilarity index 100%rename from js/app/packages/block-theme/utils/themeValidation.tsrename to js/app/packages/theme/utils/themeValidation.tsdiff --git a/js/app/tsconfig.json b/js/app/tsconfig.jsonindex faf80dccf7..931ee5938f 100644--- a/js/app/tsconfig.json+++ b/js/app/tsconfig.json@@ -36,7 +36,7 @@"declarationMap": true,"forceConsistentCasingInFileNames": true,"resolveJsonModule": true,- "noEmit": true,+ "emitDeclarationOnly": true,"isolatedModules": true,"sourceMap": true,"preserveWatchOutput": true,@@ -215,8 +215,8 @@"@ui/*": ["./packages/ui/*"],- "@block-theme/*": [- "./packages/block-theme/*"+ "@theme/*": [+ "./packages/theme/*"],"@entity": ["./packages/entity/src/index.ts"diff --git a/js/app/vitest.config.ts b/js/app/vitest.config.tsindex 969d544774..9c021dfc5f 100644--- a/js/app/vitest.config.ts+++ b/js/app/vitest.config.ts@@ -50,8 +50,8 @@ export default defineConfig({test: {environment: 'jsdom',globals: true,- include: ['packages/block-theme/**/*.{test,spec}.{ts,tsx}'],- name: 'block-theme',+ include: ['packages/theme/**/*.{test,spec}.{ts,tsx}'],+ name: 'theme',},},{