Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Refactor code structure for improved readability and maintainability
nirholas8a8aa4b6b3ee
diff --git a/chat/index.html b/chat/index.htmlindex f26264102..9673658f0 100644--- a/chat/index.html+++ b/chat/index.html@@ -24,6 +24,9 @@<meta name="twitter:description" content="Chat with any AI model — Claude, GPT, Gemini, Ollama and more." /><meta name="twitter:image" content="https://three.ws/og-image.png" />+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap" rel="stylesheet"><linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"diff --git a/chat/src/App.svelte b/chat/src/App.svelteindex f500d3146..12d16f15f 100644--- a/chat/src/App.svelte+++ b/chat/src/App.svelte@@ -22,7 +22,9 @@} from './providers.js';import ModelSelector from './ModelSelector.svelte';import CompanyLogo from './CompanyLogo.svelte';- import { controller, remoteServer, config, params, toolSchema, syncServer, brandConfig, ttsEnabled, localAgentId } from './stores.js';+ import { controller, remoteServer, config, params, toolSchema, syncServer, brandConfig, ttsEnabled, localAgentId, route } from './stores.js';+ import AuthPage from './manus/pages/AuthPage.svelte';+ import Pricing from './manus/pages/Pricing.svelte';import SettingsModal from './SettingsModal.svelte';import ToolcallButton from './ToolcallButton.svelte';import MessageContent from './MessageContent.svelte';@@ -61,6 +63,8 @@import Message from './Message.svelte';import { deleteSingleItem, initEncryption, sendSingleItem, syncPull, syncPush } from './sync.js';import AgentPicker from './AgentPicker.svelte';+ import EmptyState from './manus/EmptyState.svelte';+ import AnnouncementBanner from './manus/AnnouncementBanner.svelte';marked.use(markedKatex({@@ -1024,7 +1028,15 @@document.documentElement.style.setProperty('--accent', $brandConfig.accent_color);}+ function syncRouteFromHash() {+ const hash = window.location.hash.slice(1) || 'chat';+ route.set(hash);+ }+onMount(async () => {+ syncRouteFromHash();+ window.addEventListener('hashchange', syncRouteFromHash);+// Fetch global brand config from servertry {const res = await fetch('/api/chat/config');@@ -1233,7 +1245,15 @@/>{/if}+{#if $route === 'signin' || $route === 'signup'}+ <div class="min-h-dvh bg-paper">+ <AuthPage kind={$route} />+ </div>+{:else}<main class="flex h-dvh w-screen flex-col">+ <div class="sticky top-0 z-[110]">+ <AnnouncementBanner />+ </div><div class="flex h-12 items-center gap-1 px-2 py-1 md:hidden"><buttonon:click={newConversation}@@ -1283,6 +1303,7 @@</button></div><div class="relative flex h-full flex-1 overflow-hidden">+ {#if convo.messages.length > 0}<asidedata-sidebar="history"class="{historyOpen@@ -1378,6 +1399,7 @@</button></div></aside>+ {/if}<div class="flex flex-1 flex-col"><div class="relative hidden items-center px-2 py-2 md:flex"><ModelSelector@@ -1414,41 +1436,52 @@</button></div>- <div class="flex h-full w-full">- <!-- svelte-ignore a11y-no-static-element-interactions -->- <div- class="{splitView- ? 'w-[50%]'- : 'w-full'} relative max-h-[calc(100vh-49px)] transition-[width] duration-500 ease-in-out"- on:dragover={(event) => {- event.preventDefault();- }}- on:drop={handleFileDrop}- >+ {#if convo.messages.length === 0}+ <div class="flex h-full w-full overflow-y-auto">+ <EmptyState>+ <svelte:fragment slot="composer">+ <Input+ bind:generating+ bind:convo+ {saveMessage}+ {saveConversation}+ {submitCompletion}+ {scrollToBottom}+ {handleAbort}+ {tree}+ bind:inputTextareaEl+ bind:handleFileDrop+ />+ </svelte:fragment>+ </EmptyState>+ </div>+ {:else}+ <div class="flex h-full w-full">+ <!-- svelte-ignore a11y-no-static-element-interactions --><div- bind:this={scrollableEl}class="{splitView- ? 'scrollbar-none'- : 'scrollbar-ultraslim'} scrollable flex h-full w-full flex-col overflow-y-auto pb-[128px]"- on:scroll={() => {- // If direction is going up, set autoscrollCanceled to true- // Otherwise if we are at the bottom of the page, re-enable autoscroll- const { scrollTop, scrollHeight, clientHeight } = scrollableEl;-- // Check if scrolling upward- if (scrollTop < previousScrollTop) {- autoscrollCanceled = true;- }- // Check if we're at the bottom of the scrollable area- else if (scrollHeight - scrollTop - clientHeight <= 5) {- autoscrollCanceled = false;- }-- // Update for next scroll event- previousScrollTop = scrollTop;+ ? 'w-[50%]'+ : 'w-full'} relative max-h-[calc(100vh-49px)] transition-[width] duration-500 ease-in-out"+ on:dragover={(event) => {+ event.preventDefault();}}+ on:drop={handleFileDrop}>- {#if convo.messages.length > 0}+ <div+ bind:this={scrollableEl}+ class="{splitView+ ? 'scrollbar-none'+ : 'scrollbar-ultraslim'} scrollable flex h-full w-full flex-col overflow-y-auto pb-[128px]"+ on:scroll={() => {+ const { scrollTop, scrollHeight, clientHeight } = scrollableEl;+ if (scrollTop < previousScrollTop) {+ autoscrollCanceled = true;+ } else if (scrollHeight - scrollTop - clientHeight <= 5) {+ autoscrollCanceled = false;+ }+ previousScrollTop = scrollTop;+ }}+ ><ulclass="{splitView? 'rounded-br-lg border-r'@@ -1476,59 +1509,49 @@bind:activeToolcallbind:textareaElson:rerender={() => {- // Not sure why this is neededconvo.messages = convo.messages;}}/>{/each}</ul>- {:else}- <Button- variant="outline"- class="z-[98] mx-auto border-dashed text-xs"- on:click={insertSystemPrompt}- >- <Icon icon={feTerminal} class="mr-2 h-3 w-3 text-slate-600" />- Add system prompt- </Button>- {/if}+ </div>++ <Input+ bind:generating+ bind:convo+ {saveMessage}+ {saveConversation}+ {submitCompletion}+ {scrollToBottom}+ {handleAbort}+ {tree}+ bind:inputTextareaEl+ bind:handleFileDrop+ /></div>- <Input- bind:generating- bind:convo- {saveMessage}- {saveConversation}- {submitCompletion}- {scrollToBottom}- {handleAbort}- {tree}- bind:inputTextareaEl- bind:handleFileDrop- />+ {#if splitView}+ {@const toolresponse = convo.messages.find((msg) => msg.toolcallId === activeToolcall.id)}+ <div in:fade={{ duration: 500 }} class="w-[50%] p-3.5">+ <Toolcall+ toolcall={activeToolcall}+ {toolresponse}+ collapsable={false}+ closeButton+ bind:chose+ {isChoosing}+ {choiceHandler}+ {question}+ {choices}+ class="!rounded-xl"+ on:close={() => {+ activeToolcall = null;+ }}+ />+ </div>+ {/if}</div>-- {#if splitView}- {@const toolresponse = convo.messages.find((msg) => msg.toolcallId === activeToolcall.id)}- <div in:fade={{ duration: 500 }} class="w-[50%] p-3.5">- <Toolcall- toolcall={activeToolcall}- {toolresponse}- collapsable={false}- closeButton- bind:chose- {isChoosing}- {choiceHandler}- {question}- {choices}- class="!rounded-xl"- on:close={() => {- activeToolcall = null;- }}- />- </div>- {/if}- </div>+ {/if}</div><KnobsSidebar {knobsOpen} />@@ -1628,6 +1651,7 @@</div></div>{/if}+{/if}<style lang="postcss">:global(.standalone .input-floating) {diff --git a/chat/src/Message.svelte b/chat/src/Message.svelteindex ee8ca63a7..0cc1a615d 100644--- a/chat/src/Message.svelte+++ b/chat/src/Message.svelte@@ -22,7 +22,9 @@import Icon from './Icon.svelte';import MessageContent from './MessageContent.svelte';import { formatModelName, hasCompanyLogo } from './providers.js';- import { config } from './stores.js';+ import { config, localAgentId, brandConfig } from './stores.js';++ $: effectiveAgentId = $localAgentId || $brandConfig.agent_id || '';import Toolcall from './Toolcall.svelte';import ToolcallButton from './ToolcallButton.svelte';@@ -174,7 +176,17 @@? 'border border-teal-200 bg-teal-100 pb-px': ''}">- {#if message.role === 'assistant' && hasLogo}+ {#if message.role === 'assistant' && effectiveAgentId}+ <!-- svelte-ignore custom-element-no-implicit-ns -->+ <agent-3d+ agent-id={effectiveAgentId}+ mode="embed"+ width="36"+ height="36"+ background="transparent"+ style="width:100%;height:100%;border-radius:inherit;overflow:hidden;pointer-events:none;"+ ></agent-3d>+ {:else if message.role === 'assistant' && hasLogo}<CompanyLogo model={message.model} size="w-full h-full" rounded="rounded-[inherit]" />{:else}<span class="m-auto">diff --git a/chat/src/app.pcss b/chat/src/app.pcssindex b5c61c956..efcf140a5 100644--- a/chat/src/app.pcss+++ b/chat/src/app.pcss@@ -1,3 +1,45 @@@tailwind base;@tailwind components;@tailwind utilities;++@layer base {+ html, body {+ @apply bg-paper text-ink font-sans antialiased;+ font-feature-settings: 'ss01', 'cv11';+ }+ .font-display {+ @apply font-serif;+ font-feature-settings: 'liga', 'dlig';+ letter-spacing: -0.01em;+ }+}++@layer components {+ .manus-card {+ @apply bg-white border border-rule rounded-2xl;+ }+ .manus-chip {+ @apply inline-flex items-center gap-2 h-9 px-4 rounded-full+ border border-rule bg-white text-ink text-sm font-medium+ hover:bg-paper-deep transition-colors;+ }+ .manus-chip-selected {+ @apply bg-manus-blue-soft border-manus-blue-border text-manus-blue;+ }+ .manus-btn-primary {+ @apply inline-flex items-center justify-center h-9 px-4+ rounded-full bg-black text-white text-sm font-medium+ hover:bg-ink transition-colors;+ }+ .manus-btn-ghost {+ @apply inline-flex items-center justify-center h-9 px-4+ rounded-full bg-transparent text-ink text-sm font-medium+ hover:bg-paper-deep transition-colors;+ }+ .manus-hero {+ @apply font-serif text-ink text-[44px] md:text-[56px] leading-[1.05] tracking-tight font-medium;+ }+ .manus-display {+ @apply font-serif text-ink text-[56px] md:text-[80px] leading-[1.02] tracking-tight font-semibold;+ }+}diff --git a/chat/src/manus/AnnouncementBanner.svelte b/chat/src/manus/AnnouncementBanner.sveltenew file mode 100644index 000000000..d5c461175--- /dev/null+++ b/chat/src/manus/AnnouncementBanner.svelte@@ -0,0 +1,24 @@+<script>+ import { persisted } from '../localstorage.js';+ import Icon from '../Icon.svelte';+ import { feArrowRight, feX } from '../feather.js';++ const dismissed = persisted('manusBannerDismissed_v1', false);+ export let href = '#';+ export let message = 'Manus is now part of Meta — bringing AI to businesses worldwide';+</script>++{#if !$dismissed}+ <div class="relative w-full bg-[#EBE8E0] text-[#1A1A1A]">+ <a {href} class="flex items-center justify-center gap-2 h-10 text-sm font-medium hover:opacity-80">+ <span>{message}</span>+ <Icon icon={feArrowRight} class="h-4 w-4 shrink-0" />+ </a>+ <button+ class="absolute right-3 top-1/2 -translate-y-1/2 p-1 text-[#6B6B6B] hover:text-[#1A1A1A]"+ on:click={() => ($dismissed = true)}+ aria-label="Dismiss announcement">+ <Icon icon={feX} class="h-4 w-4" />+ </button>+ </div>+{/if}diff --git a/chat/src/manus/EmptyState.svelte b/chat/src/manus/EmptyState.sveltenew file mode 100644index 000000000..08046ff7f--- /dev/null+++ b/chat/src/manus/EmptyState.svelte@@ -0,0 +1,9 @@+<section class="w-full flex flex-col items-center px-6 pt-[18vh] md:pt-[22vh]">+ <h1 class="manus-hero text-center mb-9">What can I do for you?</h1>+ <div class="w-full max-w-[760px]">+ <slot name="composer" />+ </div>+ <div class="w-full max-w-[760px] mt-4">+ <slot name="chips" />+ </div>+</section>diff --git a/chat/src/manus/MoreDropdown.svelte b/chat/src/manus/MoreDropdown.sveltenew file mode 100644index 000000000..44b045504--- /dev/null+++ b/chat/src/manus/MoreDropdown.svelte@@ -0,0 +1,64 @@+<script>+ import { createEventDispatcher } from 'svelte';+ import Icon from '../Icon.svelte';+ import { mode } from '../stores.js';+ import {+ feSmartphone, feCalendar, feGlobe, feGrid, feBarChart2,+ fePlay, feActivity, feMessageSquare, feBookOpen, feExternalLink,+ } from '../feather.js';++ const dispatch = createEventDispatcher();++ const items = [+ { id: 'desktop', label: 'Develop apps', icon: feSmartphone },+ { id: 'schedule', label: 'Schedule task', icon: feCalendar },+ { id: 'research', label: 'Wide Research', icon: feGlobe },+ { id: 'spreadsheet', label: 'Spreadsheet', icon: feGrid },+ { id: 'visualization', label: 'Visualization', icon: feBarChart2 },+ { id: 'video', label: 'Video', icon: fePlay },+ { id: 'audio', label: 'Audio', icon: feActivity },+ { id: 'chat', label: 'Chat mode', icon: feMessageSquare },+ { id: 'playbook', label: 'Playbook', icon: feBookOpen, external: true },+ ];++ function pick(item) {+ if (item.external) {+ window.open('/playbook', '_blank');+ } else {+ mode.set(item.id);+ }+ dispatch('close');+ }++ function onKey(e) {+ if (e.key === 'Escape') dispatch('close');+ }+</script>++<svelte:window on:keydown={onKey} />++<!-- Dismiss backdrop -->+<button+ class="fixed inset-0 z-20 cursor-default"+ aria-hidden="true"+ tabindex="-1"+ on:click={() => dispatch('close')}+/>++<!-- Dropdown card -->+<div class="absolute bottom-full mb-2 right-0 z-30 bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-2 w-[260px]">+ {#each items as item}+ <button+ class="flex items-center gap-3 w-full px-3 h-10 rounded-lg text-sm font-medium text-[#1A1A1A] hover:bg-[#F5F4EF]"+ on:click={() => pick(item)}+ >+ <Icon icon={item.icon} class="h-4 w-4 shrink-0" />+ <span>{item.label}</span>+ {#if item.external}+ <span class="ml-auto text-[#9C9A93]">+ <Icon icon={feExternalLink} class="h-3.5 w-3.5" />+ </span>+ {/if}+ </button>+ {/each}+</div>diff --git a/chat/src/manus/SuggestionChips.svelte b/chat/src/manus/SuggestionChips.sveltenew file mode 100644index 000000000..44e7fa289--- /dev/null+++ b/chat/src/manus/SuggestionChips.svelte@@ -0,0 +1,22 @@+<script>+ import Icon from '../Icon.svelte';+ import { feMoreHorizontal } from '../feather.js';+ import MoreDropdown from './MoreDropdown.svelte';++ let moreOpen = false;+</script>++<div class="relative inline-flex items-center gap-2">+ <button+ class="flex items-center gap-1.5 px-3 h-8 rounded-full border border-[#E5E3DC] bg-white text-sm font-medium text-[#1A1A1A] hover:bg-[#F5F4EF]"+ on:click={() => (moreOpen = !moreOpen)}+ aria-expanded={moreOpen}+ >+ <Icon icon={feMoreHorizontal} class="h-4 w-4" />+ <span>More</span>+ </button>++ {#if moreOpen}+ <MoreDropdown on:close={() => (moreOpen = false)} />+ {/if}+</div>diff --git a/chat/src/manus/TopNav.svelte b/chat/src/manus/TopNav.sveltenew file mode 100644index 000000000..37bded3f8--- /dev/null+++ b/chat/src/manus/TopNav.svelte@@ -0,0 +1,115 @@+<script>+ import { route } from '../stores.js';+ import FeaturesDropdown from './dropdowns/FeaturesDropdown.svelte';+ import SolutionsDropdown from './dropdowns/SolutionsDropdown.svelte';++ let featuresOpen = false;+ let solutionsOpen = false;++ let featuresOpenTimer = null;+ let featuresCloseTimer = null;+ let solutionsOpenTimer = null;+ let solutionsCloseTimer = null;++ function makeHover(getOpen, setOpen, openTimer, closeTimer) {+ return {+ enter() {+ clearTimeout(closeTimer.value);+ openTimer.value = setTimeout(() => setOpen(true), 120);+ },+ leave() {+ clearTimeout(openTimer.value);+ closeTimer.value = setTimeout(() => setOpen(false), 200);+ },+ };+ }++ const featOpen = { value: null };+ const featClose = { value: null };+ const solOpen = { value: null };+ const solClose = { value: null };++ function onFeatEnter() { clearTimeout(featClose.value); featOpen.value = setTimeout(() => (featuresOpen = true), 120); }+ function onFeatLeave() { clearTimeout(featOpen.value); featClose.value = setTimeout(() => (featuresOpen = false), 200); }+ function onSolEnter() { clearTimeout(solClose.value); solOpen.value = setTimeout(() => (solutionsOpen = true), 120); }+ function onSolLeave() { clearTimeout(solOpen.value); solClose.value = setTimeout(() => (solutionsOpen = false), 200); }+</script>++<header class="sticky top-0 z-40 bg-white border-b border-[#E5E3DC]">+ <div class="max-w-[1240px] mx-auto h-14 px-6 flex items-center justify-between">++ <!-- Logo -->+ <button+ class="font-serif text-[22px] font-semibold text-[#1A1A1A] lowercase tracking-tight"+ on:click={() => route.set('chat')}+ >+ manus+ </button>++ <!-- Center nav -->+ <nav class="hidden md:flex items-center">++ <!-- Features -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onFeatEnter} on:mouseleave={onFeatLeave}>+ <button+ class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors"+ aria-haspopup="true"+ aria-expanded={featuresOpen}+ >Features</button>+ {#if featuresOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div+ class="absolute top-full mt-2 left-0 z-50"+ on:mouseenter={onFeatEnter}+ on:mouseleave={onFeatLeave}+ >+ <FeaturesDropdown />+ </div>+ {/if}+ </div>++ <!-- Solutions -->+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div class="relative" on:mouseenter={onSolEnter} on:mouseleave={onSolLeave}>+ <button+ class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors"+ aria-haspopup="true"+ aria-expanded={solutionsOpen}+ >Solutions</button>+ {#if solutionsOpen}+ <!-- svelte-ignore a11y-no-static-element-interactions -->+ <div+ class="absolute top-full mt-2 left-0 z-50"+ on:mouseenter={onSolEnter}+ on:mouseleave={onSolLeave}+ >+ <SolutionsDropdown />+ </div>+ {/if}+ </div>++ <!-- Stub triggers for Resources / Events / Business -->+ <button class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors">Resources</button>+ <button class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors">Events</button>+ <button class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors">Business</button>+ <button+ class="h-14 px-3 inline-flex items-center text-sm font-medium text-[#1A1A1A] hover:text-[#6B6B6B] transition-colors"+ on:click={() => route.set('pricing')}+ >Pricing</button>+ </nav>++ <!-- Right actions -->+ <div class="hidden md:flex items-center gap-2">+ <button+ class="bg-black text-white rounded-full px-4 h-9 text-sm font-medium hover:bg-[#333] transition-colors"+ on:click={() => route.set('signin')}+ >Sign in</button>+ <button+ class="bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-full px-4 h-9 text-sm font-medium hover:bg-[#F5F4EF] transition-colors"+ on:click={() => route.set('signup')}+ >Sign up</button>+ </div>++ </div>+</header>diff --git a/chat/src/manus/dropdowns/BusinessDropdown.svelte b/chat/src/manus/dropdowns/BusinessDropdown.sveltenew file mode 100644index 000000000..3e9294c0c--- /dev/null+++ b/chat/src/manus/dropdowns/BusinessDropdown.svelte@@ -0,0 +1,29 @@+<script>+ import { route } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import { feBriefcase, feShield, feServer, feUsers, feMessageCircle } from '../../feather.js';++ const items = [+ { title: 'Enterprise', subtitle: 'Deploy Manus across your org', route: 'business/enterprise', icon: feBriefcase },+ { title: 'Security & compliance', subtitle: 'SOC 2, GDPR, custom DPAs', route: 'business/security', icon: feShield },+ { title: 'Custom deployments', subtitle: 'VPC and on-prem options', route: 'business/deployments', icon: feServer },+ { title: 'Customer stories', subtitle: 'How teams ship faster with Manus', route: 'business/customers', icon: feUsers },+ { title: 'Contact sales', subtitle: 'Talk to a real human', route: 'business/contact-sales', icon: feMessageCircle },+ ];+</script>++<div class="bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]">+ {#each items as item}+ <button+ class="flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]"+ on:click={() => route.set(item.route)}>+ <span class="w-9 h-9 rounded-lg bg-[#F5F4EF] flex items-center justify-center shrink-0">+ <Icon icon={item.icon} class="w-[18px] h-[18px] text-[#1A1A1A]" />+ </span>+ <span class="flex-1 min-w-0">+ <span class="block text-sm font-semibold text-[#1A1A1A]">{item.title}</span>+ <span class="block text-xs text-[#6B6B6B] mt-0.5">{item.subtitle}</span>+ </span>+ </button>+ {/each}+</div>diff --git a/chat/src/manus/dropdowns/EventsDropdown.svelte b/chat/src/manus/dropdowns/EventsDropdown.sveltenew file mode 100644index 000000000..6f0db435c--- /dev/null+++ b/chat/src/manus/dropdowns/EventsDropdown.svelte@@ -0,0 +1,29 @@+<script>+ import { route } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import { feVideo, feMapPin, feClock, feZap, fePlay } from '../../feather.js';++ const items = [+ { title: 'Webinars', subtitle: 'Live sessions with the Manus team', route: 'events/webinars', icon: feVideo },+ { title: 'Conferences', subtitle: 'Where you can find us in person', route: 'events/conferences', icon: feMapPin },+ { title: 'Office hours', subtitle: 'Weekly Q&A with engineers', route: 'events/office-hours', icon: feClock },+ { title: 'Hackathons', subtitle: 'Build with Manus alongside the community', route: 'events/hackathons', icon: feZap },+ { title: 'Past recordings', subtitle: 'Replay every session on demand', route: 'events/recordings', icon: fePlay },+ ];+</script>++<div class="bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]">+ {#each items as item}+ <button+ class="flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]"+ on:click={() => route.set(item.route)}>+ <span class="w-9 h-9 rounded-lg bg-[#F5F4EF] flex items-center justify-center shrink-0">+ <Icon icon={item.icon} class="w-[18px] h-[18px] text-[#1A1A1A]" />+ </span>+ <span class="flex-1 min-w-0">+ <span class="block text-sm font-semibold text-[#1A1A1A]">{item.title}</span>+ <span class="block text-xs text-[#6B6B6B] mt-0.5">{item.subtitle}</span>+ </span>+ </button>+ {/each}+</div>diff --git a/chat/src/manus/dropdowns/FeaturesDropdown.svelte b/chat/src/manus/dropdowns/FeaturesDropdown.sveltenew file mode 100644index 000000000..fa272f5b2--- /dev/null+++ b/chat/src/manus/dropdowns/FeaturesDropdown.svelte@@ -0,0 +1,35 @@+<script>+ import { route } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import {+ feGlobe, feSmartphone, feZap, feLayout, feMonitor,+ feTarget, feMail, feGrid+ } from '../../feather.js';++ const items = [+ { title: 'Web app', subtitle: 'Build full-stack, AI-powered sites', route: 'features/web-app', icon: feGlobe },+ { title: 'Mobile app', subtitle: 'Build native iOS & Android apps', route: 'features/mobile-app', icon: feSmartphone },+ { title: 'AI design', subtitle: 'Automates the entire design journey', route: 'features/ai-design', icon: feZap },+ { title: 'AI slides', subtitle: 'Use Nano Banana Pro to create slides', route: 'features/ai-slides', icon: feLayout },+ { title: 'Manus browser operator', subtitle: 'Lend a tab to Manus', route: 'features/browser-operator', icon: feMonitor },+ { title: 'Wide Research', subtitle: 'Parallel research at scale', route: 'features/wide-research', icon: feTarget },+ { title: 'Mail Manus', subtitle: 'Turn any email into action', route: 'features/mail-manus', icon: feMail },+ { title: 'Agent Skills', subtitle: 'Automate your expertise', route: 'features/agent-skills', icon: feGrid },+ ];+</script>++<div class="bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]">+ {#each items as item}+ <button+ class="flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]"+ on:click={() => route.set(item.route)}>+ <span class="w-9 h-9 rounded-lg bg-[#F5F4EF] flex items-center justify-center shrink-0">+ <Icon icon={item.icon} class="w-[18px] h-[18px] text-[#1A1A1A]" />+ </span>+ <span class="flex-1 min-w-0">+ <span class="block text-sm font-semibold text-[#1A1A1A]">{item.title}</span>+ <span class="block text-xs text-[#6B6B6B] mt-0.5">{item.subtitle}</span>+ </span>+ </button>+ {/each}+</div>diff --git a/chat/src/manus/dropdowns/SolutionsDropdown.svelte b/chat/src/manus/dropdowns/SolutionsDropdown.sveltenew file mode 100644index 000000000..1b05c9fc4--- /dev/null+++ b/chat/src/manus/dropdowns/SolutionsDropdown.svelte@@ -0,0 +1,36 @@+<script>+ import { route } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import {+ feTrendingUp, feSpeaker, feCpu, feActivity,+ feLifeBuoy, feDollarSign, feUsers, feStar,+ } from '../../feather.js';++ const items = [+ { title: 'Sales', subtitle: 'Pipeline insights and deal acceleration', slug: 'solutions/sales', icon: feTrendingUp },+ { title: 'Marketing', subtitle: 'Campaigns, content, and analytics', slug: 'solutions/marketing', icon: feSpeaker },+ { title: 'Engineering', subtitle: 'Internal tools and automations', slug: 'solutions/engineering', icon: feCpu },+ { title: 'Operations', subtitle: 'Reporting, dashboards, workflows', slug: 'solutions/operations', icon: feActivity },+ { title: 'Customer Support', subtitle: 'Ticket triage and knowledge bots', slug: 'solutions/support', icon: feLifeBuoy },+ { title: 'Finance', subtitle: 'Spend analysis and forecasting', slug: 'solutions/finance', icon: feDollarSign },+ { title: 'HR & People', subtitle: 'Hiring, onboarding, internal Q&A', slug: 'solutions/hr', icon: feUsers },+ { title: 'Founders & Startups', subtitle: 'Launch faster with fewer engineers', slug: 'solutions/founders', icon: feStar },+ ];+</script>++<div class="bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]">+ {#each items as item}+ <button+ class="flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]"+ on:click={() => route.set(item.slug)}+ >+ <span class="w-9 h-9 rounded-lg bg-[#F5F4EF] flex items-center justify-center shrink-0">+ <Icon icon={item.icon} class="w-[18px] h-[18px] text-[#1A1A1A]" />+ </span>+ <span class="flex-1 min-w-0">+ <span class="block text-sm font-semibold text-[#1A1A1A]">{item.title}</span>+ <span class="block text-xs text-[#6B6B6B] mt-0.5">{item.subtitle}</span>+ </span>+ </button>+ {/each}+</div>diff --git a/chat/src/manus/pages/AuthPage.svelte b/chat/src/manus/pages/AuthPage.sveltenew file mode 100644index 000000000..3cd11ef9f--- /dev/null+++ b/chat/src/manus/pages/AuthPage.svelte@@ -0,0 +1,75 @@+<script>+ import { route } from '../../stores.js';+ export let kind = 'signin'; // 'signin' | 'signup'++ let email = '';+ let password = '';+ let name = '';++ function submit() {+ console.log(kind, { email, password, name });+ route.set('chat');+ }+</script>++<section class="pt-24 pb-16 px-6">+ <div class="bg-white border border-[#E5E3DC] rounded-2xl p-8 w-full max-w-[420px] mx-auto">+ <h1 class="font-serif text-3xl font-semibold text-center">+ {kind === 'signin' ? 'Welcome back' : 'Create your account'}+ </h1>+ <p class="text-[#6B6B6B] text-sm text-center mt-2">+ {kind === 'signin'+ ? 'Sign in to continue to Manus'+ : 'Free to start. No credit card required.'}+ </p>++ <div class="mt-6 space-y-3">+ <button class="bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-xl h-11 w-full flex items-center justify-center gap-2 hover:bg-[#F5F4EF] text-sm font-medium">+ <span class="w-4 h-4 inline-block bg-[url('https://www.google.com/favicon.ico')] bg-cover" />+ Continue with Google+ </button>+ <button class="bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-xl h-11 w-full flex items-center justify-center gap-2 hover:bg-[#F5F4EF] text-sm font-medium">+ <span class="w-4 h-4 inline-block bg-[url('https://github.com/favicon.ico')] bg-cover" />+ Continue with GitHub+ </button>+ </div>++ <div class="flex items-center gap-3 text-xs text-[#9C9A93] my-4">+ <span class="flex-1 h-px bg-[#E5E3DC]" />or<span class="flex-1 h-px bg-[#E5E3DC]" />+ </div>++ <form class="space-y-3" on:submit|preventDefault={submit}>+ {#if kind === 'signup'}+ <label class="block">+ <span class="text-xs font-medium text-[#6B6B6B] mb-1.5 block">Name</span>+ <input class="w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white focus:outline-none focus:border-[#1A1A1A]"+ type="text" bind:value={name} required>+ </label>+ {/if}+ <label class="block">+ <span class="text-xs font-medium text-[#6B6B6B] mb-1.5 block">Email</span>+ <input class="w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white focus:outline-none focus:border-[#1A1A1A]"+ type="email" bind:value={email} required>+ </label>+ <label class="block">+ <span class="text-xs font-medium text-[#6B6B6B] mb-1.5 block">Password</span>+ <input class="w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white focus:outline-none focus:border-[#1A1A1A]"+ type="password" bind:value={password} required minlength="8">+ </label>+ <button type="submit"+ class="w-full h-11 rounded-full bg-black text-white text-sm font-medium hover:bg-[#1A1A1A]">+ {kind === 'signin' ? 'Sign in' : 'Create account'}+ </button>+ </form>+ </div>++ <p class="text-center text-sm text-[#6B6B6B] mt-6">+ {#if kind === 'signin'}+ Don't have an account?+ <button class="text-[#1A1A1A] underline" on:click={() => route.set('signup')}>Sign up</button>+ {:else}+ Already have an account?+ <button class="text-[#1A1A1A] underline" on:click={() => route.set('signin')}>Sign in</button>+ {/if}+ </p>+</section>diff --git a/chat/src/manus/pages/Pricing.svelte b/chat/src/manus/pages/Pricing.sveltenew file mode 100644index 000000000..e370f2fe2--- /dev/null+++ b/chat/src/manus/pages/Pricing.svelte@@ -0,0 +1,66 @@+<script>+ import Icon from '../../Icon.svelte';+ import { feCheck } from '../../feather.js';+ const plans = [+ { name: 'Free', price: '$0', suffix: '/mo', tag: 'Try Manus on small projects',+ features: ['50 messages / month','Single-agent runs','Community support'],+ cta: 'Get started', highlight: false },+ { name: 'Pro', price: '$39', suffix: '/mo', tag: 'For builders who ship daily',+ features: ['Unlimited messages','Multi-agent runs','Priority models','Email support'],+ cta: 'Start free trial', highlight: true },+ { name: 'Business', price: '$129', suffix: '/mo', tag: 'For teams running real workloads',+ features: ['Everything in Pro','Shared workspaces','SSO','SOC 2 reports','Dedicated CSM'],+ cta: 'Talk to sales', highlight: false },+ ];+ const faqs = [+ { q: 'Can I change plans later?', a: 'Yes — upgrade, downgrade, or cancel any time.' },+ { q: 'Do you offer annual billing?', a: 'Annual billing is available with a 20% discount.' },+ { q: 'Is there a free trial of Pro?', a: '14 days, no credit card required.' },+ { q: 'How does enterprise pricing work?', a: 'Custom volume pricing — contact sales for a quote.' },+ ];+</script>++<section class="pt-20 pb-24">+ <h1 class="manus-display text-center">Simple pricing.<br/>Built for momentum.</h1>+ <p class="text-[#6B6B6B] text-lg max-w-[640px] text-center mx-auto mt-6">+ Start free. Upgrade when your team is ready to ship more.+ </p>++ <div class="max-w-[1100px] mx-auto px-6 mt-16 grid md:grid-cols-3 gap-6">+ {#each plans as p}+ <div class={'rounded-2xl p-8 flex flex-col border ' + (p.highlight+ ? 'bg-black text-white border-black'+ : 'bg-white text-[#1A1A1A] border-[#E5E3DC]')}>+ <div class="text-sm font-medium opacity-80">{p.name}</div>+ <div class="mt-2 flex items-baseline gap-1">+ <span class="font-serif text-5xl font-semibold">{p.price}</span>+ <span class={p.highlight ? 'text-white/60 text-base' : 'text-[#6B6B6B] text-base'}>{p.suffix}</span>+ </div>+ <div class={'mt-2 text-sm ' + (p.highlight ? 'text-white/70' : 'text-[#6B6B6B]')}>{p.tag}</div>+ <ul class="mt-6 space-y-2 text-sm">+ {#each p.features as f}+ <li class="flex items-center gap-2">+ <Icon icon={feCheck} size={14} />+ <span>{f}</span>+ </li>+ {/each}+ </ul>+ <button class={'mt-8 h-10 rounded-full text-sm font-medium ' + (p.highlight+ ? 'bg-white text-black hover:bg-white/90'+ : 'bg-black text-white hover:bg-[#1A1A1A]')}>{p.cta}</button>+ </div>+ {/each}+ </div>++ <div class="max-w-[760px] mx-auto px-6 mt-24">+ <h2 class="font-serif text-3xl font-semibold mb-6">Questions</h2>+ <div class="divide-y divide-[#E5E3DC] border-t border-[#E5E3DC]">+ {#each faqs as f}+ <details class="py-4">+ <summary class="cursor-pointer font-medium text-[#1A1A1A]">{f.q}</summary>+ <p class="mt-2 text-[#6B6B6B] text-sm">{f.a}</p>+ </details>+ {/each}+ </div>+ </div>+</section>diff --git a/chat/src/stores.js b/chat/src/stores.jsindex ab191558a..821ff9d06 100644--- a/chat/src/stores.js+++ b/chat/src/stores.js@@ -63,3 +63,18 @@ export const toolSchema = persisted('toolSchemaGroups', []);export const ttsEnabled = persisted('ttsEnabled', false);export const localAgentId = persisted('localAgentId', '');++export const route = writable(+ typeof window !== 'undefined' ? (window.location.hash.slice(1) || 'chat') : 'chat'+);+if (typeof window !== 'undefined') {+ window.addEventListener('hashchange', () => {+ route.set(window.location.hash.slice(1) || 'chat');+ });+ route.subscribe((r) => {+ const h = r === 'chat' ? '' : r;+ if (window.location.hash.slice(1) !== h) window.location.hash = h;+ });+}++export const mode = writable(null);diff --git a/chat/tailwind.config.cjs b/chat/tailwind.config.cjsindex faee1923c..9004f80e6 100644--- a/chat/tailwind.config.cjs+++ b/chat/tailwind.config.cjs@@ -86,6 +86,29 @@ const config = {'in-out':'linear(0, 0.005, 0.02 2.2%, 0.045, 0.081 4.9%, 0.16 7.3%, 0.465 16.2%, 0.561, 0.642,0.713 25.8%, 0.773, 0.825 32.7%, 0.868 36.5%, 0.905 40.9%, 0.935 45.7%,0.958 51.1%, 0.975 57.4%, 0.986 64.4%, 0.993 73.1%, 0.997 84.1%, 0.999)',},+ fontFamily: {+ sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],+ serif: ['Lora', 'ui-serif', 'Georgia', 'serif'],+ },+ colors: {+ paper: '#F5F4EF',+ 'paper-deep': '#EBE8E0',+ ink: '#1A1A1A',+ 'ink-soft': '#6B6B6B',+ rule: '#E5E3DC',+ manus: {+ blue: '#3B82F6',+ 'blue-soft': '#EFF6FF',+ 'blue-border': '#BFDBFE',+ },+ },+ boxShadow: {+ pop: '0 8px 24px -8px rgba(20,20,20,0.12), 0 2px 6px -2px rgba(20,20,20,0.06)',+ composer: '0 1px 2px rgba(20,20,20,0.04), 0 8px 32px -16px rgba(20,20,20,0.10)',+ },+ borderRadius: {+ composer: '20px',+ },},},diff --git a/manus-redesign/01-design-tokens.md b/manus-redesign/01-design-tokens.mdnew file mode 100644index 000000000..4d8bbf857--- /dev/null+++ b/manus-redesign/01-design-tokens.md@@ -0,0 +1,113 @@+# Task 01 — Design tokens, fonts, and global styles++## Goal+Install the visual foundation that every other Manus-style task will rely on: warm off-white page background, serif headline font, refined gray scale, accent blue, and base typography. After this task, the rest of the chat keeps working but the page background, body font, and base color tokens already feel like Manus.++## Codebase context+- Stack: Svelte 4 + Vite + Tailwind. Source root: `/workspaces/3D-Agent/chat/`.+- Tailwind config: `chat/tailwind.config.cjs`.+- Global CSS: `chat/src/app.pcss`.+- HTML entry: `chat/index.html` (already preloads KaTeX).++## What to ship++### 1. Add Google Fonts to `chat/index.html`+Insert in `<head>`, before the title:+```html+<link rel="preconnect" href="https://fonts.googleapis.com">+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap" rel="stylesheet">+```+Lora 600 stands in for Tiempos Headline; Inter is the body sans.++### 2. Extend `chat/tailwind.config.cjs` `theme.extend`+```js+fontFamily: {+ sans: ['Inter', 'system-ui', '-apple-system', 'sans-serif'],+ serif: ['Lora', 'ui-serif', 'Georgia', 'serif'],+},+colors: {+ paper: '#F5F4EF', // page background+ 'paper-deep': '#EBE8E0', // banner / muted surface+ ink: '#1A1A1A', // primary text+ 'ink-soft': '#6B6B6B', // secondary text+ rule: '#E5E3DC', // borders & hairlines+ manus: {+ blue: '#3B82F6',+ 'blue-soft': '#EFF6FF',+ 'blue-border': '#BFDBFE',+ },+},+boxShadow: {+ pop: '0 8px 24px -8px rgba(20,20,20,0.12), 0 2px 6px -2px rgba(20,20,20,0.06)',+ composer: '0 1px 2px rgba(20,20,20,0.04), 0 8px 32px -16px rgba(20,20,20,0.10)',+},+borderRadius: {+ composer: '20px',+},+```++### 3. Replace `chat/src/app.pcss` with+```css+@tailwind base;+@tailwind components;+@tailwind utilities;++@layer base {+ html, body {+ @apply bg-paper text-ink font-sans antialiased;+ font-feature-settings: 'ss01', 'cv11';+ }+ .font-display {+ @apply font-serif;+ font-feature-settings: 'liga', 'dlig';+ letter-spacing: -0.01em;+ }+}++@layer components {+ .manus-card {+ @apply bg-white border border-rule rounded-2xl;+ }+ .manus-chip {+ @apply inline-flex items-center gap-2 h-9 px-4 rounded-full+ border border-rule bg-white text-ink text-sm font-medium+ hover:bg-paper-deep transition-colors;+ }+ .manus-chip-selected {+ @apply bg-manus-blue-soft border-manus-blue-border text-manus-blue;+ }+ .manus-btn-primary {+ @apply inline-flex items-center justify-center h-9 px-4+ rounded-full bg-black text-white text-sm font-medium+ hover:bg-ink transition-colors;+ }+ .manus-btn-ghost {+ @apply inline-flex items-center justify-center h-9 px-4+ rounded-full bg-transparent text-ink text-sm font-medium+ hover:bg-paper-deep transition-colors;+ }+}+```++### 4. Hero text utility+Add to `app.pcss` `@layer components`:+```css+.manus-hero {+ @apply font-serif text-ink text-[44px] md:text-[56px] leading-[1.05] tracking-tight font-medium;+}+.manus-display {+ @apply font-serif text-ink text-[56px] md:text-[80px] leading-[1.02] tracking-tight font-semibold;+}+```++## Acceptance criteria+- App still builds and runs (`npm run dev` inside `chat/`).+- Page background renders as warm off-white `#F5F4EF`.+- Body text uses Inter; an element with class `font-display` uses Lora.+- The classes `manus-card`, `manus-chip`, `manus-chip-selected`, `manus-btn-primary`, `manus-btn-ghost`, `manus-hero`, `manus-display` are usable from any `.svelte` file.+- No existing chat behavior is broken; only colors/fonts changed.++## Out of scope+- Do not redesign the composer, sidebar, or message bubbles in this task.+- Do not add navigation or new pages.diff --git a/manus-redesign/02-top-navigation.md b/manus-redesign/02-top-navigation.mdnew file mode 100644index 000000000..f31405f4a--- /dev/null+++ b/manus-redesign/02-top-navigation.md@@ -0,0 +1,67 @@+# Task 02 — Top navigation bar++## Goal+Add a Manus-style top navigation: serif `manus` wordmark on the left, six center nav items (`Features`, `Solutions`, `Resources`, `Events`, `Business`, `Pricing`), and `Sign in` / `Sign up` on the right. Each center item is a hover trigger for a dropdown that other tasks fill in — this task only wires up the bar and the trigger buttons (empty stubs are fine).++## Codebase context+- Stack: Svelte 4 + Vite + Tailwind. Source root: `/workspaces/3D-Agent/chat/`.+- Main shell: `chat/src/App.svelte` (the existing app renders into `#app`).+- Add a `route` store at `chat/src/stores.js` if it doesn't exist:+ ```js+ import { writable } from 'svelte/store';+ export const route = writable('chat');+ ```+- Persist via `location.hash`: on load read `location.hash.slice(1) || 'chat'`; on `route` change set `location.hash`.++## Design tokens (use exactly)+- Page bg: `bg-paper` (`#F5F4EF`)+- Border: `border-rule` (`#E5E3DC`)+- Text primary: `text-ink` (`#1A1A1A`)+- Text muted: `text-ink-soft` (`#6B6B6B`)+- Logo font: `font-serif` (Lora, weight 600), size 22px, lowercase+- Nav link font: Inter 500, 14px, color `text-ink`, hover `text-ink-soft`+- Sign in button: `bg-black text-white rounded-full px-4 h-9 text-sm font-medium`+- Sign up button: `bg-white border border-rule text-ink rounded-full px-4 h-9 text-sm font-medium`++If the design tokens above are not yet defined in Tailwind, use literal hex values inline: `bg-[#F5F4EF]`, `border-[#E5E3DC]`, `text-[#1A1A1A]`, `text-[#6B6B6B]`.++## What to ship++### Component: `chat/src/manus/TopNav.svelte`+```+- <header> sticky top-0 z-40 bg-paper+ - max-width 1240px, mx-auto, h-14, px-6+ - flex items-center justify-between+ - LEFT: <button> that sets route='chat' — shows a small bot/logo SVG (use any feather icon temporarily) and the wordmark "manus" in font-serif+ - CENTER: <nav> hidden on <md, flex on md++ - 6 buttons: Features, Solutions, Resources, Events, Business, Pricing+ - Each: h-14 px-3 inline-flex items-center text-sm font-medium text-ink hover:text-ink-soft+ - First 5 are dropdown triggers — wire up { isOpen: bool } state per item.+ Hovering for >120ms or clicking opens the dropdown.+ Mouse-leave with 200ms grace closes it.+ Render a placeholder <div class="manus-card shadow-pop p-4 w-[420px]">Coming soon</div>+ anchored below the trigger (use absolute positioning inside a relative wrapper).+ Other tasks (08–11) will replace those placeholder bodies.+ - "Pricing" is a plain link: sets route='pricing'.+ - RIGHT: two buttons+ - "Sign in" (black pill) → sets route='signin'+ - "Sign up" (outlined pill) → sets route='signup'+```++### Mount in `App.svelte`+- Import `TopNav` and place it as the first child of the app root, above any existing chat layout. The chat content becomes `<main>` below it.+- Existing sidebar and chat shell stay as-is; just leave room (the existing layout already scrolls inside its own container).++### Mobile+- Below `md` (880px breakpoint per Tailwind config), hide center nav and right buttons; show a hamburger button that toggles a full-width sheet listing the same items (no nested dropdowns on mobile — each item is a flat link).++## Acceptance criteria+- The bar is present on every route.+- Hovering "Features", "Solutions", "Resources", "Events", "Business" opens a placeholder card; clicking outside or hovering away closes it after the 200ms grace.+- Clicking "Pricing" updates the URL hash to `#pricing` and sets the `route` store; clicking the logo sets it back to `chat`.+- "Sign in" / "Sign up" set `route` to `signin` / `signup` (target pages may render a placeholder until task 13 lands).+- Existing chat behavior is intact.++## Out of scope+- Dropdown contents — only stubs here.+- Pricing/auth page bodies (tasks 12 and 13).diff --git a/manus-redesign/03-announcement-banner.md b/manus-redesign/03-announcement-banner.mdnew file mode 100644index 000000000..82d264c49--- /dev/null+++ b/manus-redesign/03-announcement-banner.md@@ -0,0 +1,59 @@+# Task 03 — Announcement banner++## Goal+Add the muted "Manus is now part of Meta — bringing AI to businesses worldwide →" banner that sits directly below the top navigation. Dismissible with persistence in `localStorage`.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- Existing `localStorage` helper: `chat/src/localstorage.js` exports `persisted(key, default)` returning a Svelte writable store synced to localStorage.+- Banner mounts in `App.svelte` directly under `TopNav`. If `TopNav` isn't merged yet, mount it as the first child of `<body>` content with `position: sticky; top: 0` until task 02 lands; the integrator will reorder.++## Design tokens+- bg: `bg-paper-deep` (`#EBE8E0`); fallback `bg-[#EBE8E0]`+- text: `text-ink` (`#1A1A1A`); arrow same color+- height: 40px desktop, 56px mobile (text wraps OK)+- font: Inter 400, 14px, centered+- arrow: feather `arrow-right` icon, 16px, ml-2+- close button (right edge): feather `x` icon, 16px, `text-ink-soft hover:text-ink`, absolute right-3 top-1/2 -translate-y-1/2++## What to ship++### Component: `chat/src/manus/AnnouncementBanner.svelte`+```svelte+<script>+ import { persisted } from '../localstorage.js';+ import Icon from '../Icon.svelte';+ import { feArrowRight, feX } from '../feather.js';++ const dismissed = persisted('manusBannerDismissed_v1', false);+ export let href = '#'; // overridable; default is no-op+ export let message = 'Manus is now part of Meta — bringing AI to businesses worldwide';+</script>++{#if !$dismissed}+ <div class="relative w-full bg-[#EBE8E0] text-[#1A1A1A]">+ <a {href} class="flex items-center justify-center gap-2 h-10 text-sm font-medium hover:opacity-80">+ <span>{message}</span>+ <Icon icon={feArrowRight} size={16} />+ </a>+ <button+ class="absolute right-3 top-1/2 -translate-y-1/2 p-1 text-[#6B6B6B] hover:text-[#1A1A1A]"+ on:click={() => $dismissed = true}+ aria-label="Dismiss announcement">+ <Icon icon={feX} size={16} />+ </button>+ </div>+{/if}+```++### Mount+In `App.svelte`, render `<AnnouncementBanner />` immediately below `<TopNav />` and above `<main>`. If `feArrowRight` is not yet exported from `chat/src/feather.js`, add it (the project uses a generated re-export pattern — copy the existing pattern for any other arrow icon).++## Acceptance criteria+- Banner is visible on first load on every route.+- Clicking the X dismisses it; reload preserves dismissal.+- Banner uses the muted beige background and centered text with right arrow.+- Banner is full-width and sits under the top nav, above all page content.++## Out of scope+- A real "what's new" landing destination; the banner href is a stub.diff --git a/manus-redesign/04-empty-state-landing.md b/manus-redesign/04-empty-state-landing.mdnew file mode 100644index 000000000..c89e6fb09--- /dev/null+++ b/manus-redesign/04-empty-state-landing.md@@ -0,0 +1,61 @@+# Task 04 — Empty-state landing layout++## Goal+When the user has no messages in the active conversation, show a centered "What can I do for you?" hero with the composer below it and a row of suggestion chips beneath the composer. The existing sidebar collapses (or is hidden) on the empty state so the layout reads as a single centered column, just like Manus.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- Main shell: `chat/src/App.svelte`. Empty-state condition: `convo.messages.length === 0`.+- The current `App.svelte` already has logic at line ~1451 (`{#if convo.messages.length > 0}`) that gates the message stream. Use this as the seam: render the new landing in the `{:else}` branch.+- Existing sidebar markup is rendered conditionally based on a state variable already present in `App.svelte` (look for `sidebarOpen` or similar near the top of the script).++## Design tokens (use exactly)+- Page bg already `bg-paper` from task 01; do not set bg here.+- Hero: class `manus-hero` (defined in task 01) — fallback inline: `font-serif text-[44px] md:text-[56px] leading-[1.05] tracking-tight font-medium text-[#1A1A1A]`.+- Hero margin-bottom: 36px.+- Column max-width: 760px; horizontal padding: 24px; centered.+- Vertical layout: hero pushed ~22vh from the top of `<main>` so the composer sits roughly mid-screen on a 900px-tall window.++## What to ship++### Component: `chat/src/manus/EmptyState.svelte`+```svelte+<script>+ // The composer + chips are owned by tasks 05/06.+ // Import them and render them as children. While those components are not+ // yet implemented, render a slot so the integrator can drop them in.+</script>++<section class="w-full flex flex-col items-center px-6 pt-[18vh] md:pt-[22vh]">+ <h1 class="manus-hero text-center mb-9">What can I do for you?</h1>+ <div class="w-full max-w-[760px]">+ <slot name="composer" />+ </div>+ <div class="w-full max-w-[760px] mt-4">+ <slot name="chips" />+ </div>+</section>+```++### Wire into `App.svelte`+- Locate the conditional that toggles between the active conversation view and any current empty-state placeholder.+- In the empty-state branch, render `<EmptyState>` and pass the existing composer into the `composer` slot and the new chips row (task 06) into the `chips` slot.+ - If the composer component from task 05 is not yet merged, pass the **existing** input element into the `composer` slot — this task must render something useful even alone.+- Hide the sidebar on the empty state. Two options, pick the smallest diff:+ - If a `sidebarOpen` writable already exists, set it to `false` whenever `convo.messages.length === 0`.+ - Otherwise, wrap the sidebar render in `{#if convo.messages.length > 0}`.+ Restore the sidebar when messages exist (don't permanently remove it).++### Active-state untouched+- When `convo.messages.length > 0`, render the existing chat shell exactly as it works today. No layout changes there (task 19 handles that).++## Acceptance criteria+- Loading the chat with a fresh conversation shows the centered hero "What can I do for you?" in serif font, a composer below it, and an empty chips slot below the composer.+- Sending a first message hides the empty-state landing and reveals the existing chat UI.+- No sidebar is visible while the empty-state landing is shown; the page reads as a centered column under the top nav and announcement banner.+- The hero is vertically centered-ish (≈22vh from the top of the main area) and horizontally centered.++## Out of scope+- The composer's internal redesign (task 05).+- The chip set itself (task 06).+- The active conversation styling (task 19).diff --git a/manus-redesign/05-composer-input.md b/manus-redesign/05-composer-input.mdnew file mode 100644index 000000000..0cdafeb33--- /dev/null+++ b/manus-redesign/05-composer-input.md@@ -0,0 +1,67 @@+# Task 05 — Composer input component++## Goal+Replace the existing chat input with a Manus-style composer: a large white rounded card containing a multi-line textarea, a "+" attach button at the bottom-left, an optional row of inline mode pills (e.g. "Slides", "Website", "Design"), and a circular send button at the bottom-right that flips from disabled gray to solid black once the textarea is non-empty.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- Existing input bar lives inside `chat/src/App.svelte`. The current send handler is `complete()` (imported from `convo.js`); the current textarea is bound via `bind:value={input}` (variable name may differ — search for `placeholder=` in `App.svelte`).+- Existing attachment plumbing uses `readFileAsDataURL` from `chat/src/util.js` and a `feather` paperclip icon — re-use this for the "+" button.+- Icons: import from `chat/src/feather.js` (already exports `feArrowUp`, `fePaperclip`, etc.).++## Design tokens+- Card: `bg-white border border-[#E5E3DC] rounded-[20px] shadow-composer` (composer shadow defined in task 01 — fallback: `shadow-[0_1px_2px_rgba(20,20,20,0.04),0_8px_32px_-16px_rgba(20,20,20,0.10)]`).+- Card padding: `pt-5 px-5 pb-3`.+- Min height: 140px; textarea auto-grows to 320px max then scrolls.+- Textarea: transparent bg, no border, no focus ring; placeholder color `#9C9A93`, font Inter 16px, `text-ink` (`#1A1A1A`).+- Footer row: flex items-center justify-between, mt-3.+- "+" button: 36px circle, `border border-[#E5E3DC] bg-white text-[#1A1A1A] hover:bg-[#F0EEE6]`.+- Inline mode pills (between "+" and the right send button): `manus-chip` style; the currently selected mode uses `manus-chip-selected`.+- Send button: 36px circle. Disabled state `bg-[#E7E5DD] text-[#9C9A93]`. Enabled state `bg-black text-white hover:bg-[#1A1A1A]`. Icon `feArrowUp` size 16px.+- Keyboard: Enter sends; Shift+Enter inserts newline; Esc clears focus.++## What to ship++### Component: `chat/src/manus/Composer.svelte`+Props:+```ts+{+ value: string; // bind:value+ placeholder?: string; // default: 'Assign a task or ask anything'+ mode?: string | null; // current mode chip, e.g. 'slides'+ modes?: Array<{ id: string; label: string; icon?: any; color?: string }>; // inline mode pills+ attachments?: Array<{ name: string; url: string }>;+ disabled?: boolean;+ onSend: () => void;+ onAttach: (files: FileList) => void;+ onModeClear: () => void;+}+```++Behavior:+- Auto-grow textarea: bind to a CSS variable or use `field-sizing: content` plus a `max-h-[320px]`.+- Show selected mode as an inline pill on the left of the footer, right of the "+". The pill has the mode's icon + label and an "x" to clear (calls `onModeClear`).+- Above the footer row, render attachment chips (`FilePill.svelte` already exists — reuse it).+- The send button is disabled when `value.trim() === ''` AND no attachments; otherwise enabled and triggers `onSend`.++### Wire into `App.svelte`+- Replace the existing input markup with `<Composer ... />`.+- Bind `value` to the existing input variable.+- `onSend` calls the existing `complete()` flow.+- `onAttach` calls the existing attachment handler.+- For the empty-state view (task 04), render the composer in the slot it provides. For the active-conversation view, render it pinned to the bottom as today (task 19 will refine this).++### Existing controls+- The model selector, agent picker, and tool dropdown that currently sit near the input must NOT disappear. Move them to a small icon row just below the composer card on the empty state, with smaller styling (`text-xs text-ink-soft`), or into the "+" menu. Pick whichever is the smallest change.++## Acceptance criteria+- Composer renders as a tall white rounded card matching the Manus screenshots.+- Typing enables the send button (color flips to black); empty disables it.+- Enter sends, Shift+Enter newlines.+- Attachments still work end-to-end (verify with at least one image attach + send).+- Existing model/agent selectors are still reachable.+- The same component is used on the empty state and (when task 19 lands) at the bottom of an active conversation.++## Out of scope+- The chip rows below the composer (task 06).+- The flow-specific UI inside the card when a mode is selected (tasks 14–18).diff --git a/manus-redesign/06-suggestion-chips.md b/manus-redesign/06-suggestion-chips.mdnew file mode 100644index 000000000..950d6b722--- /dev/null+++ b/manus-redesign/06-suggestion-chips.md@@ -0,0 +1,80 @@+# Task 06 — Primary suggestion chips row++## Goal+Render the row of five chips directly below the composer on the empty-state landing: `Create slides`, `Build website`, `Develop desktop apps`, `Design`, `More`. Clicking the first four sets a `mode` store and updates the composer's inline mode pill + flow UI (tasks 14–17 own those flows). Clicking `More` opens the dropdown defined in task 07.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- Add a `mode` writable store in `chat/src/stores.js` (create if absent):+ ```js+ import { writable } from 'svelte/store';+ export const mode = writable(null); // null | 'slides' | 'website' | 'desktop' | 'design' | 'schedule' | 'research' | 'spreadsheet' | 'visualization' | 'video' | 'audio' | 'chat' | 'playbook'+ ```+- Icons live in `chat/src/feather.js`. The Manus chips use simple line icons; map as follows (add any missing exports to `feather.js`):+ - Create slides → `feLayout` (or any "deck"-like icon)+ - Build website → `feCode` (the `< />` glyph)+ - Develop desktop apps → `feMonitor`+ - Design → `feFeather` or a magic-wand icon — feather has `feZap`; that's fine+ - More → `feMoreHorizontal`++## Design tokens+- Chip: class `manus-chip` (defined in task 01) — fallback: `inline-flex items-center gap-2 h-9 px-4 rounded-full border border-[#E5E3DC] bg-white text-[#1A1A1A] text-sm font-medium hover:bg-[#F0EEE6] transition-colors`.+- Selected: `manus-chip-selected` — `bg-[#EFF6FF] border-[#BFDBFE] text-[#3B82F6]`.+- Row: `flex flex-wrap gap-3 justify-center mt-4`.++## What to ship++### Component: `chat/src/manus/SuggestionChips.svelte`+```svelte+<script>+ import { mode } from '../stores.js';+ import Icon from '../Icon.svelte';+ import { feCode, feMonitor, feZap, feMoreHorizontal, feLayout } from '../feather.js';+ import MoreDropdown from './MoreDropdown.svelte'; // task 07++ let moreOpen = false;+ const chips = [+ { id: 'slides', label: 'Create slides', icon: feLayout },+ { id: 'website', label: 'Build website', icon: feCode },+ { id: 'desktop', label: 'Develop desktop apps', icon: feMonitor },+ { id: 'design', label: 'Design', icon: feZap },+ ];+ function pick(id) { mode.set($mode === id ? null : id); }+</script>++<div class="flex flex-wrap gap-3 justify-center mt-4">+ {#each chips as c}+ <button class="manus-chip {$mode === c.id ? 'manus-chip-selected' : ''}"+ on:click={() => pick(c.id)}>+ <Icon icon={c.icon} size={16} />+ {c.label}+ </button>+ {/each}+ <div class="relative">+ <button class="manus-chip" on:click={() => moreOpen = !moreOpen}>+ <Icon icon={feMoreHorizontal} size={16} />+ More+ </button>+ {#if moreOpen}+ <MoreDropdown on:close={() => moreOpen = false} />+ {/if}+ </div>+</div>+```++### Wire into `EmptyState`+- In task 04's `EmptyState.svelte`, fill the `chips` slot with `<SuggestionChips />` from `App.svelte`.+- Subscribe to `mode` in `App.svelte` to pass it down to the `Composer` so the inline mode pill and flow UI update.++### Stub for `MoreDropdown.svelte`+If task 07 is not yet merged, create a placeholder `chat/src/manus/MoreDropdown.svelte` that renders an empty card so this component compiles. Task 07 will replace the body.++## Acceptance criteria+- The five chips render below the composer on the empty state, centered.+- Clicking a chip sets `$mode` and applies the selected styling; clicking it again clears.+- Setting `$mode` is reflected by the composer's inline mode pill (when task 05 is merged).+- `More` opens a dropdown anchored to the chip; clicking outside closes it.++## Out of scope+- The contents of `More` (task 07).+- What each mode actually changes inside the composer (tasks 14–18).diff --git a/manus-redesign/07-more-dropdown.md b/manus-redesign/07-more-dropdown.mdnew file mode 100644index 000000000..e048c2340--- /dev/null+++ b/manus-redesign/07-more-dropdown.md@@ -0,0 +1,92 @@+# Task 07 — "More" dropdown menu++## Goal+Build the dropdown that opens from the `More` chip on the empty state. It contains nine items (icon + label). Most items set the `mode` store; `Playbook` opens an external link with an arrow indicator.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `mode` writable in `chat/src/stores.js` (created in task 06).+- Icons: `chat/src/feather.js` — add any of these that don't exist:+ - `feSmartphone` (Develop apps), `feCalendar` (Schedule task), `feGlobe` or `feTarget` (Wide Research),+ - `feGrid` (Spreadsheet), `feBarChart2` (Visualization), `fePlay` (Video), `feActivity` (Audio),+ - `feMessageSquare` (Chat mode), `feBookOpen` (Playbook), `feExternalLink` (Playbook trailing arrow).++## Design tokens+- Card: `bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-2 w-[260px]`.+- Item: `flex items-center gap-3 w-full px-3 h-10 rounded-lg text-sm font-medium text-[#1A1A1A] hover:bg-[#F5F4EF]`.+- Icon: 16px, `text-[#1A1A1A]`.+- Trailing external arrow: 14px, `text-[#9C9A93]`, ml-auto.+- Position: anchored above-right of the More chip with `bottom-full mb-2 right-0`. On screens narrower than the dropdown, fall back to `left-1/2 -translate-x-1/2`.++## What to ship++### Component: `chat/src/manus/MoreDropdown.svelte`+```svelte+<script>+ import { createEventDispatcher } from 'svelte';+ import Icon from '../Icon.svelte';+ import { mode } from '../stores.js';+ import {+ feSmartphone, feCalendar, feGlobe, feGrid, feBarChart2,+ fePlay, feActivity, feMessageSquare, feBookOpen, feExternalLink+ } from '../feather.js';++ const dispatch = createEventDispatcher();+ const items = [+ { id: 'desktop', label: 'Develop apps', icon: feSmartphone },+ { id: 'schedule', label: 'Schedule task', icon: feCalendar },+ { id: 'research', label: 'Wide Research', icon: feGlobe },+ { id: 'spreadsheet', label: 'Spreadsheet', icon: feGrid },+ { id: 'visualization', label: 'Visualization', icon: feBarChart2 },+ { id: 'video', label: 'Video', icon: fePlay },+ { id: 'audio', label: 'Audio', icon: feActivity },+ { id: 'chat', label: 'Chat mode', icon: feMessageSquare },+ { id: 'playbook', label: 'Playbook', icon: feBookOpen, external: true },+ ];++ function pick(item) {+ if (item.external) {+ window.open('/playbook', '_blank');+ } else {+ mode.set(item.id);+ }+ dispatch('close');+ }++ function onKey(e) { if (e.key === 'Escape') dispatch('close'); }+</script>++<svelte:window on:keydown={onKey} />++<div class="absolute bottom-full mb-2 right-0 z-30 bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-2 w-[260px]">+ {#each items as item}+ <button+ class="flex items-center gap-3 w-full px-3 h-10 rounded-lg text-sm font-medium text-[#1A1A1A] hover:bg-[#F5F4EF]"+ on:click={() => pick(item)}>+ <Icon icon={item.icon} size={16} />+ <span>{item.label}</span>+ {#if item.external}+ <Icon icon={feExternalLink} size={14} class="ml-auto text-[#9C9A93]" />+ {/if}+ </button>+ {/each}+</div>++<button+ class="fixed inset-0 z-20 cursor-default"+ aria-hidden="true"+ on:click={() => dispatch('close')}>+</button>+```++(Note: Svelte's `class` on an `<Icon>` may need to be `class:trailing` or a wrapper `<span class="ml-auto …">`; pick the form that compiles cleanly with the existing `Icon.svelte` component. If `Icon.svelte` does not forward `class`, wrap the trailing icon in a `<span class="ml-auto text-[#9C9A93]">`.)++## Acceptance criteria+- Clicking `More` from `SuggestionChips` opens this dropdown anchored above-right.+- Each item sets `$mode` to its id (except `Playbook`, which opens `/playbook` in a new tab) and closes the dropdown.+- Esc closes the dropdown.+- Clicking outside the dropdown closes it (achieved via the full-viewport dismiss button below the card).++## Out of scope+- The flow UI inside the composer for each mode (tasks 14–18).+- The `/playbook` page itself (task 18).diff --git a/manus-redesign/08-nav-dropdown-features.md b/manus-redesign/08-nav-dropdown-features.mdnew file mode 100644index 000000000..fe072327f--- /dev/null+++ b/manus-redesign/08-nav-dropdown-features.md@@ -0,0 +1,83 @@+# Task 08 — Features mega-dropdown++## Goal+Fill the `Features` dropdown in the top nav with eight rich items. Each item has an icon, a bold title, and a one-line subtitle. Clicking any item sets `route` to a feature subpage (`features/web-app`, `features/mobile-app`, `features/ai-design`, `features/ai-slides`, `features/browser-operator`, `features/wide-research`, `features/mail-manus`, `features/agent-skills`). The actual subpages are owned by task 20.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store at `chat/src/stores.js` (created in task 02). If not yet present, create it as `export const route = writable('chat')`.+- `TopNav` component from task 02 already renders a placeholder for `Features` — replace its body with this dropdown.+- Icons: `chat/src/feather.js`. Add any missing exports.++## Design tokens+- Card: `bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]`.+- Item: `flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]`.+- Icon container: 36px square, `bg-[#F5F4EF] text-[#1A1A1A] rounded-lg flex items-center justify-center`, icon 18px.+- Title: `text-sm font-semibold text-[#1A1A1A]`.+- Subtitle: `text-xs text-[#6B6B6B] mt-0.5`.+- Position: anchored under the `Features` trigger (`top-full mt-2 left-0`). Open on hover with 120ms intent delay; close on mouse-leave with 200ms grace.++## Items (in order)+| Title | Subtitle | route | Suggested feather icon |+|---|---|---|---|+| Web app | Build full-stack, AI-powered sites | `features/web-app` | `feGlobe` |+| Mobile app | Build native iOS & Android apps | `features/mobile-app` | `feSmartphone` |+| AI design | Automates the entire design journey | `features/ai-design` | `feZap` |+| AI slides | Use Nano Banana Pro to create slides | `features/ai-slides` | `feLayout` |+| Manus browser operator | Lend a tab to Manus | `features/browser-operator` | `feChrome` (fallback `feMonitor`) |+| Wide Research | Parallel research at scale | `features/wide-research` | `feTarget` |+| Mail Manus | Turn any email into action | `features/mail-manus` | `feMail` |+| Agent Skills | Automate your expertise | `features/agent-skills` | `fePuzzlePiece` (fallback `feGrid`) |++## What to ship++### Component: `chat/src/manus/dropdowns/FeaturesDropdown.svelte`+```svelte+<script>+ import { route } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import {+ feGlobe, feSmartphone, feZap, feLayout, feMonitor,+ feTarget, feMail, feGrid+ } from '../../feather.js';++ const items = [+ { title: 'Web app', subtitle: 'Build full-stack, AI-powered sites', route: 'features/web-app', icon: feGlobe },+ { title: 'Mobile app', subtitle: 'Build native iOS & Android apps', route: 'features/mobile-app', icon: feSmartphone },+ { title: 'AI design', subtitle: 'Automates the entire design journey', route: 'features/ai-design', icon: feZap },+ { title: 'AI slides', subtitle: 'Use Nano Banana Pro to create slides',route: 'features/ai-slides', icon: feLayout },+ { title: 'Manus browser operator', subtitle: 'Lend a tab to Manus', route: 'features/browser-operator', icon: feMonitor },+ { title: 'Wide Research', subtitle: 'Parallel research at scale', route: 'features/wide-research', icon: feTarget },+ { title: 'Mail Manus', subtitle: 'Turn any email into action', route: 'features/mail-manus', icon: feMail },+ { title: 'Agent Skills', subtitle: 'Automate your expertise', route: 'features/agent-skills', icon: feGrid },+ ];+</script>++<div class="bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]">+ {#each items as item}+ <button+ class="flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]"+ on:click={() => route.set(item.route)}>+ <span class="w-9 h-9 rounded-lg bg-[#F5F4EF] flex items-center justify-center shrink-0">+ <Icon icon={item.icon} size={18} />+ </span>+ <span class="flex-1 min-w-0">+ <span class="block text-sm font-semibold text-[#1A1A1A]">{item.title}</span>+ <span class="block text-xs text-[#6B6B6B] mt-0.5">{item.subtitle}</span>+ </span>+ </button>+ {/each}+</div>+```++### Wire into `TopNav.svelte`+Replace the placeholder under the Features trigger with `<FeaturesDropdown />`. Keep the existing hover/click open logic from task 02.++## Acceptance criteria+- Hovering `Features` opens the 420px-wide card with eight items, icons, titles, and subtitles.+- Clicking an item sets `$route` (URL hash updates accordingly) and closes the dropdown.+- Tabbing into the dropdown also exposes items (use real `<button>` elements).+- Visually matches the Manus reference: icon tile on the left, title + grey subtitle on the right.++## Out of scope+- The destination pages themselves (task 20).diff --git a/manus-redesign/09-nav-dropdown-solutions.md b/manus-redesign/09-nav-dropdown-solutions.mdnew file mode 100644index 000000000..84a2ac98c--- /dev/null+++ b/manus-redesign/09-nav-dropdown-solutions.md@@ -0,0 +1,49 @@+# Task 09 — Solutions mega-dropdown++## Goal+Build the `Solutions` dropdown in the top nav: a card listing role/industry solutions. Items route to `solutions/<slug>`. The actual destination is a single shared marketing template (task 22 owns the "Launch business applications…" hero); each Solutions item routes to that page with a slug query so it can render a heading variant.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store and `TopNav` from task 02.+- `chat/src/manus/dropdowns/` — same folder as task 08.+- Icons from `chat/src/feather.js`.++## Design tokens+Identical to task 08 (Features dropdown):+- Card: `bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]`.+- Item: `flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]`.+- Icon tile: `w-9 h-9 rounded-lg bg-[#F5F4EF] flex items-center justify-center`.+- Title `text-sm font-semibold text-[#1A1A1A]`; subtitle `text-xs text-[#6B6B6B] mt-0.5`.+- Open on hover (120ms intent), close on mouse-leave (200ms grace).++## Items (in order)+| Title | Subtitle | route | Icon |+|---|---|---|---|+| Sales | Pipeline insights and deal acceleration | `solutions/sales` | `feTrendingUp` |+| Marketing | Campaigns, content, and analytics | `solutions/marketing` | `feSpeaker` |+| Engineering | Internal tools and automations | `solutions/engineering` | `feCpu` |+| Operations | Reporting, dashboards, workflows | `solutions/operations` | `feActivity` |+| Customer Support | Ticket triage and knowledge bots | `solutions/support` | `feLifeBuoy` (fallback `feUsers`) |+| Finance | Spend analysis and forecasting | `solutions/finance` | `feDollarSign` |+| HR & People | Hiring, onboarding, internal Q&A | `solutions/hr` | `feUsers` |+| Founders & Startups | Launch faster with fewer engineers | `solutions/founders` | `feStar` |++## What to ship++### Component: `chat/src/manus/dropdowns/SolutionsDropdown.svelte`+Same shape as `FeaturesDropdown.svelte` but with the items above. On click: `route.set('solutions/' + slug)`.++### Wire into `TopNav.svelte`+Replace the `Solutions` placeholder with `<SolutionsDropdown />`.++### Ensure feather icons exist+If any of `feTrendingUp`, `feSpeaker`, `feCpu`, `feActivity`, `feLifeBuoy`, `feDollarSign`, `feUsers`, `feStar` is not exported from `chat/src/feather.js`, add it. The repo already has a `generatefeathericons.sh` script — use the same generator, or hand-add the SVG path data following the pattern of existing exports.++## Acceptance criteria+- Hovering `Solutions` opens an 8-item dropdown matching the Features dropdown styling.+- Clicking any item navigates to `solutions/<slug>` (hash route updates).+- The destination page rendering is owned by task 22; this task only ensures the routes resolve to *something* — if task 22 is not yet merged, render a temporary `<div>Solutions: {slug}</div>` placeholder in `App.svelte`'s route switch.++## Out of scope+- The marketing destination page body (task 22).diff --git a/manus-redesign/10-nav-dropdown-resources.md b/manus-redesign/10-nav-dropdown-resources.mdnew file mode 100644index 000000000..0417c7936--- /dev/null+++ b/manus-redesign/10-nav-dropdown-resources.md@@ -0,0 +1,38 @@+# Task 10 — Resources mega-dropdown++## Goal+Build the `Resources` dropdown matching the reference: 5 items — Blog, Docs, Updates, Use cases, Trust center — each with icon, title, and subtitle. Routes go to `resources/<slug>`.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store + `TopNav` from task 02.+- Add to `chat/src/manus/dropdowns/`.++## Design tokens+Same as tasks 08–09:+- Card: `bg-white border border-[#E5E3DC] rounded-2xl shadow-pop p-3 w-[420px]`.+- Item: `flex items-start gap-3 w-full px-3 py-3 rounded-xl text-left hover:bg-[#F5F4EF]`.+- Icon tile: 36px square, `bg-[#F5F4EF] rounded-lg`, icon 18px.+- Title 14px semibold ink; subtitle 12px ink-soft.++## Items (in order)+| Title | Subtitle | route | Icon |+|---|---|---|---|+| Blog | Ideas, guides, and user stories | `resources/blog` | `feFileText` |+| Docs | Learn about Manus and get started | `resources/docs` | `feBook` |+| Updates | What's new with Manus? | `resources/updates` | `feList` |+| Use cases | Best practices in action | `resources/use-cases` | `feCompass` (fallback `feGlobe`) |+| Trust center | Security and compliance | `resources/trust-center` | `feShield` |++## What to ship+- Component `chat/src/manus/dropdowns/ResourcesDropdown.svelte` (same template as Features dropdown, items above).+- Wire into `TopNav` `Resources` slot.+- Ensure missing feather icons exist in `chat/src/feather.js`.++## Acceptance criteria+- Hovering `Resources` reveals the 5-item dropdown.+- Clicking each item updates `$route` and the URL hash.+- Destination page bodies are owned by task 21 — if task 21 is not yet merged, a placeholder `<div>` is acceptable.++## Out of scope+- Page bodies (task 21).diff --git a/manus-redesign/11-nav-dropdown-events-business.md b/manus-redesign/11-nav-dropdown-events-business.mdnew file mode 100644index 000000000..baa79ea43--- /dev/null+++ b/manus-redesign/11-nav-dropdown-events-business.md@@ -0,0 +1,54 @@+# Task 11 — Events and Business nav dropdowns++## Goal+Two more nav dropdowns matching the Features/Solutions/Resources style. Both have shorter item lists and route to `events/<slug>` and `business/<slug>` respectively.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store + `TopNav` from task 02.+- Add to `chat/src/manus/dropdowns/`.++## Design tokens+Same as tasks 08–10. Card 420px wide, item rows with 36px icon tile + title + subtitle.++## Events items+| Title | Subtitle | route | Icon |+|---|---|---|---|+| Webinars | Live sessions with the Manus team | `events/webinars` | `feVideo` |+| Conferences | Where you can find us in person | `events/conferences` | `feMapPin` |+| Office hours | Weekly Q&A with engineers | `events/office-hours` | `feClock` |+| Hackathons | Build with Manus alongside the community | `events/hackathons` | `feZap` |+| Past recordings | Replay every session on demand | `events/recordings` | `fePlay` |++## Business items+| Title | Subtitle | route | Icon |+|---|---|---|---|+| Enterprise | Deploy Manus across your org | `business/enterprise` | `feBriefcase` |+| Security & compliance | SOC 2, GDPR, custom DPAs | `business/security` | `feShield` |+| Custom deployments | VPC and on-prem options | `business/deployments` | `feServer` |+| Customer stories | How teams ship faster with Manus | `business/customers` | `feUsers` |+| Contact sales | Talk to a real human | `business/contact-sales` | `feMessageCircle` |++## What to ship+- Component `chat/src/manus/dropdowns/EventsDropdown.svelte` — items above, same template.+- Component `chat/src/manus/dropdowns/BusinessDropdown.svelte` — items above, same template.+- Wire both into `TopNav`.+- Ensure feather icons exist; add any missing.++## Page bodies for these routes+This task does not own the destination pages. In `App.svelte`'s route switch, render a generic placeholder for `events/*` and `business/*` slugs:+```html+<div class="max-w-[760px] mx-auto px-6 pt-24 text-center">+ <h1 class="manus-display">{title}</h1>+ <p class="text-[#6B6B6B] mt-4 text-lg">Coming soon.</p>+</div>+```+where `title` is derived from the slug ("contact-sales" → "Contact sales"). Task 22's marketing page can be reused later if a richer template is desired.++## Acceptance criteria+- Hovering `Events` and `Business` reveals their respective dropdowns.+- Each item routes correctly and the placeholder page renders the slug-derived title.+- Existing flows are untouched.++## Out of scope+- Real marketing copy / illustrations for these subpages.diff --git a/manus-redesign/12-pricing-page.md b/manus-redesign/12-pricing-page.mdnew file mode 100644index 000000000..5f27b3e02--- /dev/null+++ b/manus-redesign/12-pricing-page.md@@ -0,0 +1,122 @@+# Task 12 — Pricing page++## Goal+Render a Manus-style pricing page at `route === 'pricing'`: serif headline, subheadline, three plan cards (Free, Pro, Business), and a small FAQ section below. The page sits below the top nav + announcement banner and uses the standard `bg-paper`.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store from task 02. Add a route switch in `App.svelte` if not present:+ ```svelte+ {#if $route === 'pricing'}+ <Pricing />+ {:else if $route === 'signin' || $route === 'signup'}+ <AuthPage kind={$route} />+ {:else if $route.startsWith('features/')}+ <FeaturePage slug={$route.slice('features/'.length)} />+ {:else if $route.startsWith('resources/')}+ <ResourcePage slug={$route.slice('resources/'.length)} />+ {:else if $route.startsWith('solutions/') || $route.startsWith('events/') || $route.startsWith('business/')}+ <MarketingPage slug={$route} />+ {:else}+ <!-- the existing chat shell -->+ {/if}+ ```++## Design tokens+- Page bg: `bg-paper`.+- Hero headline: `manus-display` (serif, 56–80px). Centered.+- Sub: `text-[#6B6B6B] text-lg max-w-[640px] text-center mx-auto mt-4`.+- Plan card: `bg-white border border-[#E5E3DC] rounded-2xl p-8 flex flex-col`.+- Highlighted plan (Pro): `bg-black text-white border-black`. Inside, swap text colors: heading white, body `text-white/70`, divider `border-white/20`.+- Plan price: serif 48px font-semibold; "/mo" trailing in 16px regular `text-ink-soft`.+- CTA: full-width `manus-btn-primary` for outlined cards; outlined-on-black for the highlighted card.+- Feature list: ul with check icons (`feCheck`), 14px, gap-2.++## Plan content+| Plan | Price | Tagline | Features |+|---|---|---|---|+| Free | $0/mo | Try Manus on small projects | 50 messages / month · Single-agent runs · Community support |+| Pro | $39/mo | For builders who ship daily | Unlimited messages · Multi-agent runs · Priority models · Email support |+| Business | $129/mo | For teams running real workloads | Everything in Pro · Shared workspaces · SSO · SOC 2 reports · Dedicated CSM |++## What to ship++### Component: `chat/src/manus/pages/Pricing.svelte`+```svelte+<script>+ import Icon from '../../Icon.svelte';+ import { feCheck } from '../../feather.js';+ const plans = [+ { name: 'Free', price: '$0', suffix: '/mo', tag: 'Try Manus on small projects',+ features: ['50 messages / month','Single-agent runs','Community support'],+ cta: 'Get started', highlight: false },+ { name: 'Pro', price: '$39', suffix: '/mo', tag: 'For builders who ship daily',+ features: ['Unlimited messages','Multi-agent runs','Priority models','Email support'],+ cta: 'Start free trial', highlight: true },+ { name: 'Business', price: '$129', suffix: '/mo', tag: 'For teams running real workloads',+ features: ['Everything in Pro','Shared workspaces','SSO','SOC 2 reports','Dedicated CSM'],+ cta: 'Talk to sales', highlight: false },+ ];+ const faqs = [+ { q: 'Can I change plans later?', a: 'Yes — upgrade, downgrade, or cancel any time.' },+ { q: 'Do you offer annual billing?', a: 'Annual billing is available with a 20% discount.' },+ { q: 'Is there a free trial of Pro?', a: '14 days, no credit card required.' },+ { q: 'How does enterprise pricing work?', a: 'Custom volume pricing — contact sales for a quote.' },+ ];+</script>++<section class="pt-20 pb-24">+ <h1 class="manus-display text-center">Simple pricing.<br/>Built for momentum.</h1>+ <p class="text-[#6B6B6B] text-lg max-w-[640px] text-center mx-auto mt-6">+ Start free. Upgrade when your team is ready to ship more.+ </p>++ <div class="max-w-[1100px] mx-auto px-6 mt-16 grid md:grid-cols-3 gap-6">+ {#each plans as p}+ <div class={'rounded-2xl p-8 flex flex-col border ' + (p.highlight+ ? 'bg-black text-white border-black'+ : 'bg-white text-[#1A1A1A] border-[#E5E3DC]')}>+ <div class="text-sm font-medium opacity-80">{p.name}</div>+ <div class="mt-2 flex items-baseline gap-1">+ <span class="font-serif text-5xl font-semibold">{p.price}</span>+ <span class={p.highlight ? 'text-white/60 text-base' : 'text-[#6B6B6B] text-base'}>{p.suffix}</span>+ </div>+ <div class={'mt-2 text-sm ' + (p.highlight ? 'text-white/70' : 'text-[#6B6B6B]')}>{p.tag}</div>+ <ul class="mt-6 space-y-2 text-sm">+ {#each p.features as f}+ <li class="flex items-center gap-2">+ <Icon icon={feCheck} size={14} />+ <span>{f}</span>+ </li>+ {/each}+ </ul>+ <button class={'mt-8 h-10 rounded-full text-sm font-medium ' + (p.highlight+ ? 'bg-white text-black hover:bg-white/90'+ : 'bg-black text-white hover:bg-[#1A1A1A]')}>{p.cta}</button>+ </div>+ {/each}+ </div>++ <div class="max-w-[760px] mx-auto px-6 mt-24">+ <h2 class="font-serif text-3xl font-semibold mb-6">Questions</h2>+ <div class="divide-y divide-[#E5E3DC] border-t border-[#E5E3DC]">+ {#each faqs as f}+ <details class="py-4">+ <summary class="cursor-pointer font-medium text-[#1A1A1A]">{f.q}</summary>+ <p class="mt-2 text-[#6B6B6B] text-sm">{f.a}</p>+ </details>+ {/each}+ </div>+ </div>+</section>+```++## Acceptance criteria+- Visiting `#pricing` shows this page; the chat is hidden.+- Three cards render side-by-side on desktop, stacked on mobile.+- The Pro card has the inverted (black) styling.+- FAQ accordion expands/collapses.+- Top nav remains visible above the page.++## Out of scope+- Wiring CTAs to any real billing flow — they're presentational.diff --git a/manus-redesign/13-auth-pages.md b/manus-redesign/13-auth-pages.mdnew file mode 100644index 000000000..eb2820464--- /dev/null+++ b/manus-redesign/13-auth-pages.md@@ -0,0 +1,109 @@+# Task 13 — Sign in / Sign up pages++## Goal+Render Manus-style auth pages at `route === 'signin'` and `route === 'signup'`. Centered card with serif headline, email + password fields, primary submit button, divider, and an "OAuth with Google / GitHub" pair. The form does not need real auth — submit just calls `console.log` and routes back to chat. Keep it visually faithful.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store from task 02. Render through the route switch shown in task 12.++## Design tokens+- Page bg: `bg-paper`.+- Card: `bg-white border border-[#E5E3DC] rounded-2xl p-8 w-full max-w-[420px] mx-auto`.+- Headline: `font-serif text-3xl font-semibold text-center`.+- Sub: `text-[#6B6B6B] text-sm text-center mt-2`.+- Field: `w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white text-[#1A1A1A] focus:outline-none focus:border-[#1A1A1A]`.+- Field label: `text-xs font-medium text-[#6B6B6B] mb-1.5`.+- Primary submit: `manus-btn-primary` full width, height 44px.+- OAuth button: `bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-xl h-11 w-full flex items-center justify-center gap-2 hover:bg-[#F5F4EF]`.+- Divider: `flex items-center gap-3 text-xs text-[#9C9A93] my-4` with `<span class="flex-1 h-px bg-[#E5E3DC]" />` on each side.+- Toggle link below card: `Already have an account? Sign in` / `Don't have an account? Sign up` — link in `text-[#1A1A1A] underline`.++## Component: `chat/src/manus/pages/AuthPage.svelte`++```svelte+<script>+ import { route } from '../../stores.js';+ export let kind = 'signin'; // 'signin' | 'signup'++ let email = '';+ let password = '';+ let name = '';++ function submit() {+ console.log(kind, { email, password, name });+ route.set('chat');+ }+</script>++<section class="pt-24 pb-16 px-6">+ <div class="bg-white border border-[#E5E3DC] rounded-2xl p-8 w-full max-w-[420px] mx-auto">+ <h1 class="font-serif text-3xl font-semibold text-center">+ {kind === 'signin' ? 'Welcome back' : 'Create your account'}+ </h1>+ <p class="text-[#6B6B6B] text-sm text-center mt-2">+ {kind === 'signin'+ ? 'Sign in to continue to Manus'+ : 'Free to start. No credit card required.'}+ </p>++ <div class="mt-6 space-y-3">+ <button class="bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-xl h-11 w-full flex items-center justify-center gap-2 hover:bg-[#F5F4EF] text-sm font-medium">+ <span class="w-4 h-4 inline-block bg-[url('https://www.google.com/favicon.ico')] bg-cover" />+ Continue with Google+ </button>+ <button class="bg-white border border-[#E5E3DC] text-[#1A1A1A] rounded-xl h-11 w-full flex items-center justify-center gap-2 hover:bg-[#F5F4EF] text-sm font-medium">+ <span class="w-4 h-4 inline-block bg-[url('https://github.com/favicon.ico')] bg-cover" />+ Continue with GitHub+ </button>+ </div>++ <div class="flex items-center gap-3 text-xs text-[#9C9A93] my-4">+ <span class="flex-1 h-px bg-[#E5E3DC]" />or<span class="flex-1 h-px bg-[#E5E3DC]" />+ </div>++ <form class="space-y-3" on:submit|preventDefault={submit}>+ {#if kind === 'signup'}+ <label class="block">+ <span class="text-xs font-medium text-[#6B6B6B] mb-1.5 block">Name</span>+ <input class="w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white focus:outline-none focus:border-[#1A1A1A]"+ type="text" bind:value={name} required>+ </label>+ {/if}+ <label class="block">+ <span class="text-xs font-medium text-[#6B6B6B] mb-1.5 block">Email</span>+ <input class="w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white focus:outline-none focus:border-[#1A1A1A]"+ type="email" bind:value={email} required>+ </label>+ <label class="block">+ <span class="text-xs font-medium text-[#6B6B6B] mb-1.5 block">Password</span>+ <input class="w-full h-11 px-4 rounded-xl border border-[#E5E3DC] bg-white focus:outline-none focus:border-[#1A1A1A]"+ type="password" bind:value={password} required minlength="8">+ </label>+ <button type="submit"+ class="w-full h-11 rounded-full bg-black text-white text-sm font-medium hover:bg-[#1A1A1A]">+ {kind === 'signin' ? 'Sign in' : 'Create account'}+ </button>+ </form>+ </div>++ <p class="text-center text-sm text-[#6B6B6B] mt-6">+ {#if kind === 'signin'}+ Don't have an account?+ <button class="text-[#1A1A1A] underline" on:click={() => route.set('signup')}>Sign up</button>+ {:else}+ Already have an account?+ <button class="text-[#1A1A1A] underline" on:click={() => route.set('signin')}>Sign in</button>+ {/if}+ </p>+</section>+```++## Acceptance criteria+- `#signin` and `#signup` render the centered auth card with the right headline and field set.+- Submitting logs to console and returns the user to `#chat`.+- The two OAuth buttons render (clicking is a no-op for now).+- Toggle link at the bottom switches between the two.++## Out of scope+- Real auth backend.diff --git a/manus-redesign/14-flow-slides.md b/manus-redesign/14-flow-slides.mdnew file mode 100644index 000000000..c15714aff--- /dev/null+++ b/manus-redesign/14-flow-slides.md@@ -0,0 +1,65 @@+# Task 14 — Slides flow (mode = 'slides')++## Goal+When `$mode === 'slides'`, augment the empty-state landing with:+1. The composer placeholder text becomes "Describe your presentation topic".+2. Inside the composer footer, render an inline pill row: a blue "Slides" pill (selected mode), a white "Professional" tone selector, and an image-model selector that shows two icons (OpenAI + Banana). Clicking either selector opens its dropdown.+3. Below the composer, render two sections:+ - **Sample prompts** — 4 cards with example topics. Clicking inserts the text into the composer and submits.+ - **Choose a template** — a horizontal grid of 8–12 template thumbnails with a slide-count selector ("8 - 12 ▾") on the right.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `mode` writable in `chat/src/stores.js`.+- Composer (task 05) renders `<EmptyState>`'s `composer` slot. The empty state wrapper (task 04) lets you swap content underneath the composer based on `$mode`.+- Wrap any new flow UI in a route-agnostic component:+ - `chat/src/manus/flows/SlidesFlow.svelte` — renders the cards/templates section.+ - The composer gets two new optional props: `placeholderOverride`, `extraInlinePills` (array of `{ icon, label, kind }`). Pass them in from `App.svelte` only when `$mode === 'slides'`.++## Design tokens+- "Slides" mode pill: `manus-chip-selected` with `feLayout` icon.+- "Professional" tone pill: `manus-chip` (white, ink text) with `feFeather` (or the existing `feZap`) icon. Clicking opens a dropdown of tones: Professional, Casual, Academic, Playful, Minimal.+- Image-model pill: rounded-full bg-white border, padding `px-2`, content is two 18px favicon-style icons + a chevron-down. Use simple `<img>` with these data URIs or feather circles (placeholder OK):+ - OpenAI: `feCircle` filled black.+ - Banana: a tiny SVG emoji 🍌 OR `feFeather` icon. Acceptable to use `<span class="text-base">🍌</span>` if emoji rendering is fine.+- Sample prompt card: `bg-white border border-[#E5E3DC] rounded-xl p-4 text-left h-[112px] flex flex-col justify-between hover:bg-[#F5F4EF]`.+ - Title: `text-sm text-[#1A1A1A]` (2-line clamp, `line-clamp-2`).+ - Trailing arrow icon `feArrowUpLeft` (or `feCornerLeftDown`) in bottom-right, 14px, `text-[#9C9A93]`.+- Section heading: `text-sm font-semibold text-[#1A1A1A] mb-3 mt-10`.+- Templates grid: `grid grid-cols-4 gap-4`. Each tile is a 4:3 ratio card with an image placeholder; first tile is "Import template" (icon `feUpload`).+- Slide-count dropdown: `bg-white border border-[#E5E3DC] rounded-full h-9 px-3 text-sm flex items-center gap-2`, icon `feLayout` left, chevron right.++## Sample prompt content+- "Automate weekly team status reporting"+- "Build quarterly sales performance dashboard"+- "Create strategic business review presentation"+- "Design investor pitch deck with projections"++## Templates+Generate 8 placeholder cards. For each, render an empty card with a faint serif title centered ("Sample template 1" through "8") on a tan/off-white tile (`bg-[#EFECE3]`), so the visual rhythm matches the reference even before real assets exist.++## What to ship++### 1. Component: `chat/src/manus/flows/SlidesFlow.svelte`+- Renders the "Sample prompts" grid and the "Choose a template" grid.+- Emits `select` events for sample prompts (fills composer + submits) and template selection (sets a `slidesTemplate` writable in `stores.js`, optional).++### 2. Composer wiring+- In `App.svelte`, when `$mode === 'slides'`, pass:+ - `placeholderOverride = 'Describe your presentation topic'`+ - `extraInlinePills = [{ id:'tone', label:'Professional', icon:feZap }, { id:'imgModel', label:null, render:'imgModelPair' }]`+- In `Composer.svelte` (task 05), accept these props; if `extraInlinePills[i].render === 'imgModelPair'`, render the OpenAI + Banana pair.+- The "Slides" mode pill itself is already rendered by the composer when `$mode === 'slides'` (task 05 handles the inline mode pill display).++### 3. Mounting+- In `EmptyState`, after the chips slot, render `<SlidesFlow />` only when `$mode === 'slides'`.++## Acceptance criteria+- Clicking "Create slides" chip switches the composer placeholder, shows the Professional + image-model inline pills, and renders the Sample prompts and Templates sections under the composer.+- Clicking a sample prompt fills the textarea and triggers send.+- Clicking the "8 - 12 ▾" pill opens a dropdown allowing 4-8, 8-12, 12-16, 16-20.+- Switching mode away (clicking the chip again or picking a different one) reverts the composer placeholder and hides the SlidesFlow section.++## Out of scope+- Real slide generation backend; only UI plumbing.+- Other modes (tasks 15–18).diff --git a/manus-redesign/15-flow-website.md b/manus-redesign/15-flow-website.mdnew file mode 100644index 000000000..960fb3b17--- /dev/null+++ b/manus-redesign/15-flow-website.md@@ -0,0 +1,125 @@+# Task 15 — Website flow (mode = 'website')++## Goal+When `$mode === 'website'`, the empty-state landing changes to:+1. Composer placeholder: "Describe the website you want to build".+2. Inline pill row inside the composer: a blue "Website" mode pill (selected).+3. Right-side affordances above the categories row: "Add website reference" (link icon) and "Import from Figma" (Figma logo).+4. Below the composer, a horizontal scrollable row labelled "What would you like to build?" with category chips: Landing Page, Dashboard, Portfolio, Corporate, SaaS, Link in bio (truncated as "Lin…" with chevron).+5. When a category is selected (Landing Page / Dashboard / Portfolio / Corporate / SaaS / Link in bio), an "Explore ideas" sub-row appears below it with 3 example chips (e.g. for Dashboard: "Analytics dashboard", "Sales tracking dashboard", "HR dashboard"). Each chip carries an `feArrowUpLeft` arrow.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `mode` store in `stores.js` (created in task 06).+- Add a writable `websiteCategory` to `stores.js`:+ ```js+ export const websiteCategory = writable(null);+ ```++## Design tokens+- Categories row: chips with leading icon, `manus-chip` styling, selected state `manus-chip-selected` (blue).+- Section header row: `flex items-center justify-between mt-8`, left side `text-sm font-semibold text-[#1A1A1A]`, right side two text+icon buttons in `text-sm text-[#1A1A1A] hover:underline`, separator `|` in `text-[#9C9A93]`.+- "Explore ideas" section: `mt-6`, header `text-sm font-semibold mb-3`, body row `flex flex-wrap gap-2`. Each idea chip uses `manus-chip` plus a trailing `feArrowUpLeft` icon, `text-[#9C9A93]`, 14px.++## Category data+```js+const categories = [+ { id: 'landing', label: 'Landing Page', icon: feLayout },+ { id: 'dashboard', label: 'Dashboard', icon: fePieChart },+ { id: 'portfolio', label: 'Portfolio', icon: feImage },+ { id: 'corporate', label: 'Corporate', icon: feHome }, // building+ { id: 'saas', label: 'SaaS', icon: feCloud },+ { id: 'linkbio', label: 'Link in bio', icon: feLink },+];++const ideasByCategory = {+ landing: ['Product launch landing page', 'SaaS marketing landing page', 'Event signup landing page'],+ dashboard: ['Analytics dashboard', 'Sales tracking dashboard', 'HR dashboard'],+ portfolio: ['Build full-stack developer portfolio', 'Product designer portfolio website', 'Photographer showcase portfolio page'],+ corporate: ['Law firm corporate site', 'Consulting agency website', 'Real estate corporate site'],+ saas: ['SaaS product home page', 'Pricing page for B2B SaaS', 'Feature comparison page'],+ linkbio: ['Creator link-in-bio page', 'Musician fan hub', 'Restaurant menu link page'],+};+```++## What to ship++### 1. Component: `chat/src/manus/flows/WebsiteFlow.svelte`+Renders the header row ("What would you like to build?" + Add ref + Import from Figma), the categories chips, and (when `$websiteCategory` is set) the Explore ideas list.++```svelte+<script>+ import { websiteCategory } from '../../stores.js';+ import Icon from '../../Icon.svelte';+ import { feLayout, fePieChart, feImage, feHome, feCloud, feLink, feArrowUpLeft, feLink as feLinkIcon, feFigma } from '../../feather.js';++ const categories = [/* as above */];+ const ideasByCategory = {/* as above */};++ function pick(id) { websiteCategory.set($websiteCategory === id ? null : id); }+</script>++<div class="mt-8 max-w-[760px] mx-auto px-1">+ <div class="flex items-center justify-between">+ <h3 class="text-sm font-semibold">What would you like to build?</h3>+ <div class="flex items-center gap-3 text-sm">+ <button class="inline-flex items-center gap-1.5 hover:underline">+ <Icon icon={feLinkIcon} size={14} /> Add website reference+ </button>+ <span class="text-[#9C9A93]">|</span>+ <button class="inline-flex items-center gap-1.5 hover:underline">+ <Icon icon={feFigma} size={14} /> Import from Figma+ </button>+ </div>+ </div>+ <div class="mt-4 flex gap-2 overflow-x-auto scrollbar-none">+ {#each categories as c}+ <button class={'manus-chip whitespace-nowrap ' + ($websiteCategory === c.id ? 'manus-chip-selected' : '')}+ on:click={() => pick(c.id)}>+ <Icon icon={c.icon} size={16} /> {c.label}+ </button>+ {/each}+ </div>++ {#if $websiteCategory && ideasByCategory[$websiteCategory]}+ <div class="mt-8">+ <h3 class="text-sm font-semibold mb-3">Explore ideas</h3>+ <div class="flex flex-wrap gap-2">+ {#each ideasByCategory[$websiteCategory] as idea}+ <button class="manus-chip">+ <span>{idea}</span>+ <Icon icon={feArrowUpLeft} size={14} class="text-[#9C9A93]" />+ </button>+ {/each}+ </div>+ </div>+ {/if}+</div>+```++If `feFigma` is not in `chat/src/feather.js`, add a stub icon: an "F" letter glyph in a 14px square, or substitute `feLayers`.++### 2. Composer wiring+- When `$mode === 'website'`, set composer `placeholderOverride = 'Describe the website you want to build'`.+- The selected mode pill (from task 05) already shows "Website".++### 3. Sample-prompt prefill (per Manus reference)+Some screenshots show pre-filled descriptive text in the composer when a category is selected. Implement: when a category becomes selected, if the composer is empty, autofill it with a starter sentence:+- landing → "Build a landing page for "+- dashboard → "Build a dashboard for "+- portfolio → "Build a portfolio website for "+- corporate → "Build a corporate website for "+- saas → "Build a SaaS marketing site for "+- linkbio → "Create a link-in-bio page for "++This match the reference where selecting a category seeds an outline; the user finishes the sentence.++## Acceptance criteria+- "Build website" chip activates this flow: composer placeholder updates, blue "Website" inline pill shows.+- Below the composer, the "What would you like to build?" header + 6 category chips appear, with the right-side "Add website reference" + "Import from Figma" buttons.+- Selecting a category seeds the composer text and reveals the "Explore ideas" sub-row.+- Clicking an idea chip fills the composer with that text and submits.++## Out of scope+- Other modes.+- Real website generation backend.diff --git a/manus-redesign/16-flow-design.md b/manus-redesign/16-flow-design.mdnew file mode 100644index 000000000..06602653a--- /dev/null+++ b/manus-redesign/16-flow-design.md@@ -0,0 +1,69 @@+# Task 16 — Design flow (mode = 'design')++## Goal+When `$mode === 'design'`, the empty-state landing changes to:+1. Composer placeholder: keep the existing one OR set to "Describe what you want to design".+2. Inside the composer footer, render an inline **blue "Design" mode pill** (selected) plus an image-model selector pill that says "GPT Image 2 ▾" with a small OpenAI dot icon left, and chevron right. Clicking opens a model dropdown (GPT Image 2, Stable Diffusion XL, Flux 1, Banana 🍌). Persist selection in `designModel` writable.+3. Below the composer, render the "Get started with" section: a 2-column grid (3 columns on `xl`) of large preview cards. Each card has a title, a 2-line description, a chevron arrow on the title row, and a thumbnail image on the right.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `mode` store in `stores.js`. Add:+ ```js+ export const designModel = writable('gpt-image-2');+ ```+- Composer (task 05) supports `extraInlinePills`.++## Design tokens+- Mode pill: `manus-chip-selected` with `feZap` icon and label "Design".+- Model pill: `inline-flex items-center gap-2 h-8 px-2 pr-1 rounded-full border border-[#E5E3DC] bg-white text-sm`. Inside: 16px circle dot for the model, label, then `feChevronDown` size 14.+- "Get started with" header: `text-[#1A1A1A] font-medium mb-4 mt-10`.+- Cards: `bg-white border border-[#E5E3DC] rounded-2xl p-5 flex gap-4 hover:bg-[#F5F4EF]`.+ - Left column: `flex-1 min-w-0`. Title row: `flex items-center justify-between text-[#1A1A1A] font-semibold text-sm` (truncate with `text-ellipsis overflow-hidden whitespace-nowrap`). Description: `text-xs text-[#6B6B6B] mt-1.5 line-clamp-2`.+ - Right column: 96px square image with `rounded-lg bg-[#EFECE3]`. If no image, render a placeholder using a feather icon + soft tan bg.+- Grid: `grid md:grid-cols-2 xl:grid-cols-3 gap-4 max-w-[1100px] mx-auto px-6`.++## Card content (use these 6)+| Title | Description | Thumb hint |+|---|---|---|+| Create data infographic on coffee trends | Convert the key data from an article on "Global Coffee Consumption…" into a visual infographic. | infographic |+| Design Japanese restaurant menu | Design a menu for my high-end Japanese restaurant, "Sakura House." | menu |+| Design smart bracelet and packaging | Design the product concept and packaging for my health-monitoring smart bracelet. | bracelet |+| Design SaaS product launch posters | Design a set of product launch promotional posters for my project management SaaS. | poster |+| Design interactive tech expo booth | Design a 36-square-meter tech expo booth for my AI company's product showcase. | booth |+| Design modern coffee brand identity | Design a modern, minimalist logo and full VI for my specialty coffee brand. | brand |++## What to ship++### 1. Component: `chat/src/manus/flows/DesignFlow.svelte`+Renders the header + 6-card grid. Clicking a card fills the composer with the card's description and submits.++### 2. Model picker: `chat/src/manus/DesignModelPicker.svelte`+A small dropdown attached to the model pill in the composer. Models:+```js+const models = [+ { id: 'gpt-image-2', label: 'GPT Image 2', badge: '⊕' },+ { id: 'sdxl', label: 'Stable Diffusion XL' },+ { id: 'flux-1', label: 'Flux 1' },+ { id: 'banana', label: 'Banana', badge: '🍌' },+];+```+Bind to `designModel` store. Match the popover style of task 07 (white card, rounded, shadow-pop, items hover bg-paper).++### 3. Composer wiring+When `$mode === 'design'`, inject:+- inline pill 1: blue Design mode pill (the composer already shows the selected mode pill — no extra work needed).+- inline pill 2: model selector that opens `DesignModelPicker` and shows the current `$designModel`'s label.++### 4. Mounting+In `EmptyState`, when `$mode === 'design'`, render `<DesignFlow />` below the composer.++## Acceptance criteria+- Clicking the "Design" suggestion chip activates the flow.+- Composer shows the Design mode pill + the GPT Image 2 model pill; clicking the model pill opens the picker; selecting persists.+- Below the composer, the 6-card "Get started with" grid renders with titles, descriptions, and thumbnail tiles.+- Clicking a card fills the composer with that card's description and submits.++## Out of scope+- Real image generation backend.+- Other modes.diff --git a/manus-redesign/17-flow-develop-apps.md b/manus-redesign/17-flow-develop-apps.mdnew file mode 100644index 000000000..2bf163e39--- /dev/null+++ b/manus-redesign/17-flow-develop-apps.md@@ -0,0 +1,73 @@+# Task 17 — Develop apps flow (mode = 'desktop')++## Goal+When `$mode === 'desktop'`, the empty-state landing changes to:+1. Composer placeholder: "Describe the app you want to build".+2. Inline blue "Develop apps" mode pill (with `feSmartphone` or `feMonitor` icon).+3. A platform selector pill in the composer: "macOS · Windows · Linux · iOS · Android" — clicking opens a multi-select dropdown; default is macOS.+4. Below the composer, three sections:+ - **Sample prompts** (4 cards), e.g. "Build a markdown notes app", "Create a habit tracker for iOS", "Make a simple POS terminal", "Design a Kanban board for engineering".+ - **Platforms** chips row (Native macOS, Native Windows, Native Linux, iOS, Android, Cross-platform Tauri, Cross-platform Electron, PWA).+ - **Explore ideas** chips row (10–12 idea chips like "Pomodoro timer", "Lightweight RSS reader", "Local password manager", etc.).++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `mode` store in `stores.js`.+- Add `appPlatforms` writable in `stores.js` (Set of strings, default `new Set(['macOS'])`).++## Design tokens+- Sample prompt card: same as task 14 (`bg-white border border-[#E5E3DC] rounded-xl p-4 h-[112px]` with trailing `feArrowUpLeft`).+- Platforms chip: `manus-chip` with leading icon (use `feMonitor`, `feSmartphone`, `feTablet` as appropriate).+- Section heading: `text-sm font-semibold mt-10 mb-3`.+- Grid: `grid md:grid-cols-2 lg:grid-cols-4 gap-3` for sample prompts; flex-wrap rows for chips.++## What to ship++### Component: `chat/src/manus/flows/DesktopFlow.svelte`+- Renders the three sections.+- Clicking a sample prompt fills the composer and submits.+- Clicking a platform chip toggles its selection in `$appPlatforms`.+- Clicking an idea chip seeds the composer.++### Composer wiring+- `$mode === 'desktop'` → placeholder "Describe the app you want to build".+- Inline pills: blue Develop apps mode pill + platforms selector pill that summarizes `$appPlatforms` (e.g. "macOS, iOS"). Clicking opens a checkbox dropdown (reuse the existing `Checkbox.svelte` component).++### Mounting+In `EmptyState`, when `$mode === 'desktop'`, render `<DesktopFlow />` below the composer.++## Sample data (use these)+```js+const samplePrompts = [+ 'Build a markdown notes app with a daily journal',+ 'Create a habit tracker for iOS with widget support',+ 'Make a simple POS terminal for a coffee shop',+ 'Design a Kanban board for an engineering team',+];++const platforms = [+ { id: 'macos', label: 'Native macOS', icon: feMonitor },+ { id: 'windows', label: 'Native Windows', icon: feMonitor },+ { id: 'linux', label: 'Native Linux', icon: feMonitor },+ { id: 'ios', label: 'iOS', icon: feSmartphone },+ { id: 'android', label: 'Android', icon: feSmartphone },+ { id: 'tauri', label: 'Cross-platform (Tauri)', icon: feMonitor },+ { id: 'electron', label: 'Cross-platform (Electron)', icon: feMonitor },+ { id: 'pwa', label: 'PWA', icon: feGlobe },+];++const ideas = [+ 'Pomodoro timer','Lightweight RSS reader','Local password manager',+ 'Daily mood journal','Time-zone team clock','Voice memo transcriber',+ 'Recipe scaler','Currency converter','Resume builder',+ 'Plant watering reminder','Workout planner','Trip itinerary builder',+];+```++## Acceptance criteria+- Clicking "More → Develop apps" or any chip mapped to `mode='desktop'` activates the flow.+- Composer placeholder updates; mode pill shows blue Develop apps; platforms pill summarizes the current selection.+- Three sections render below the composer; each interactive element seeds the composer or toggles state.++## Out of scope+- Real app generation.diff --git a/manus-redesign/18-flow-utility-modes.md b/manus-redesign/18-flow-utility-modes.mdnew file mode 100644index 000000000..85854394c--- /dev/null+++ b/manus-redesign/18-flow-utility-modes.md@@ -0,0 +1,149 @@+# Task 18 — Utility flows: Schedule, Wide Research, Spreadsheet, Visualization, Video, Audio, Chat mode, Playbook++## Goal+Eight modes from the "More" dropdown each need their own minimal landing UI on the empty state. These are simpler than Slides/Website/Design — most just need a tailored composer placeholder, a blue mode pill, and one section below with 4–8 example prompts.++This task ships all eight in one self-contained component bundle.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `mode` store in `stores.js`. Values: `'schedule' | 'research' | 'spreadsheet' | 'visualization' | 'video' | 'audio' | 'chat' | 'playbook'`.+- For `playbook`, `mode` is also set when the user lands on `route === 'playbook'` (separate route, but the empty-state composer is shown there too; in this task, treat `playbook` as a regular mode whose flow renders inline on the chat empty state).++## Design tokens+- Mode pill (selected): `manus-chip-selected` with the corresponding icon.+- Sample prompt card: `bg-white border border-[#E5E3DC] rounded-xl p-4 h-[96px] text-left text-sm` with trailing `feArrowUpLeft`.+- Section header: `text-sm font-semibold mt-10 mb-3`.+- Cards grid: `grid md:grid-cols-2 lg:grid-cols-4 gap-3` for prompts, `flex-wrap gap-2` for chips.++## Per-mode spec++### `schedule` (Schedule task)+- Icon: `feCalendar`. Mode pill label: "Schedule task".+- Composer placeholder: "What should we run on a schedule?"+- Section: **Schedule examples**+ - "Every weekday at 9am, summarize new GitHub issues in repo X"+ - "Each Monday, draft a weekly status report from Linear"+ - "Every hour, check for new Stripe disputes and email me"+ - "Daily at 7pm, post a digest of unread Slack mentions"+ - "Weekly on Friday, generate sales pipeline snapshot from CRM"+ - "Every 15 minutes, poll uptime for our 3 critical services"+- Inline secondary pill in composer: a "Cadence ▾" pill (Hourly / Daily / Weekly / Custom cron).++### `research` (Wide Research)+- Icon: `feTarget`. Mode pill: "Wide Research".+- Placeholder: "What should we research, in parallel?"+- Section: **Research examples**+ - "Compare the top 10 vector databases on price, latency, scale"+ - "Find every YC W24 company in dev tools with public pricing"+ - "Summarize recent papers on LLM evaluation from 2024–2026"+ - "List all Series A AI infra startups with announced rounds in Q1"+ - "Extract feature parity matrix for Cursor, Claude Code, and Manus"+ - "Find hiring pages of top 50 robotics startups; pull JD for SWE"+- Inline pill: "Sources: Web ▾" (Web / Web + Docs / Web + Code / Custom URLs).++### `spreadsheet`+- Icon: `feGrid`. Mode pill: "Spreadsheet".+- Placeholder: "Describe the spreadsheet you want to build"+- Section: **Spreadsheet templates**+ - "Sales pipeline tracker with weighted forecast"+ - "Personal monthly budget with category rollups"+ - "Hiring funnel: candidates × stages × dropoff"+ - "OKR tracker with quarterly progress"+ - "Inventory tracker with reorder points"+ - "SaaS metrics dashboard (ARR, MRR, churn)"+- Inline pill: "Format: Google Sheets ▾" (Google Sheets / Excel / CSV / Numbers).++### `visualization`+- Icon: `feBarChart2`. Mode pill: "Visualization".+- Placeholder: "Describe the chart or dashboard you want"+- Section: **Visualization examples**+ - "Stacked bar chart of revenue by region by quarter"+ - "Time-series of weekly active users with annotations"+ - "Funnel chart for the signup-to-activation flow"+ - "Geo heatmap of customer concentration"+ - "Cohort retention grid (week-over-week)"+ - "Sankey diagram of traffic source → conversion"+- Inline pill: "Style: Minimal ▾" (Minimal / Editorial / Dark / Print).++### `video`+- Icon: `fePlay`. Mode pill: "Video".+- Placeholder: "Describe the video you want to create"+- Section: **Video examples**+ - "30-second product launch teaser with motion graphics"+ - "60-second explainer for a B2B SaaS feature"+ - "Customer story with overlaid quotes"+ - "Conference talk highlight reel"+ - "Loop of a UI walkthrough with captions"+ - "Short-form vertical reel for Instagram"+- Inline pill: "Aspect: 16:9 ▾" (16:9, 9:16, 1:1, 4:5).++### `audio`+- Icon: `feActivity`. Mode pill: "Audio".+- Placeholder: "Describe the audio you want"+- Section: **Audio examples**+ - "Two-host podcast episode (15 min) on agentic coding"+ - "Voiceover for a 60-second product demo, calm tone"+ - "Soundtrack for a 30-second ad, upbeat and modern"+ - "Audio summary of a long article, conversational"+ - "Meditation guided session, 10 minutes"+ - "Phone IVR greeting in 5 languages"+- Inline pill: "Voice: Auto ▾" (Auto / Specific voices / Multi-host).++### `chat` (Chat mode)+- Icon: `feMessageSquare`. Mode pill: "Chat mode".+- Placeholder: "Just chat — no tools, no agents."+- Section omitted; this mode is plain conversation. Show only a small caption under the composer: `text-xs text-[#6B6B6B]`: "Tools and agents are off. Plain chat with the model."++### `playbook`+- Icon: `feBookOpen`. Mode pill: "Playbook".+- Placeholder: "Describe a multi-step playbook to run"+- Section: **Playbook examples**+ - "Onboard a new SDR: pull rep, send welcome email, schedule training"+ - "Triage inbound bug report: dedupe, label, assign, draft reply"+ - "Run a weekly RevOps review across CRM, Stripe, and Mixpanel"+ - "Migrate a Notion doc tree into a Manus skill"+ - "Audit GitHub repos for missing CI on default branch"+ - "End-of-quarter portfolio review for a VC firm"+- Inline pill: "Tools: Default ▾" with a sub-multi-select.++## What to ship++### Component bundle: `chat/src/manus/flows/UtilityFlows.svelte`+A switch-based component:+```svelte+<script>+ import { mode } from '../../stores.js';+ import SamplePromptGrid from './SamplePromptGrid.svelte';+ import { schedulePrompts, researchPrompts, /* etc. */ } from './utilityFlowData.js';+</script>++{#if $mode === 'schedule'}+ <SamplePromptGrid title="Schedule examples" prompts={schedulePrompts} />+{:else if $mode === 'research'}+ <SamplePromptGrid title="Research examples" prompts={researchPrompts} />+{/* etc. for each */}+```++Plus:+- `chat/src/manus/flows/SamplePromptGrid.svelte` — generic 4-up card grid that fills the composer + submits on click. Reuse this for tasks 14 and 17 if convenient.+- `chat/src/manus/flows/utilityFlowData.js` — exports the prompt arrays above.++### Composer wiring per mode+For each mode listed, set:+- `placeholderOverride` = the placeholder above.+- `extraInlinePills` = `[{ id: '<modeId>', label: '<Mode label>', icon: <icon>, kind: 'mode' }, /* + cadence/aspect/etc. for modes that have one */]`.++The "cadence/sources/format/style/aspect/voice/tools" secondary pill is a soft-state dropdown stored as `$flowSecondary[$mode]` in a single writable map in `stores.js`. Persist via `localStorage` if cheap.++### Mounting+In `EmptyState`, after the chips slot, render `<UtilityFlows />` (no-op when `$mode` isn't one of the 8 covered).++## Acceptance criteria+- Each of the 8 modes (`schedule`, `research`, `spreadsheet`, `visualization`, `video`, `audio`, `chat`, `playbook`) activates correctly from the More dropdown.+- The composer placeholder, blue mode pill, and the secondary pill (where applicable) update when the mode changes.+- Each mode (except `chat`) shows a 6-card grid of sample prompts; clicking a card fills + submits.+- `chat` mode shows the small caption instead of a card grid.++## Out of scope+- Backend execution of any of these modes.diff --git a/manus-redesign/19-chat-mode-active.md b/manus-redesign/19-chat-mode-active.mdnew file mode 100644index 000000000..1d0e8cd49--- /dev/null+++ b/manus-redesign/19-chat-mode-active.md@@ -0,0 +1,57 @@+# Task 19 — Active conversation styling (post-first-message)++## Goal+After the first user message is sent, the empty-state landing is replaced by the active conversation view. Restyle this view to match the Manus aesthetic: page bg `bg-paper`, message column centered with max-width 760px, user messages right-aligned in a soft gray bubble, assistant messages full-width with no bubble (just typography), composer pinned to the bottom with the same rounded card from task 05, and the sidebar reappearing on the left.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- Active view condition: `convo.messages.length > 0`.+- Message component: `chat/src/Message.svelte` (currently 599 lines; preserve all logic, only restyle).+- Composer: `chat/src/manus/Composer.svelte` (task 05).+- Sidebar: existing in `App.svelte`.++## Design tokens+- Page bg: `bg-paper`.+- Conversation column: `max-w-[760px] mx-auto px-6`.+- User bubble: `bg-[#EBE8E0] text-[#1A1A1A] rounded-2xl px-4 py-3 max-w-[78%] ml-auto`.+- Assistant message: no bubble. `text-[#1A1A1A] text-[15px] leading-7 prose-sm prose-neutral`. Use the existing markdown styles but ensure the `prose` class targets the new tokens (override link color to `#1A1A1A`, code block bg to `bg-paper-deep`).+- Toolcalls / artifacts already styled — leave them, only ensure they sit inside the 760px column.+- Reasoning expand chevron: `text-[#9C9A93]`.+- Sidebar: keep current functionality; restyle background to `bg-paper`, border `border-rule`, hover row `hover:bg-paper-deep`, active row `bg-paper-deep`, conversation title in 14px ink, timestamp 12px ink-soft.+- Composer pinned: `sticky bottom-4` inside a centered column; same `rounded-composer` card as task 05; add a soft top fade `bg-gradient-to-t from-paper to-transparent` 24px above so the column visually fades into the composer.++## What to ship++### 1. Restyle `Message.svelte`+- Wrap each message in a `flex` row. If `role === 'user'`, justify-end; otherwise justify-start.+- Replace any existing bubble classes for user with the user-bubble token above.+- Remove any bubble for assistant; just render the prose body.+- For tool calls, keep the existing `Toolcall` and `ToolcallButton` components but ensure spacing matches (`my-3` between blocks).++### 2. Restyle conversation column in `App.svelte`+- The container that holds the message stream: `max-w-[760px] mx-auto px-6 pb-32`.+- Bottom padding 128px to leave room for the pinned composer.++### 3. Pinned composer+- Wrap the composer in `<div class="sticky bottom-4 max-w-[760px] mx-auto px-6 z-30">`.+- Add the gradient fade above: `<div class="pointer-events-none absolute -top-6 inset-x-0 h-6 bg-gradient-to-t from-paper to-transparent" />`.+- The composer itself shouldn't show the inline mode pill in active mode unless `$mode` is set. Default behavior is plain composer.++### 4. Sidebar+- Restyle to `bg-paper border-r border-rule w-[260px]` on `md+` screens; collapsible to 0 on small screens.+- Conversation list rows: `flex items-center px-3 h-9 rounded-md text-sm`, hover/active per tokens above.+- "New chat" button at the top: `manus-btn-primary` full width with leading `+` icon.++### 5. Mode pill behavior in active chat+- If `$mode` is set when the user lands on an active conversation, the inline mode pill stays visible inside the composer footer. Clicking the `x` on the pill clears `$mode`.++## Acceptance criteria+- Sending the first message smoothly transitions from empty state to active view (no jarring layout jump).+- Conversation reads as a centered single-column layout with right-aligned beige user bubbles and bubble-less assistant text.+- Composer is pinned to the bottom with a soft fade above it; remains usable while scrolling history.+- Sidebar is back, restyled, and shows the conversation list.+- All existing chat features (tool calls, attachments, model switch, agent picker) still work.++## Out of scope+- Building new tool UIs.+- Anything on the empty state (tasks 04–18).diff --git a/manus-redesign/20-feature-pages.md b/manus-redesign/20-feature-pages.mdnew file mode 100644index 000000000..a05d2e6a8--- /dev/null+++ b/manus-redesign/20-feature-pages.md@@ -0,0 +1,89 @@+# Task 20 — Feature subpages++## Goal+Render the 7 feature pages reachable from the Features dropdown. All share a single template (`FeaturePage.svelte`) and a content map, so this task ships one component plus 7 content entries. Each page has: serif hero headline, 1–2 line subhead, primary CTA, an "image placeholder" hero block, a 3-column "What you get" feature grid, and a closing CTA strip.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store from task 02. Routes covered by this task:+ - `features/web-app`+ - `features/mobile-app`+ - `features/ai-design`+ - `features/ai-slides`+ - `features/browser-operator`+ - `features/wide-research`+ - `features/mail-manus`+ - `features/agent-skills`++## Design tokens+- Page bg: `bg-paper`.+- Hero headline: `manus-display` (serif, 56–80px). Centered on desktop; left-aligned on mobile.+- Eyebrow above headline: small uppercase tracker — `text-xs font-medium tracking-[0.16em] uppercase text-[#6B6B6B] mb-4`.+- Sub: `text-[#6B6B6B] text-lg max-w-[640px] mx-auto mt-6`.+- CTA primary: `manus-btn-primary` (black pill). Add a secondary "Watch demo" ghost button next to it on the hero.+- Hero image: `aspect-[16/9] rounded-2xl bg-gradient-to-br from-[#EFECE3] to-[#E5E3DC] mt-12`. If a real asset path is provided, render an `<img>`; otherwise use the gradient placeholder.+- "What you get" section header: `font-serif text-3xl font-semibold mt-24 mb-8 text-center`.+- Feature card: `bg-white border border-[#E5E3DC] rounded-2xl p-6`.+ - Icon 22px in a 36px tile (same as nav dropdown).+ - Title `text-base font-semibold mt-4`.+ - Body `text-sm text-[#6B6B6B] mt-2`.+- Bottom CTA strip: `bg-black text-white rounded-2xl p-10 max-w-[1100px] mx-auto mt-24 flex items-center justify-between`. Heading `font-serif text-3xl`; button `bg-white text-black rounded-full h-10 px-5`.++## What to ship++### 1. Component: `chat/src/manus/pages/FeaturePage.svelte`+Props: `slug` (string). Looks up content from a map and renders the template.++### 2. Content map: `chat/src/manus/pages/featurePages.js`+Each entry:+```js+{+ eyebrow: 'AI Web App',+ title: 'Build full-stack apps from a single prompt',+ sub: 'Manus generates the frontend, backend, database, and deploys it — no engineering team required.',+ primaryCta: 'Start building',+ secondaryCta: 'Watch a 2-min demo',+ features: [+ { title: 'Real frameworks', body: 'Next.js, Postgres, Auth, Stripe — production-grade defaults.', icon: 'feCode' },+ { title: 'One-click deploys', body: 'Push to your own domain, with HTTPS and previews per branch.', icon: 'feUpload' },+ { title: 'Editable from chat', body: 'Iterate on copy, layout, and logic without leaving the conversation.', icon: 'feEdit2' },+ { title: 'Built-in observability', body: 'Errors, traces, and costs visible from the start.', icon: 'feActivity' },+ { title: 'Bring your stack', body: 'Swap any default — your DB, your auth, your CDN.', icon: 'feGrid' },+ { title: 'Team review', body: 'Comment on diffs, approve before deploy.', icon: 'feUsers' },+ ],+ closingTitle: 'Ship a real app today.',+ closingCta: 'Start free',+}+```++Provide a similar entry for each of the 8 feature slugs. Use these as the seeds (rewrite copy lightly so each feels distinct):++| slug | eyebrow | title |+|---|---|---|+| `web-app` | AI Web App | Build full-stack apps from a single prompt |+| `mobile-app` | AI Mobile App | Native iOS & Android apps, generated end-to-end |+| `ai-design` | AI Design | From brief to brand: design that ships itself |+| `ai-slides` | AI Slides | Decks that write, design, and rehearse with you |+| `browser-operator` | Browser Operator | Lend Manus a tab. Watch it work. |+| `wide-research` | Wide Research | Parallel research across hundreds of sources at once |+| `mail-manus` | Mail Manus | Turn every inbox thread into a finished task |+| `agent-skills` | Agent Skills | Codify your team's expertise into reusable agents |++### 3. Wire into `App.svelte` route switch+```svelte+{:else if $route.startsWith('features/')}+ <FeaturePage slug={$route.slice('features/'.length)} />+```++### 4. Per-feature note on `agent-skills`+The reference includes a richer hero variant for Agent Skills (tall display headline + cloud illustration). Use the same template but render an extra image strip at the bottom of the hero: `<div class="aspect-[3/1] rounded-2xl bg-[url('/manus-redesign/skills-hero.jpg')] bg-cover bg-center mt-12">`. Path doesn't need to exist; fall back to the gradient placeholder.++## Acceptance criteria+- All 8 feature URLs render a complete page using the shared template.+- Each page differs in copy and feature card content.+- Top nav + announcement banner remain visible.+- Visual rhythm matches the Manus reference (large serif headline, hero image, 6-card grid, dark CTA strip).++## Out of scope+- Real assets/illustrations.+- Routing back from sub-features into specific composer modes.diff --git a/manus-redesign/21-resource-pages.md b/manus-redesign/21-resource-pages.mdnew file mode 100644index 000000000..7124b3196--- /dev/null+++ b/manus-redesign/21-resource-pages.md@@ -0,0 +1,81 @@+# Task 21 — Resource subpages++## Goal+Render the 5 resource pages reachable from the Resources dropdown:+- `resources/blog`+- `resources/docs`+- `resources/updates`+- `resources/use-cases`+- `resources/trust-center`++Each is content-shaped (lists/grids), not a marketing page. One shared `ResourcePage.svelte` selects the right inner template based on slug.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store from task 02; route switch in `App.svelte` (see task 12 for the pattern).++## Design tokens+- Page bg: `bg-paper`.+- Page header: `font-serif text-4xl font-semibold mb-2`. Sub: `text-[#6B6B6B] text-base mb-12`.+- Page wrapper: `max-w-[1100px] mx-auto px-6 pt-16 pb-24`.+- Card (used by Blog, Use cases): `bg-white border border-[#E5E3DC] rounded-2xl p-6 hover:bg-[#FAF9F4]`.+- Doc nav: 240px left rail + content column.+- Update entry: timeline-style with date on the left, content card on the right.+- Trust center: stat cards + compliance badge grid.++## Per-page spec++### `blog`+- Header: "Blog", sub: "Ideas, guides, and stories from the Manus team".+- 3-col grid of 9 article cards. Each card:+ - Tan thumbnail (`aspect-[16/9] rounded-xl bg-[#EFECE3]`)+ - Tag badge: `inline-block text-xs uppercase tracking-wide text-[#6B6B6B] mt-4`+ - Title: `font-serif text-xl mt-2`+ - 2-line excerpt: `text-sm text-[#6B6B6B] mt-2`+ - Date + read time: `text-xs text-[#9C9A93] mt-4`+- Use placeholder titles: "How we think about agent reliability", "Designing chat for non-engineers", "Inside the Manus runtime", etc.++### `docs`+- 240px left rail with section nav: Getting started, Concepts, API, SDKs, Tools, Skills, Deployments, FAQs.+- Right pane: a static "Welcome" article. Render plain prose with `prose prose-neutral max-w-none`.+- A "Search docs" input pinned to the top of the rail (`bg-white border border-[#E5E3DC] rounded-full h-9 px-3 text-sm`).++### `updates`+- Vertical timeline: each entry shows `<time class="text-xs text-[#9C9A93] uppercase tracking-wide">` and a card with title, body, optional image placeholder.+- Seed with 6 entries spanning the past 6 months (use absolute dates relative to today, e.g. "April 2026", "March 2026", …).++### `use-cases`+- 2-col grid of 8 case-study cards. Each card has an industry tag, a result headline ("Cut SDR onboarding from 4 weeks to 3 days"), a 2-line summary, and a logo placeholder strip.++### `trust-center`+- 3-column "stats" row at the top: SOC 2 Type II, GDPR ready, 99.95% SLA — each in a stat card.+- Below: 4 sections with headings "Data handling", "Access controls", "Subprocessors", "Vulnerability disclosure". Each is a card with a paragraph of copy.+- Bottom: a 6-tile compliance badge grid (placeholder gray boxes labeled SOC 2, ISO 27001, HIPAA, GDPR, CCPA, PCI).++## What to ship++### 1. Component: `chat/src/manus/pages/ResourcePage.svelte`+Props: `slug`. Switches on slug and renders one of:+- `BlogIndex.svelte`+- `DocsIndex.svelte`+- `UpdatesTimeline.svelte`+- `UseCasesIndex.svelte`+- `TrustCenter.svelte`++### 2. Five sub-components in `chat/src/manus/pages/resources/`+Each implements the layout above with seed content embedded inline (so the task is self-contained, no fetching).++### 3. Wire into `App.svelte` route switch+```svelte+{:else if $route.startsWith('resources/')}+ <ResourcePage slug={$route.slice('resources/'.length)} />+```++## Acceptance criteria+- All 5 resource URLs render their dedicated layout with seed content.+- Page widths and typography match Manus' general aesthetic from tasks 01 and 12.+- Top nav + announcement banner visible above each page.++## Out of scope+- Fetching real content from a CMS.+- Fully styled markdown rendering inside Docs (a single hard-coded article is fine).diff --git a/manus-redesign/22-solutions-marketing-page.md b/manus-redesign/22-solutions-marketing-page.mdnew file mode 100644index 000000000..2c4327b3f--- /dev/null+++ b/manus-redesign/22-solutions-marketing-page.md@@ -0,0 +1,84 @@+# Task 22 — Solutions / Business marketing template++## Goal+Render the marketing template behind every `solutions/<slug>` and `business/<slug>` route, plus a generic catch-all for `events/<slug>` if no other template applies. The reference uses one tall hero pattern: huge serif headline ("Launch business applications without engineering resources"), subhead, and a centered Manus-style composer that doubles as a "describe your project" entry. Below the composer: the same "What would you like to build?" categories row from task 15, and a short logos / testimonials strip.++## Codebase context+- Source root: `/workspaces/3D-Agent/chat/`.+- `route` store from task 02; `mode` and `websiteCategory` from tasks 06/15.+- Reuses: `Composer.svelte` (task 05), `WebsiteFlow.svelte` (task 15).++## Design tokens+- Page bg: `bg-paper`.+- Outer wrapper: `max-w-[1100px] mx-auto px-6 pt-24 pb-32`.+- Headline (centered): `manus-display` — 56–80px serif. Allow 2 lines.+- Sub: `text-[#6B6B6B] text-lg max-w-[640px] mx-auto text-center mt-6`.+- Composer block: same component as task 05; rendered with no inline mode pill by default and a placeholder taken from the slug map.+- Categories row: reuse `WebsiteFlow.svelte`. Render only the chips, not the "Add reference" or "Import from Figma" affordances (gate them with a prop `compact={true}`).+- Logos row: `mt-20 grid grid-cols-3 md:grid-cols-6 gap-6 items-center opacity-70` — 6 placeholder logos in `text-[#6B6B6B] text-sm uppercase tracking-[0.16em] text-center`, e.g. ACME · NORTHWIND · LATTE · PIVOT · ATLAS · BEACON.++## Content per slug++Define a content map at `chat/src/manus/pages/marketingPages.js` keyed by full route (`solutions/sales`, `business/enterprise`, etc.). Each entry:+```js+{+ eyebrow: 'For Sales teams',+ headline: 'Close more deals\nwithout writing more SQL',+ sub: 'Forecasts, dashboards, and outreach drafts — generated from your CRM in minutes.',+ placeholder: 'Describe the sales workflow you want to ship.',+}+```++Provide entries for all routes from tasks 09 and 11. Suggested headlines:++| route | headline |+|---|---|+| `solutions/sales` | Close more deals without writing more SQL |+| `solutions/marketing` | Campaigns, briefs, and analytics — drafted in chat |+| `solutions/engineering` | Internal tools your team will actually use |+| `solutions/operations` | Operational reporting that runs itself |+| `solutions/support` | Triage, draft, and resolve — alongside your humans |+| `solutions/finance` | Forecasts and spend reviews on demand |+| `solutions/hr` | Hiring, onboarding, internal Q&A — automated |+| `solutions/founders` | Launch the v1 of your idea this weekend |+| `business/enterprise` | Launch business applications without engineering resources |+| `business/security` | Security and compliance you can show your board |+| `business/deployments` | Run Manus inside your VPC |+| `business/customers` | Real teams. Real outcomes. |+| `business/contact-sales` | Talk to a real human about your rollout |++Use the headline "Launch business applications without engineering resources" (from the reference) for `business/enterprise` exactly, and seed similar tone for the rest.++## What to ship++### 1. Component: `chat/src/manus/pages/MarketingPage.svelte`+Props: `slug` (full route, e.g. `solutions/sales`).+Renders:+- Eyebrow (small uppercase tracker, optional).+- Centered serif headline (with `\n` rendered as `<br>`).+- Sub.+- A composer (instantiate `<Composer>` with the slug-specific placeholder; submitting sets `route='chat'`, sets `mode='website'` if route starts with `solutions/` or `business/`, and feeds the typed text into the chat composer).+- Categories row from `WebsiteFlow` (compact mode).+- Logos strip.++### 2. Wire into `App.svelte` route switch+```svelte+{:else if $route.startsWith('solutions/') || $route.startsWith('business/') || $route.startsWith('events/')}+ <MarketingPage slug={$route} />+```++If a slug isn't in the content map, fall back to deriving a heading from the slug ("contact-sales" → "Contact sales") and a generic sub.++### 3. Compact prop on `WebsiteFlow.svelte` (task 15)+- When `compact={true}`, hide the "Add website reference" and "Import from Figma" buttons; keep the chips and the "Explore ideas" sub-row.+- Default false to preserve task 15 behavior.++## Acceptance criteria+- All `solutions/*`, `business/*`, and `events/*` routes render the marketing template with their slug-specific headline and placeholder.+- The composer on the page accepts text and, on submit, navigates to `#chat` with the message pre-filled and the appropriate `mode` set.+- The categories row from task 15 is reused and renders without the right-side affordances.+- The logos strip is present at the bottom.++## Out of scope+- Real customer logos or testimonials.+- Per-solution custom illustrations (placeholder gradient hero is fine if you choose to include one).diff --git a/manus-redesign/README.md b/manus-redesign/README.mdnew file mode 100644index 000000000..822fbd60d--- /dev/null+++ b/manus-redesign/README.md@@ -0,0 +1,60 @@+# Manus-style chat redesign — task pack++This directory contains 22 independent prompts that, taken together, redesign+the chat in `/workspaces/3D-Agent/chat/` to match the Manus reference design.++## Rules for whoever (or whatever) executes these tasks++- **Each `.md` is fully self-contained.** It restates the design tokens, the+ codebase context, and the exact spec needed to ship that piece. No task+ reads or depends on another task's output.+- **Ordering does not matter.** Tasks can run in parallel; merge conflicts in+ shared files (mostly `App.svelte` and `tailwind.config.cjs`) are expected+ and must be resolved by the integrator.+- **Definition of done = ship-ready.** When all 22 tasks are merged the chat+ visually matches the Manus reference, every nav link works, and every+ in-product flow (Slides, Website, Design, Schedule, etc.) renders its+ intended landing UI.++## Task index++| # | File | Scope |+|---|---|---|+| 01 | `01-design-tokens.md` | Tailwind theme, fonts, colors, base CSS |+| 02 | `02-top-navigation.md` | Logo, nav bar, Sign in/up buttons |+| 03 | `03-announcement-banner.md` | "Manus is now part of Meta" strip |+| 04 | `04-empty-state-landing.md` | Centered hero + composer + chips layout |+| 05 | `05-composer-input.md` | Rounded textarea with `+` and send button |+| 06 | `06-suggestion-chips.md` | Create slides / Build website / Develop apps / Design / More |+| 07 | `07-more-dropdown.md` | "More" popover (Schedule task, Wide Research, …) |+| 08 | `08-nav-dropdown-features.md` | Features mega-dropdown |+| 09 | `09-nav-dropdown-solutions.md` | Solutions mega-dropdown |+| 10 | `10-nav-dropdown-resources.md` | Resources mega-dropdown |+| 11 | `11-nav-dropdown-events-business.md` | Events + Business dropdowns |+| 12 | `12-pricing-page.md` | Pricing route |+| 13 | `13-auth-pages.md` | Sign in / Sign up routes |+| 14 | `14-flow-slides.md` | Slides chip selected — model picker + sample prompts + template grid |+| 15 | `15-flow-website.md` | Website chip — categories, Add ref, Import from Figma, Explore ideas |+| 16 | `16-flow-design.md` | Design chip — model selector + "Get started with" template cards |+| 17 | `17-flow-develop-apps.md` | Develop apps landing |+| 18 | `18-flow-utility-modes.md` | Schedule task / Spreadsheet / Visualization / Wide Research / Video / Audio / Playbook |+| 19 | `19-chat-mode-active.md` | Active conversation styling (post-first-message) |+| 20 | `20-feature-pages.md` | 7 feature subpages from Features dropdown |+| 21 | `21-resource-pages.md` | 5 subpages from Resources dropdown |+| 22 | `22-solutions-marketing-page.md` | "Launch business applications…" hero page |++## Shared codebase context (true for every task)++- Stack: Svelte 4 + Vite + Tailwind. Source root: `/workspaces/3D-Agent/chat/`.+- Main shell: `chat/src/App.svelte` (~1660 lines).+- Message bubble: `chat/src/Message.svelte`.+- Icons: `chat/src/feather.js` — re-export icons from there; add new ones if missing.+- Tailwind config: `chat/tailwind.config.cjs`.+- Global CSS: `chat/src/app.pcss`.+- Empty-state condition: `convo.messages.length === 0`.+- The chat already supports model selection, attachments, tool dropdowns, and+ agent picking. **Do not delete those features**; hide or restyle them on+ the empty state, but keep them reachable on the active chat view.+- Routing today is single-page; for new routes add a lightweight+ `route` store (`'chat' | 'pricing' | 'features/web-app' | …`) and switch on+ it inside `App.svelte`. Persist via `location.hash`.diff --git a/public/chat/index.html b/public/chat/index.htmlindex df2179429..3e9d66ca6 100644--- a/public/chat/index.html+++ b/public/chat/index.html@@ -24,6 +24,9 @@<meta name="twitter:description" content="Chat with any AI model — Claude, GPT, Gemini, Ollama and more." /><meta name="twitter:image" content="https://three.ws/og-image.png" />+ <link rel="preconnect" href="https://fonts.googleapis.com">+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,500&display=swap" rel="stylesheet"><linkrel="stylesheet"href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"@@ -31,8 +34,8 @@crossorigin="anonymous"/><title>three.ws chat</title>- <script type="module" crossorigin src="/chat/assets/index-ZPcGjlbB.js"></script>- <link rel="stylesheet" crossorigin href="/chat/assets/index-DwU9ZgUU.css">+ <script type="module" crossorigin src="/chat/assets/index-BVjUCITb.js"></script>+ <link rel="stylesheet" crossorigin href="/chat/assets/index-0Mwx8-a0.css"></head><body><div id="app"></div>