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.

style(command): polish create menu layout and previews (#8488)

Jacob Beckerman07fce87c6430
diff --git a/apps/web/AGENTS.md b/apps/web/AGENTS.md
index 2cf5e72870..e113d6e546 100644
--- a/apps/web/AGENTS.md
+++ b/apps/web/AGENTS.md
@@ -73,6 +73,9 @@ Then trigger the interaction and read `window.__inst.log`. `'1,2,3' → '' → '
## Development Patterns
+- Reuse `src/components/WorkspaceTexture.tsx` for the onboarding and Create
+ detail panel grain; pass the surface accent and a unique SVG filter ID.
+
### Pipedream native authorization
Keep native Pipedream consent in the system browser: the desktop navigation
diff --git a/apps/web/src/features/onboarding/components/workspace-texture.tsx b/apps/web/src/components/WorkspaceTexture.tsx
similarity index 94%
rename from apps/web/src/features/onboarding/components/workspace-texture.tsx
rename to apps/web/src/components/WorkspaceTexture.tsx
index 8c029b20b5..82f09fc06a 100644
--- a/apps/web/src/features/onboarding/components/workspace-texture.tsx
+++ b/apps/web/src/components/WorkspaceTexture.tsx
@@ -1,7 +1,7 @@
const textureMask =
'radial-gradient(ellipse 50% 50% at center, black 0%, #0009 25%, #0003 45%, #00000008 60%, transparent 78%)';
-/** Shared grain and accent dots for the opening onboarding slides. */
+/** Shared grain and accent dots for workspace previews. */
export function WorkspaceTexture(props: { accent: string; filterId: string }) {
return (
<>
diff --git a/apps/web/src/components/ui/components/ComposerSurface.tsx b/apps/web/src/components/ui/components/ComposerSurface.tsx
index fffcd10bf1..82b972096b 100644
--- a/apps/web/src/components/ui/components/ComposerSurface.tsx
+++ b/apps/web/src/components/ui/components/ComposerSurface.tsx
@@ -37,7 +37,7 @@ export function ComposerSurface(
{...rest}
class={cn(
!isTouchDevice() &&
- 'rounded-[28px] border-0 bg-composer text-composer-ink dark-mode:glass-input backdrop-filter-none light-mode:after:hidden light-mode:shadow-[0_0_0_1px_var(--color-drop-shadow),0_2px_8px_0_var(--color-drop-shadow),0_4px_80px_8px_color-mix(in_srgb,var(--color-drop-shadow)_60%,transparent)]',
+ 'rounded-[28px] border-0 bg-composer text-composer-ink dark-mode:glass-input backdrop-filter-none light-mode:after:hidden light-mode:composer-shadow',
local.class
)}
/>
diff --git a/apps/web/src/features/command/DetailsLauncher.tsx b/apps/web/src/features/command/DetailsLauncher.tsx
index c2b4ace394..2630f0fd88 100644
--- a/apps/web/src/features/command/DetailsLauncher.tsx
+++ b/apps/web/src/features/command/DetailsLauncher.tsx
@@ -1,10 +1,26 @@
+import { Show } from 'solid-js';
+import { CreateMenuAction } from './components/CreateMenuAction';
import { LauncherDetails } from './components/LauncherDetails';
import { groupRecentCreateMenuItems } from './core/create-menu-details';
import { type LauncherInnerProps, LauncherShell } from './Launcher';
export default function DetailsLauncher(props: LauncherInnerProps) {
return (
- <LauncherShell {...props} groupItems={groupRecentCreateMenuItems}>
+ <LauncherShell
+ {...props}
+ groupItems={groupRecentCreateMenuItems}
+ footerAction={(state) => (
+ <Show when={state.blocks()[state.selectedIndex()]}>
+ {(item) => (
+ <CreateMenuAction
+ item={item()}
+ shiftHeld={state.shiftHeld()}
+ onChoose={state.choose}
+ />
+ )}
+ </Show>
+ )}
+ >
{(state) => (
<LauncherDetails
sections={state.sections()}
diff --git a/apps/web/src/features/command/Launcher.tsx b/apps/web/src/features/command/Launcher.tsx
index 6b705c4968..69ef204169 100644
--- a/apps/web/src/features/command/Launcher.tsx
+++ b/apps/web/src/features/command/Launcher.tsx
@@ -988,8 +988,6 @@ type LauncherMenuItemProps = {
};
export const LauncherMenuItem = (props: LauncherMenuItemProps) => {
- const selectedIconColor = () =>
- getIconConfig(props.creatableBlock.blockName).foreground;
const launcherHint = () => props.creatableBlock.launcherHint;
return (
@@ -997,7 +995,7 @@ export const LauncherMenuItem = (props: LauncherMenuItemProps) => {
<div
class={cn(
'size-4 shrink-0 text-ink-extra-muted transition-colors',
- props.selected && selectedIconColor()
+ props.selected && 'text-ink'
)}
>
<Dynamic component={props.creatableBlock.icon} />
@@ -1047,6 +1045,7 @@ type LauncherBodyState = {
export const LauncherShell = (
props: LauncherInnerProps & {
children: (state: LauncherBodyState) => JSX.Element;
+ footerAction?: (state: LauncherBodyState) => JSX.Element;
class?: string;
horizontalNavigation?: boolean;
groupItems?: (
@@ -1283,6 +1282,25 @@ export const LauncherShell = (
onCleanup(hkGroup.dispose);
+ const bodyState: LauncherBodyState = {
+ sections,
+ blocks,
+ selectedIndex: focusedIndex,
+ searchMode,
+ shiftHeld,
+ itemId: (item) => `create-menu-${launcherItemKey(item)}`,
+ select: listController.setSelectedIndexFromPointer,
+ step: (direction) => {
+ const count = blocks().length;
+ if (count)
+ listController.setSelectedIndex(
+ (((focusedIndex() + direction) % count) + count) % count
+ );
+ },
+ choose: runLauncherItem,
+ scrollSelectedIntoView: listController.shouldScrollSelectedIntoView,
+ };
+
return (
// The shared shell stopped painting its own pane (cmd+k gets one from the
// app Dialog wrapper); this raw-Kobalte dialog carries it here.
@@ -1349,26 +1367,14 @@ export const LauncherShell = (
/>
</CommandMenuShell.Header>
<CommandMenuShell.Body class="touch:flex touch:flex-col">
- {props.children({
- sections,
- blocks,
- selectedIndex: focusedIndex,
- searchMode,
- shiftHeld,
- itemId: (item) => `create-menu-${launcherItemKey(item)}`,
- select: listController.setSelectedIndexFromPointer,
- step: (direction) => {
- const count = blocks().length;
- if (count)
- listController.setSelectedIndex(
- (((focusedIndex() + direction) % count) + count) % count
- );
- },
- choose: runLauncherItem,
- scrollSelectedIntoView: listController.shouldScrollSelectedIntoView,
- })}
+ {props.children(bodyState)}
</CommandMenuShell.Body>
- <CommandMenuShell.Footer class="touch:px-6 touch:py-4">
+ <CommandMenuShell.Footer
+ class={cn(
+ 'relative touch:px-6 touch:py-4',
+ props.footerAction && 'min-h-12 gap-3 border-t border-edge-divider'
+ )}
+ >
<style>{`
@keyframes shift-ripple {
0% { transform: scale(1); opacity: 0.6; }
@@ -1378,42 +1384,44 @@ export const LauncherShell = (
animation: shift-ripple 0.35s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}
`}</style>
- <span class="flex items-center gap-1">
- <div class="flex gap-1">
- <div class="flex w-7 justify-center border border-ink/12 text-xxs rounded-md items-center px-1.5 py-px font-normal">
- <Hotkey
- shortcut={searchMode() ? 'arrowup' : navUpHotkey.hotkey()}
- class="space-x-1"
- />
- </div>
- <div class="flex w-7 justify-center border border-ink/12 text-xxs rounded-md items-center px-1.5 py-px font-normal">
- <Hotkey
- shortcut={searchMode() ? 'arrowdown' : navDownHotkey.hotkey()}
- class="space-x-1"
- />
- </div>
- </div>
+ <span
+ class={cn(
+ 'flex items-center gap-1.5',
+ props.footerAction && 'hidden sm:flex'
+ )}
+ >
+ <span class="flex gap-0.5">
+ <Hotkey
+ shortcut={searchMode() ? 'arrowup' : navUpHotkey.hotkey()}
+ class="min-w-3 justify-center"
+ />
+ <Hotkey
+ shortcut={searchMode() ? 'arrowdown' : navDownHotkey.hotkey()}
+ class="min-w-3 justify-center"
+ />
+ </span>
Navigate
</span>
- <span class="flex items-center gap-1">
- <div class="flex w-7 justify-center border border-ink/12 text-xxs rounded-md items-center px-1.5 py-px font-normal">
- <Hotkey shortcut={confirmHotkey.hotkey()} />
- </div>
- Create
- </span>
- <span class="hidden touch:hidden md:flex items-center gap-1">
+ <Show when={!props.footerAction}>
+ <span class="flex items-center gap-1.5">
+ <Hotkey
+ shortcut={confirmHotkey.hotkey()}
+ class="min-w-3 justify-center"
+ />
+ Create
+ </span>
+ </Show>
+ <span class="hidden touch:hidden md:flex items-center gap-1.5">
Hold
<span class="relative inline-flex place-items-center">
<span
ref={shiftRippleRef}
- class="shift-ripple absolute inset-0 rounded-sm border border-accent pointer-events-none opacity-0"
+ class="shift-ripple absolute inset-0 rounded-sm bg-ink/10 pointer-events-none opacity-0"
/>
<span
class={cn(
- 'border text-xxs px-1.5 py-px rounded-md transition-colors duration-150',
- shiftHeld()
- ? 'border-accent text-accent bg-accent/10'
- : 'border-ink/12'
+ 'min-w-3 text-xxs px-0.5 py-px rounded-sm text-center transition-colors duration-150',
+ shiftHeld() ? 'bg-ink/10 text-ink' : 'text-ink-extra-muted'
)}
>
{getNormalizedKeyString({ shortcut: 'shift' })}
@@ -1421,6 +1429,11 @@ export const LauncherShell = (
</span>
New split
</span>
+ <Show when={props.footerAction}>
+ {(action) => (
+ <div class="absolute right-2 bottom-2">{action()(bodyState)}</div>
+ )}
+ </Show>
</CommandMenuShell.Footer>
</CommandMenuShell>
</div>
diff --git a/apps/web/src/features/command/components/CarouselCards.tsx b/apps/web/src/features/command/components/CarouselCards.tsx
index 10c5747a71..4556f27812 100644
--- a/apps/web/src/features/command/components/CarouselCards.tsx
+++ b/apps/web/src/features/command/components/CarouselCards.tsx
@@ -1,4 +1,3 @@
-import { getIconConfig } from '@core/component/EntityIcon';
import CaretLeft from '@phosphor/caret-left.svg';
import CaretRight from '@phosphor/caret-right.svg';
import { cn, Hotkey } from '@ui';
@@ -52,10 +51,9 @@ export function CarouselCards(props: {
tabindex={active() ? 0 : -1}
class={cn(
'absolute top-1/2 flex -translate-x-1/2 -translate-y-1/2 h-36 flex-col items-start rounded-xl border p-3 text-left outline-none transition-[left,opacity,background-color,box-shadow,border-color] duration-300 motion-reduce:transition-none focus-visible:outline-2 focus-visible:outline-accent',
- getIconConfig(item.blockName).foreground,
active()
- ? 'border-current/30 bg-current/[0.04] shadow-[0_0_20px_0] shadow-current/[0.06]'
- : 'border-ink/8 bg-ink/[0.03] hover:border-ink/20',
+ ? 'border-ink/20 bg-ink/[0.06] text-ink'
+ : 'border-ink/8 bg-ink/[0.03] text-ink-muted hover:border-ink/20',
distance() > 5 && 'invisible'
)}
style={{
@@ -74,12 +72,7 @@ export function CarouselCards(props: {
}}
onClick={() => props.onChoose(item)}
>
- <div
- class={cn(
- 'flex size-8 shrink-0 items-center justify-center rounded-lg',
- getIconConfig(item.blockName).background
- )}
- >
+ <div class="flex size-8 shrink-0 items-center justify-center rounded-lg border border-ink/8 bg-ink/[0.06]">
<div class="size-5 [&_svg]:size-full">
<Dynamic component={item.icon} />
</div>
diff --git a/apps/web/src/features/command/components/CreateMenuAction.tsx b/apps/web/src/features/command/components/CreateMenuAction.tsx
new file mode 100644
index 0000000000..d3acc16761
--- /dev/null
+++ b/apps/web/src/features/command/components/CreateMenuAction.tsx
@@ -0,0 +1,26 @@
+import { Button, Hotkey } from '@ui';
+import type { CreatableBlock } from '../types';
+
+/** The shared primary action for the create menu's bottom lip. */
+export function CreateMenuAction(props: {
+ item: CreatableBlock;
+ shiftHeld?: boolean;
+ onChoose: (item: CreatableBlock) => void;
+}) {
+ return (
+ <Button
+ size="md"
+ variant="cta"
+ class="h-8 rounded-full px-4 font-medium [--color-accent:#fff] [--color-accent-contrast:#000] light-mode:[--color-accent:#000] light-mode:[--color-accent-contrast:#fff]"
+ aria-label={`Create ${props.item.label}${props.shiftHeld ? ' in new split' : ''}`}
+ onClick={() => props.onChoose(props.item)}
+ >
+ {props.shiftHeld ? 'Create in new split' : `Create ${props.item.label}`}
+ <Hotkey
+ shortcut={props.shiftHeld ? 'shift+enter' : 'enter'}
+ class="text-xs opacity-55"
+ aria-hidden="true"
+ />
+ </Button>
+ );
+}
diff --git a/apps/web/src/features/command/components/CreateMenuPreview.tsx b/apps/web/src/features/command/components/CreateMenuPreview.tsx
index 17a3730b9f..ac83a3a933 100644
--- a/apps/web/src/features/command/components/CreateMenuPreview.tsx
+++ b/apps/web/src/features/command/components/CreateMenuPreview.tsx
@@ -17,6 +17,7 @@ import {
import { LauncherMenuItem, useRecentCreateMenuBlocks } from '../Launcher';
import type { CreatableBlock } from '../types';
import { CarouselCards } from './CarouselCards';
+import { CreateMenuAction } from './CreateMenuAction';
import { LauncherDetails } from './LauncherDetails';
/** Inline previews using Jacob's layout proportions and the existing static icons. */
@@ -196,9 +197,29 @@ export function CreateMenuPreview(props: {
</Show>
</Show>
<Show when={props.layout !== 'carousel'}>
- <div class="flex h-9 shrink-0 items-center gap-4 px-5 text-xs text-ink-extra-muted">
+ <div
+ class={cn(
+ 'relative flex shrink-0 items-center gap-4 px-5 text-xs text-ink-extra-muted',
+ props.layout === 'details'
+ ? 'min-h-12 border-t border-edge-divider'
+ : 'h-9'
+ )}
+ >
<span>↑ ↓ Navigate</span>
- <span>↵ Choose</span>
+ <Show when={props.layout !== 'details'}>
+ <span>↵ Choose</span>
+ </Show>
+ <Show when={props.layout === 'details' && items()[c.selectedIndex()]}>
+ {(item) => (
+ <div class="absolute right-2 bottom-2">
+ <CreateMenuAction
+ item={item()}
+ shiftHeld={pressedKeys().has('shift')}
+ onChoose={props.onChoose}
+ />
+ </div>
+ )}
+ </Show>
</div>
</Show>
</div>
diff --git a/apps/web/src/features/command/components/LauncherDetails.tsx b/apps/web/src/features/command/components/LauncherDetails.tsx
index a447d26220..a90687cae5 100644
--- a/apps/web/src/features/command/components/LauncherDetails.tsx
+++ b/apps/web/src/features/command/components/LauncherDetails.tsx
@@ -1,6 +1,7 @@
-import { getIconConfig } from '@core/component/EntityIcon';
-import { Button, cn, Hotkey } from '@ui';
-import { createEffect, For, on, Show } from 'solid-js';
+import { WorkspaceTexture } from '@app/components/WorkspaceTexture';
+import { ENTITY_ICON_CONFIGS } from '@core/component/EntityIcon';
+import { cn, Hotkey } from '@ui';
+import { createEffect, createUniqueId, For, on, Show } from 'solid-js';
import { Dynamic } from 'solid-js/web';
import {
type CreateMenuSection,
@@ -21,6 +22,7 @@ export function LauncherDetails(props: {
scrollSelectedIntoView?: boolean;
detailsLeft?: boolean;
}) {
+ const textureId = createUniqueId();
let list: HTMLDivElement | undefined;
const selected = () => props.items[props.selectedIndex];
const shortcut = (item: CreatableBlock) =>
@@ -69,142 +71,127 @@ export function LauncherDetails(props: {
>
<For each={props.sections}>
{(section, sectionIndex) => (
- <div role="group" aria-label={section.group.label} class="mb-1.5">
- <div class="px-2.5 pt-2 pb-1 text-[10px] font-medium tracking-wide text-ink-extra-muted uppercase">
- {section.group.label}
- </div>
- <For each={section.items}>
- {(item, itemIndex) => {
- const index = () =>
- props.sections
- .slice(0, sectionIndex())
- .reduce(
- (offset, entry) => offset + entry.items.length,
- 0
- ) + itemIndex();
- return (
- <button
- type="button"
- role="option"
- id={`${props.itemId(item)}-${section.group.id}`}
- data-create-option
- aria-selected={props.selectedIndex === index()}
- tabindex={-1}
+ <For each={section.items}>
+ {(item, itemIndex) => {
+ const index = () =>
+ props.sections
+ .slice(0, sectionIndex())
+ .reduce(
+ (offset, entry) => offset + entry.items.length,
+ 0
+ ) + itemIndex();
+ return (
+ <button
+ type="button"
+ role="option"
+ id={`${props.itemId(item)}-${section.group.id}`}
+ data-create-option
+ aria-selected={props.selectedIndex === index()}
+ tabindex={-1}
+ class={cn(
+ 'flex h-8 w-full scroll-m-2 items-center gap-2.5 rounded-lg px-2.5 text-left outline-none transition-colors duration-100 focus-visible:outline-2 focus-visible:outline-accent motion-reduce:transition-none',
+ props.selectedIndex === index()
+ ? 'bg-ink/[0.07] text-ink'
+ : 'text-ink-muted'
+ )}
+ onPointerMove={(event) => {
+ if (event.movementX || event.movementY)
+ props.onSelect(index());
+ }}
+ onFocus={() => props.onSelect(index())}
+ onClick={() => props.onChoose(item)}
+ >
+ <span
class={cn(
- 'flex h-9 w-full scroll-m-2 items-center gap-2.5 rounded-md px-2.5 text-left outline-none focus-visible:outline-2 focus-visible:outline-accent',
+ 'size-4 shrink-0 transition-colors duration-100 motion-reduce:transition-none [&_svg]:size-4',
props.selectedIndex === index()
- ? 'bg-ink/6 text-ink'
- : 'text-ink-muted'
+ ? 'text-ink'
+ : 'text-ink-extra-muted'
)}
- onPointerMove={(event) => {
- if (event.movementX || event.movementY)
- props.onSelect(index());
- }}
- onFocus={() => props.onSelect(index())}
- onClick={() => props.onChoose(item)}
>
- <span
- class={cn(
- 'size-4 shrink-0 [&_svg]:size-4',
- getIconConfig(item.blockName).foreground
- )}
- >
- <Dynamic component={item.icon} />
- </span>
- <span
- class="min-w-0 flex-1 truncate text-sm font-medium"
- title={item.label}
- >
- {item.label}
+ <Dynamic component={item.icon} />
+ </span>
+ <span
+ class="min-w-0 flex-1 truncate text-[13px] font-medium"
+ title={item.label}
+ >
+ {item.label}
+ </span>
+ <Show when={props.showHotkeys}>
+ <span class="rounded-md border border-ink/12 px-1.5 py-px text-xxs font-normal text-ink-muted">
+ <Hotkey
+ token={item.hotkeyToken}
+ shortcut={shortcut(item)}
+ />
</span>
- <Show when={props.showHotkeys}>
- <span class="rounded-md border border-ink/12 px-1.5 py-px text-xxs font-normal text-ink-muted">
- <Hotkey
- token={item.hotkeyToken}
- shortcut={shortcut(item)}
- />
- </span>
- </Show>
- </button>
- );
- }}
- </For>
- </div>
+ </Show>
+ </button>
+ );
+ }}
+ </For>
)}
</For>
</div>
<div
class={cn(
- 'min-w-0 flex-1 overflow-y-auto',
+ 'relative isolate min-w-0 flex-1 overflow-hidden light-mode:text-ink',
+ ENTITY_ICON_CONFIGS[selected()?.blockName ?? 'default'].foreground,
props.detailsLeft
? 'border-r border-edge-divider'
: 'border-l border-edge-divider'
)}
>
- <Show when={selected()}>
- {(item) => (
- <section
- aria-label={`${item().label} details`}
- class="flex min-h-full flex-col p-6"
- >
- <div
- class={cn(
- 'mb-5 flex size-18 shrink-0 items-center justify-center rounded-2xl shadow-[0_0_20px_0] shadow-current/[0.06]',
- getIconConfig(item().blockName).background,
- getIconConfig(item().blockName).foreground
- )}
+ <div
+ aria-hidden="true"
+ class="pointer-events-none absolute inset-0 -z-10 opacity-65 light-mode:opacity-35"
+ style={{
+ background:
+ 'radial-gradient(ellipse at center, color-mix(in srgb, currentColor 14%, transparent), transparent 72%)',
+ }}
+ />
+ <div class="pointer-events-none absolute inset-0 opacity-65 light-mode:opacity-20">
+ <WorkspaceTexture accent="currentColor" filterId={textureId} />
+ </div>
+ <div class="relative h-full overflow-y-auto">
+ <Show when={selected()}>
+ {(item) => (
+ <section
+ aria-label={`${item().label} details`}
+ class="flex min-h-full flex-col items-center justify-center px-5 py-6 text-center sm:px-7"
>
- <div class="size-9 [&_svg]:size-full">
- <Dynamic component={item().icon} />
+ <div class="mb-6 flex size-18 shrink-0 items-center justify-center rounded-[22px] dark-mode:glass bg-dialog bg-linear-145 from-ink/[0.06] to-transparent light-mode:bg-composer light-mode:bg-none light-mode:composer-shadow">
+ <div class="size-8 [&_svg]:size-full">
+ <Dynamic component={item().icon} />
+ </div>
</div>
- </div>
- <h2 class="text-xl font-semibold">{item().label}</h2>
- <p class="mt-1 text-left text-sm leading-relaxed text-ink-muted">
- {createMenuDetails(item())?.details ??
- createMenuTagline(item())}
- </p>
- <div
- class={cn(
- 'mt-3 flex items-center gap-1.5 text-xs text-ink-muted',
- !props.showHotkeys && 'invisible'
- )}
- >
- Shortcut
- <Hotkey shortcut="c" theme="subtle" class="border-ink/12" />
- then
- <Hotkey
- token={item().hotkeyToken}
- shortcut={shortcut(item())}
- theme="subtle"
- class="border-ink/12"
- />
- </div>
- <div class="mt-auto flex shrink-0 flex-col items-end gap-2 pt-6">
- <span
- class={cn(
- 'text-xs text-ink-muted',
- !props.shiftHeld && 'invisible'
- )}
- >
- In new split
- </span>
- <Button
- size="lg"
- variant="strong"
- aria-label={`Create ${item().label}${props.shiftHeld ? ' in new split' : ''}`}
- onClick={() => props.onChoose(item())}
- >
- Create {item().label}
- <Hotkey
- shortcut={props.shiftHeld ? 'shift+enter' : 'enter'}
- theme="current"
- aria-hidden="true"
- />
- </Button>
- </div>
- </section>
- )}
- </Show>
+ <h2 class="text-xl font-semibold tracking-[-0.025em] text-ink">
+ {item().label}
+ </h2>
+ <p class="mt-2 max-w-[26rem] whitespace-pre-line text-center text-[13px] leading-relaxed text-ink-muted">
+ {createMenuDetails(item())?.details ??
+ createMenuTagline(item())}
+ </p>
+ <Show when={props.showHotkeys}>
+ <div class="mt-4 flex shrink-0 items-center gap-1.5 text-xs text-ink-extra-muted">
+ Shortcut
+ <Hotkey
+ shortcut="c"
+ theme="subtle"
+ class="border-ink/12"
+ />
+ then
+ <Hotkey
+ token={item().hotkeyToken}
+ shortcut={shortcut(item())}
+ theme="subtle"
+ class="border-ink/12"
+ />
+ </div>
+ </Show>
+ </section>
+ )}
+ </Show>
+ </div>
</div>
</Show>
</div>
diff --git a/apps/web/src/features/command/core/create-menu-details.ts b/apps/web/src/features/command/core/create-menu-details.ts
index fcf83e76dc..5c3ea94161 100644
--- a/apps/web/src/features/command/core/create-menu-details.ts
+++ b/apps/web/src/features/command/core/create-menu-details.ts
@@ -35,7 +35,7 @@ export type CreateMenuDetails = {
group: CreateMenuGroupId;
/** One line under the title: what the thing actually is. */
tagline: string;
- /** A 10–20-word description for the detailed launcher. */
+ /** Two authored lines; the second is slightly shorter at desktop width. */
details: string;
/** Things people typically make with it. */
examples: readonly string[];
@@ -51,147 +51,147 @@ const DETAILS: Record<string, CreateMenuDetails> = {
group: 'docs',
tagline: 'Rich-text doc, edited live together',
details:
- 'A collaborative document for notes, specs and write-ups, with headings, tables, embeds, comments and AI editing.',
+ 'Write notes, specs and ideas together in one place.\nAdd tables, embeds, comments and AI edits.',
examples: ['Meeting notes', 'Product spec', 'Team wiki'],
},
Snippet: {
group: 'docs',
tagline: 'Reusable template for your writing',
details:
- 'Save reusable templates, checklists and replies so you can quickly add familiar content to new documents.',
+ 'Save templates, checklists and your go-to replies.\nReuse your familiar content in new documents.',
examples: ['Doc template', 'Checklist', 'Canned reply'],
},
Code: {
group: 'other',
tagline: 'Code file with syntax highlighting',
details:
- 'A standalone source file for scripts, queries and config, in whatever language you need.',
+ 'Create a source file for scripts, queries or config.\nWrite in the language that best fits your work.',
examples: ['Python script', 'SQL query', 'Config file'],
},
Folder: {
group: 'organization',
tagline: 'Keep related files together',
details:
- 'Organize documents, files and other folders in one place, and share them together.',
+ 'Keep related documents and files in one place.\nOrganize folders and share them together.',
examples: ['Client files', 'Archive', 'Team drive'],
},
Canvas: {
group: 'design',
tagline: 'Whiteboard for diagrams and sketches',
details:
- 'An infinite canvas for flowcharts, mind maps, architecture diagrams and freeform brainstorming.',
+ 'Map out ideas on an infinite shared whiteboard.\nSketch flows, diagrams and connections.',
examples: ['Flowchart', 'Mind map', 'Architecture diagram'],
},
Design: {
group: 'design',
tagline: 'Figma-compatible design editor',
details:
- 'Create interface mockups and graphics with frames and vector shapes, then save your work as a Figma file.',
+ 'Design interfaces and graphics with vector tools.\nBuild with frames and save as a Figma file.',
examples: ['App mockup', 'Social graphic', 'Design system'],
},
Database: {
group: 'data',
tagline: 'Structured records in tables and boards',
details:
- 'Organize structured records with custom fields, then explore them in tables and boards for trackers, inventories or customer lists.',
+ 'Organize records with fields that fit your work.\nExplore your data in tables and boards.',
examples: ['CRM', 'Content calendar', 'Inventory'],
},
Spreadsheet: {
group: 'data',
tagline: 'Excel-style workbook with formulas',
details:
- 'A collaborative spreadsheet with formulas, multiple sheets and AI-assisted editing for models, budgets and analysis.',
+ 'Build shared spreadsheets for budgets and models.\nUse formulas, multiple sheets and AI edits.',
examples: ['Budget', 'Financial model', 'Tracker'],
},
Form: {
group: 'data',
tagline: 'Collect responses',
details:
- 'Build a form to collect feedback, requests or survey answers, with every response saved into a database.',
+ 'Collect feedback, requests and survey responses.\nSave every answer directly into your database.',
examples: ['Survey', 'Intake form', 'Feedback'],
},
'Photoshop file': {
group: 'design',
tagline: 'Layered image editing',
details:
- 'Create and edit layered images for photo edits, composites and graphics, then save your work as a Photoshop file.',
+ 'Create layered images, photo edits and graphics.\nSave your work as a layered Photoshop file.',
examples: ['Photo edit', 'Composite', 'Banner'],
},
'Illustrator file': {
group: 'design',
tagline: 'Vector artwork',
details:
- 'Create scalable logos, icons and illustrations on artboards, then save your vector artwork as an Illustrator file.',
+ 'Draw scalable logos, icons and vector illustrations.\nWork on artboards and save an Illustrator file.',
examples: ['Logo', 'Illustration', 'Icon set'],
},
Email: {
group: 'comms',
tagline: 'Compose from your connected inbox',
details:
- 'Write and send an email from your connected email account, with AI help drafting.',
+ 'Write and send email from your connected inbox.\nDraft and refine each message with AI help.',
examples: ['Follow-up', 'Intro', 'Update to a client'],
},
Message: {
group: 'comms',
tagline: 'Quick DM to a person or group',
details:
- 'Send a direct message to one or more teammates without setting up a channel.',
+ 'Start a direct conversation with your teammates.\nSend a quick note to one person or a group.',
examples: ['Quick question', 'Heads-up', 'Group DM'],
},
Channel: {
group: 'comms',
tagline: 'Ongoing space for a team or topic',
details:
- 'Keep a team, project or topic in one shared conversation, with threaded discussions and files everyone can find.',
+ 'Give your team or project a shared conversation.\nKeep threads and files together in one place.',
examples: ['#design', '#launch', '#support'],
},
Call: {
group: 'comms',
tagline: 'Start an audio or video call',
details:
- 'Jump into a call right away and invite teammates or external guests.',
+ 'Bring people together for an audio or video call.\nInvite teammates and guests to join you live.',
examples: ['Quick sync', 'Pairing', 'Customer call'],
},
Task: {
group: 'tasks',
tagline: 'To-do with owner, status and due date',
details:
- 'Capture a piece of work, assign it, set a due date and track it through to done.',
+ 'Turn a piece of work into a task with a clear owner.\nSet a due date and follow it through to done.',
examples: ['Bug', 'Follow-up', 'Review request'],
},
Project: {
group: 'tasks',
tagline: 'Group tasks toward a shared goal',
details:
- 'Collect related tasks under one goal and follow their progress together.',
+ 'Bring related tasks together around a shared goal.\nKeep track of progress across your project.',
examples: ['Launch', 'Quarterly goal', 'Migration'],
},
Reminder: {
group: 'tasks',
tagline: 'Nudge yourself at a time you pick',
details:
- 'Ask Macro to remind you about something later — no document or task required.',
+ 'Set a reminder for something you want to revisit.\nChoose a time and let Macro bring it back.',
examples: ['Call back', 'Check in Friday', 'Renew license'],
},
Agent: {
group: 'ai',
tagline: 'AI session that researches, writes and codes',
details:
- 'Start a dedicated AI session to research a topic, draft content or work through a coding task.',
+ 'Start an AI session to move your work forward.\nResearch a topic, draft content or write code.',
examples: ['Research a topic', 'Draft a doc', 'Fix a bug'],
},
Routine: {
group: 'ai',
tagline: 'Run an agent on a schedule or trigger',
details:
- 'Automations that run a model or agent on a schedule, or whenever something happens in Macro.',
+ 'Put recurring work on a schedule or a trigger.\nLet an agent take care of it automatically.',
examples: ['Daily digest', 'Triage inbox', 'Weekly report'],
},
Skill: {
group: 'ai',
tagline: 'Reusable instructions for agents',
details:
- 'Give agents reusable instructions for a specific process, writing style or workflow so they can follow your preferred approach.',
+ 'Give agents reusable instructions for your work.\nDefine a process, style or preferred approach.',
examples: ['Brand voice', 'PR review', 'Report format'],
},
};
@@ -218,7 +218,7 @@ export function createMenuSearchText(item: CreatableBlock): string[] {
const group = CREATE_MENU_GROUPS.find((g) => g.id === details.group);
return [
details.tagline,
- details.details,
+ details.details.replace(/\n/g, ' '),
...details.examples,
group?.label,
].filter((text): text is string => !!text);
diff --git a/apps/web/src/features/onboarding/components/feature-overview.tsx b/apps/web/src/features/onboarding/components/feature-overview.tsx
index 96ca70ba27..a7ae5d69d2 100644
--- a/apps/web/src/features/onboarding/components/feature-overview.tsx
+++ b/apps/web/src/features/onboarding/components/feature-overview.tsx
@@ -1,3 +1,4 @@
+import { WorkspaceTexture } from '@app/components/WorkspaceTexture';
import Logo from '@icon/macro-logo.svg';
import Sheet from '@icon/wide-spreadsheet.svg';
import CRM from '@phosphor/buildings.svg';
@@ -19,7 +20,6 @@ import { makePersisted } from '@solid-primitives/storage';
import { createSignal, createUniqueId, For, Show } from 'solid-js';
import { Dynamic } from 'solid-js/web';
import { ContinueButton } from './controls';
-import { WorkspaceTexture } from './workspace-texture';
import './feature-overview.css';
// Matching connector names let StoryStage carry the actual welcome icons here.
diff --git a/apps/web/src/features/onboarding/components/workspace-intro.tsx b/apps/web/src/features/onboarding/components/workspace-intro.tsx
index 0c7b32a135..26fd8c7688 100644
--- a/apps/web/src/features/onboarding/components/workspace-intro.tsx
+++ b/apps/web/src/features/onboarding/components/workspace-intro.tsx
@@ -1,3 +1,4 @@
+import { WorkspaceTexture } from '@app/components/WorkspaceTexture';
import CheckIcon from '@phosphor/check.svg';
import {
createEffect,
@@ -14,7 +15,6 @@ import {
} from '../core/workspace-accent';
import { ContinueButton } from './controls';
import { MacroMarkIcon } from './macro-mark-icon';
-import { WorkspaceTexture } from './workspace-texture';
import './workspace-intro.css';
/** An onboarding-only introduction; the public homepage keeps its own hero. */
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 020b972657..90e2cce0fe 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -933,6 +933,13 @@ html[data-theme-light='false'] {
--color-surface: var(--color-menu);
}
+/* Shared light-surface edge and ambient shadow from the homepage composer. */
+@utility composer-shadow {
+ box-shadow: 0 0 0 1px var(--color-drop-shadow),
+ 0 2px 8px 0 var(--color-drop-shadow),
+ 0 4px 80px 8px color-mix(in srgb, var(--color-drop-shadow) 60%, transparent);
+}
+
/* Shared dialog appearance; composers retain their original glass. */
@utility elevated-surface {
@apply glass-input;
diff --git a/docs/agent-guide/media/command/create-menu-polished-dark.png b/docs/agent-guide/media/command/create-menu-polished-dark.png
new file mode 100644
index 0000000000..fa6b4c856a
Binary files /dev/null and b/docs/agent-guide/media/command/create-menu-polished-dark.png differ
diff --git a/docs/agent-guide/media/command/create-menu-polished-light.png b/docs/agent-guide/media/command/create-menu-polished-light.png
new file mode 100644
index 0000000000..ff1ccc9115
Binary files /dev/null and b/docs/agent-guide/media/command/create-menu-polished-light.png differ
diff --git a/docs/agent-guide/navigation.md b/docs/agent-guide/navigation.md
index 28be6c77a3..b0937d119b 100644
--- a/docs/agent-guide/navigation.md
+++ b/docs/agent-guide/navigation.md
@@ -530,23 +530,35 @@ changes roll back rather than becoming committed local favorites.
On desktop, the rail **Create** button, **C**, and the command menu’s **Create**
entry open the detailed launcher at standard dialog width. Selecting **Create**
closes the command menu and hands focus to the launcher; individual creation
-commands remain searchable in the command menu. The left list starts with up to three **Recents** from
-actual launcher usage, followed by all choices grouped by category.
-Categories appear in this order: **Docs** (Document, Snippet), **Organization**
+commands remain searchable in the command menu. The left side is one continuous
+list without section labels or gaps. Up to three recently used choices appear
+first, followed by all choices in this order: **Docs** (Document, Snippet), **Organization**
(Folder), **Design** (Canvas, Design, Photoshop file, Illustrator file), **Data**
(Database, Spreadsheet, Form), **Comms** (Email, Message, Channel, Call), **Tasks**
(Task, Project, Reminder), **AI** (Agent, Routine, Skill), and **Other** (Code and
-any uncategorized entries). Only available entries and nonempty categories appear.
-Recent items also remain in their categories. With no history, the list starts
-with categories. Hover or keyboard navigation updates the right detail panel;
-click a row or press Enter to start that creation flow. The detail panel is
-top-aligned, shares the list background, and is separated by a vertical divider.
-The shortcut below the description shows the sequence, such as **C then T** for
-Task, while direct shortcut mode is active.
-Its lower-right **Create [type]** button starts the selected creation flow and
-shows the Enter shortcut. Holding Shift adds an **In new split** indicator and
-changes the button shortcut to Shift+Enter; clicking while holding Shift uses
-the same new-split behavior where supported.
+any uncategorized entries). Only available entries appear.
+Recent items also remain in their normal positions. With no history, the list
+starts with Document. Hover or keyboard navigation updates the right detail panel;
+click a row or press Enter to start that creation flow. List icons are monochrome:
+muted normally and full ink on the selected row. The detail panel centers
+its block-colored icon tile with a solid theme-aware fill and shared glass rim,
+and description over
+the shared onboarding grain. Light mode uses near-black icons and neutral, quieter grain and glow, with
+the homepage composer’s fill, border and shadow. Dark-mode dots and glow use
+the same shared block-icon color as the tile, rather than the workspace accent. Descriptions use two authored
+lines at desktop width, with a slightly shorter second line; narrow panels
+allow the text to wrap further. The **Create [type]** button
+sits 8px inside the bottom-right corner as a 32px-tall pill. Its 16px
+radius plus the inset matches the modal’s 24px radius. It uses
+a white fill in dark mode, black in light mode, medium-weight text, and a bare
+Enter symbol without a keycap. Footer keyboard hints are borderless.
+Visual references: [dark](media/command/create-menu-polished-dark.png) and
+[light](media/command/create-menu-polished-light.png).
+A vertical divider separates it from the list. In direct shortcut mode, the
+shortcut sequence (such as **C then T** for Task) appears below the centered
+detail content. The Create button includes the Enter shortcut. Holding Shift
+relabels the button **Create in new split** with Shift+Enter; clicking while
+holding Shift uses the same new-split behavior where supported.
The **Search mode** toggle (or **/**) switches between direct entity shortcuts
shown beside each choice and the standard create search input. Search mode is