Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
unify email, channel and ai chat input styling (#164)
Jacob Beckerman83e607f26f6a
diff --git a/js/app/packages/block-channel/component/AttachMenu.tsx b/js/app/packages/block-channel/component/AttachMenu.tsxindex 4aebc7cd62..54106a0f6e 100644--- a/js/app/packages/block-channel/component/AttachMenu.tsx+++ b/js/app/packages/block-channel/component/AttachMenu.tsx@@ -130,7 +130,7 @@ export function AttachMenu(props: AttachMenuProps) {}}><OldMenu>- <div class="flex flex-row items-center w-full p-2 gap-2 text-sm border-b border-edge text-ink mb-1">+ <div class="flex flex-row items-center w-full p-2 gap-2 text-sm border-b border-edge-muted text-ink mb-1"><SearchIcon class="w-3 h-3" /><inputvalue={input()}diff --git a/js/app/packages/block-channel/component/Attachment.tsx b/js/app/packages/block-channel/component/Attachment.tsxindex 536d30b1af..818da86026 100644--- a/js/app/packages/block-channel/component/Attachment.tsx+++ b/js/app/packages/block-channel/component/Attachment.tsx@@ -45,7 +45,7 @@ export function Attachment(props: AttachmentProps) {><Show when={hover() && props.remove}><XIcon- class="w-6 h-6 text-ink absolute -top-2 -right-2 rounded-full bg-menu p-1 border border-edge z-[10]"+ class="w-6 h-6 text-ink absolute -top-2 -right-2 rounded-full bg-menu p-1 border border-edge-muted z-[10]"onClick={() => props.remove?.(props.attachment)}/></Show>@@ -56,7 +56,7 @@ export function Attachment(props: AttachmentProps) {props.attachment.blockName === STATIC_VIDEO}>- <div class="flex flex-col items-center justify-center gap-2 w-[60px] h-[60px] border border-edge rounded-md bg-menu">+ <div class="flex flex-col items-center justify-center gap-2 w-[60px] h-[60px] border border-edge-muted rounded-md bg-menu"><Spinner class="w-4 h-4 animate-spin" /></div></Match>@@ -66,7 +66,7 @@ export function Attachment(props: AttachmentProps) {props.attachment.blockName === STATIC_IMAGE}>- <div class="flex flex-col items-center justify-center gap-2 w-[60px] h-[60px] border border-edge rounded-md bg-menu">+ <div class="flex flex-col items-center justify-center gap-2 w-[60px] h-[60px] border border-edge-muted rounded-md bg-menu"><Spinner class="w-4 h-4 animate-spin" /></div></Match>diff --git a/js/app/packages/block-channel/component/BaseInput.tsx b/js/app/packages/block-channel/component/BaseInput.tsxindex 742445ded4..fff03d4377 100644--- a/js/app/packages/block-channel/component/BaseInput.tsx+++ b/js/app/packages/block-channel/component/BaseInput.tsx@@ -5,6 +5,7 @@ import {import type { sendMessage } from '@block-channel/signal/channel';import { handleFileUpload } from '@block-channel/utils/inputAttachments';import { isInBlock } from '@core/block';+import { BrightJoins } from '@core/component/BrightJoins';import { FileDropOverlay } from '@core/component/FileDropOverlay';import { IconButton } from '@core/component/IconButton';import { setEditorStateFromMarkdown } from '@core/component/LexicalMarkdown/utils';@@ -24,7 +25,7 @@ import FormatIcon from '@icon/regular/text-aa.svg';import XIcon from '@icon/regular/x.svg';import { logger } from '@observability';import Spinner from '@phosphor-icons/core/bold/spinner-gap-bold.svg?component-solid';-import PaperPlaneRight from '@phosphor-icons/core/fill/paper-plane-right-fill.svg?component-solid';+import ArrowFatLineUp from '@phosphor-icons/core/fill/arrow-fat-line-up-fill.svg?component-solid';import type { SimpleMention } from '@service-comms/generated/models/simpleMention';import { createCallback } from '@solid-primitives/rootless';import { leading, throttle } from '@solid-primitives/scheduled';@@ -376,7 +377,7 @@ export function BaseInput(props: BaseInputProps) {return (<div- class="relative flex flex-col flex-1 items-center justify-between bg-input border-1 border-edge focus-within:bracket-offset-2"+ class="relative flex flex-col flex-1 items-center justify-between bg-input border-t border-x border-edge-muted rounded-t-[5px] -mb-[7px]"ref={containerRef}use:fileDrop={{onDrop: (files) => {@@ -392,6 +393,7 @@ export function BaseInput(props: BaseInputProps) {},}}>+ <BrightJoins dots={[false, false, true, true]} /><Show when={isDraggedOver() || isDraggingOverChannel()}><FileDropOverlay valid={isValidChannelDrag()}><Show when={!isValidChannelDrag()}>@@ -514,7 +516,7 @@ export function BaseInput(props: BaseInputProps) {<Spinner class="w-5 h-5 animate-spin cursor-disabled" />}>- <PaperPlaneRight+ <ArrowFatLineUpwidth={20}height={20}class="!text-accent-ink !fill-accent"diff --git a/js/app/packages/block-channel/component/ChannelInput.tsx b/js/app/packages/block-channel/component/ChannelInput.tsxindex e57d32bd7d..6c0f373261 100644--- a/js/app/packages/block-channel/component/ChannelInput.tsx+++ b/js/app/packages/block-channel/component/ChannelInput.tsx@@ -69,7 +69,7 @@ export function ChannelInput(props: ChannelInputProps) {return (<BaseInput- placeholder={`Send a message to ${props.channelName}`}+ placeholder={`Message ${props.channelName} — @mention to share`}onStartTyping={() => postTypingUpdate_('start')}onStopTyping={() => postTypingUpdate_('stop')}onSend={sendMessage_}diff --git a/js/app/packages/block-channel/component/Message/EditMessageInput.tsx b/js/app/packages/block-channel/component/Message/EditMessageInput.tsxindex 4cd4c729b0..3ff3044641 100644--- a/js/app/packages/block-channel/component/Message/EditMessageInput.tsx+++ b/js/app/packages/block-channel/component/Message/EditMessageInput.tsx@@ -37,7 +37,7 @@ export function EditMessageInput(props: {});return (- <div class="relative -left-3 text-sm w-full bg-input overflow-hidden border border-edge focus-within:border-accent flex flex-col gap-1 items-center mt-4 ">+ <div class="relative -left-3 text-sm w-full bg-input overflow-hidden border border-edge-muted focus-within:border-accent flex flex-col gap-1 items-center mt-4 "><div class="w-full px-3"><MarkdownAreainitialValue={originalContent}diff --git a/js/app/packages/block-channel/component/Message/MessageContainer.tsx b/js/app/packages/block-channel/component/Message/MessageContainer.tsxindex 83ab000de7..a4ff985240 100644--- a/js/app/packages/block-channel/component/Message/MessageContainer.tsx+++ b/js/app/packages/block-channel/component/Message/MessageContainer.tsx@@ -66,14 +66,14 @@ export function MessageFlag(props: MessageFlagProps) {return (<div class="flex flex-row items-stretch justify-start ml-[var(--left-of-connector)]"><div class="flex flex-col items-center justify-center">- <div class="border-l border-edge min-h-1/2 ]" />+ <div class="border-l border-edge-muted min-h-1/2 ]" /><div- class={`border-l ${props.highlight ? 'border-accent' : 'border-edge'} min-h-1/2 `}+ class={`border-l ${props.highlight ? 'border-accent' : 'border-edge-muted'} min-h-1/2 `}/></div><div class="flex flex-col items-center justify-center"><div- class={`w-8 border-b ${props.highlight ? 'border-accent' : 'border-edge'}`}+ class={`w-8 border-b ${props.highlight ? 'border-accent' : 'border-edge-muted'}`}/></div><div@@ -650,7 +650,7 @@ export function MessageContainer(props: MessageProps) {</MessageComponent><Show when={isLastInCollapsedThread()}><div- class="border-l border-edge pb-1"+ class="border-l border-edge-muted pb-1"style={{'margin-left': `var(--left-of-connector)`,}}diff --git a/js/app/packages/block-channel/component/Message/MessageReactions.tsx b/js/app/packages/block-channel/component/Message/MessageReactions.tsxindex f363459a40..a8fa38fd0f 100644--- a/js/app/packages/block-channel/component/Message/MessageReactions.tsx+++ b/js/app/packages/block-channel/component/Message/MessageReactions.tsx@@ -70,7 +70,7 @@ export function MessageReactions(props: MessageReactionsProps) {${didCurrentUserReact? 'text-accent-ink border border-accent'- : 'hover:bg-hover transition-transform border border-edge transition-none hover:transition hover:scale-105'+ : 'hover:bg-hover transition-transform border border-edge-muted transition-none hover:transition hover:scale-105'}cursor-default h-8`}diff --git a/js/app/packages/block-channel/component/Message/ThreadReplyIndicator.tsx b/js/app/packages/block-channel/component/Message/ThreadReplyIndicator.tsxindex 21fe46c625..f5c581263b 100644--- a/js/app/packages/block-channel/component/Message/ThreadReplyIndicator.tsx+++ b/js/app/packages/block-channel/component/Message/ThreadReplyIndicator.tsx@@ -27,7 +27,7 @@ export function ThreadReplyIndicator(props: {return (<div- class="flex flex-row gap-2 items-center justify-between pb-2 pt-2 text-xs w-full max-w-fit border-edge border pr-2 select-none hover:bg-hover focus:bracket-offset-2"+ class="flex flex-row gap-2 items-center justify-between pb-2 pt-2 text-xs w-full max-w-fit border-edge-muted border pr-2 select-none hover:bg-hover focus:bracket-offset-2"onClick={props.onClick}onKeyDown={onKeyDownClick(props.onClick)}onKeyUp={onKeyUpClick(props.onClick)}diff --git a/js/app/packages/block-channel/component/ParticipantManager.tsx b/js/app/packages/block-channel/component/ParticipantManager.tsxindex 7835d7a0b8..a93fac05d9 100644--- a/js/app/packages/block-channel/component/ParticipantManager.tsx+++ b/js/app/packages/block-channel/component/ParticipantManager.tsx@@ -84,7 +84,7 @@ export function ParticipantManager(props: { participantCount: number }) {<Dialog.Portal><Dialog.Overlay class="fixed flex inset-0 z-modal bg-modal-overlay items-center justify-content" /><div class="fixed inset-0 z-modal w-screen h-screen flex items-center justify-center bg-transparent">- <Dialog.Content class="w-[512px] bg-dialog rounded-lg border-edge border-1 shadow-lg">+ <Dialog.Content class="w-[512px] bg-dialog rounded-lg border-edge-muted border-1 shadow-lg"><div class="flex flex-row justify-between items-center p-4"><Dialog.Title class="font-medium text-2xl text-ink-muted">{title()}@@ -180,7 +180,7 @@ export function ParticipantList(props: {<Show when={props.participants.length > 10}><inputplaceholder="Search participants..."- class="w-full rounded-md border-edge border-solid border p-2 text-sm text-ink-muted"+ class="w-full rounded-md border-edge-muted border-solid border p-2 text-sm text-ink-muted"value={searchQuery()}onInput={(e) => setSearchQuery(e.currentTarget.value)}/>diff --git a/js/app/packages/block-channel/component/ReactionSelector.tsx b/js/app/packages/block-channel/component/ReactionSelector.tsxindex 17202f3127..d23b54e0f9 100644--- a/js/app/packages/block-channel/component/ReactionSelector.tsx+++ b/js/app/packages/block-channel/component/ReactionSelector.tsx@@ -73,7 +73,7 @@ export function ReactionQuickSelector(props: ReactionQuickSelectorProps) {<Dynamiccomponent={props.insideMenu ? ContextMenu.Item : 'div'}ref={containerRef}- class={`w-fit flex items-center gap-1.5 px-4 py-2 bg-menu rounded-full shadow-lg border border-edge ${props.showFocusRing ? 'focus-visible:focus-border' : ''}`}+ class={`w-fit flex items-center gap-1.5 px-4 py-2 bg-menu rounded-full shadow-lg border border-edge-muted ${props.showFocusRing ? 'focus-visible:focus-border' : ''}`}onKeyDown={handleKeyDown}tabIndex={-1}{...(props.insideMenu && {@@ -152,14 +152,14 @@ export function EmojiSearchSelector(props: EmojiSearchSelectorProps) {return (<Dynamiccomponent={props.insideMenu ? ContextMenu.Item : 'div'}- class={`${props.fullWidth ? 'w-full' : 'w-[258px]'} h-[315px] pl-2 pt-2 rounded-md flex flex-col bg-menu shadow-lg border border-edge`}+ class={`${props.fullWidth ? 'w-full' : 'w-[258px]'} h-[315px] pl-2 pt-2 rounded-md flex flex-col bg-menu shadow-lg border border-edge-muted`}role="dialog"aria-label="Emoji search"ref={containerRef}{...(props.insideMenu && { closeOnSelect: false })}><div class="flex pr-2 w-full">- <div class="flex flex-row items-center text-ink gap-1 border border-edge rounded-md px-2 py-1 text-xs w-full">+ <div class="flex flex-row items-center text-ink gap-1 border border-edge-muted rounded-md px-2 py-1 text-xs w-full"><SearchIcon class="w-3 h-3" /><inputref={searchInputRef}diff --git a/js/app/packages/block-email/component/BaseInput.tsx b/js/app/packages/block-email/component/BaseInput.tsxindex 14460146d0..5966fc7799 100644--- a/js/app/packages/block-email/component/BaseInput.tsx+++ b/js/app/packages/block-email/component/BaseInput.tsx@@ -1,5 +1,6 @@import { FormatRibbon } from '@block-channel/component/FormatRibbon';import { useBlockId } from '@core/block';+import { BrightJoins } from '@core/component/BrightJoins';import { FileDropOverlay } from '@core/component/FileDropOverlay';import { IconButton } from '@core/component/IconButton';import { MarkdownTextarea } from '@core/component/LexicalMarkdown/component/core/MarkdownTextarea';@@ -14,7 +15,6 @@ import { isMobileWidth } from '@core/mobile/mobileWidth';import { trackMention } from '@core/signal/mention';import { useDisplayName } from '@core/user';import { isErr, isOk } from '@core/util/maybeResult';-import PaperPlaneRight from '@icon/fill/paper-plane-right-fill.svg';import ReplyAll from '@icon/regular/arrow-bend-double-up-left.svg';import Reply from '@icon/regular/arrow-bend-up-left.svg';import Forward from '@icon/regular/arrow-bend-up-right.svg';@@ -26,6 +26,7 @@ import { DropdownMenu } from '@kobalte/core/dropdown-menu';import type { DocumentMentionInfo } from '@lexical-core';import { logger } from '@observability';import Spinner from '@phosphor-icons/core/bold/spinner-gap-bold.svg?component-solid';+import ArrowFatLineUp from '@phosphor-icons/core/fill/arrow-fat-line-up-fill.svg?component-solid';import { emailClient } from '@service-email/client';import type {AttachmentMacro,@@ -544,10 +545,11 @@ export function BaseInput(props: {ref={(el) => {composeContainerRef = el;}}- class={`relative flex-1 flex flex-col border border-edge px-3 py-2 bg-input`}+ class="relative flex flex-col flex-1 bg-input border-t border-x border-edge-muted rounded-t-[5px] -mb-[7px]">+ <BrightJoins dots={[false, false, true, true]} />{/* Top Bar */}- <div class="flex items-start gap-2">+ <div class="flex items-start gap-2 p-2"><DropdownMenu><DropdownMenu.Trigger>{ReplyIcon()}</DropdownMenu.Trigger><DropdownMenu.Portal>@@ -582,7 +584,7 @@ export function BaseInput(props: {when={showExpandedRecipients()}fallback={<div- class="flex items-center text-sm font-mono truncate overflow-hidden"+ class="flex items-center text-sm font-mono truncate overflow-hidden mt-1"onclick={() => setShowExpandedRecipients(true)}><Show@@ -727,7 +729,7 @@ export function BaseInput(props: {/></Show><div- class="min-h-20 max-h-80 overflow-y-scroll w-full flex flex-col cursor-text"+ class="min-h-20 max-h-80 overflow-y-scroll w-full flex flex-col cursor-text placeholder:text-ink-placeholder placeholder:opacity-50 px-3 pt-2 sm:pb-4"ref={bodyDiv}onclick={() => {editor()?.focus();@@ -761,7 +763,7 @@ export function BaseInput(props: {editable={() => !isPendingSend()}initialValue={props.preloadedBody}initialHtml={props.preloadedHtml}- placeholder=""+ placeholder="Reply — @mention to share or cc people"onChange={handleChange}onDocumentMention={(item) => {makeAttachmentPublic(item.id);@@ -791,63 +793,63 @@ export function BaseInput(props: {/></div></Show>- <div class="flex flex-row items-center space-x-2">- <div class="relative" ref={attachButtonRef}>+ <div class="flex flex-row w-full h-8 justify-between items-center p-2 mb-2 space-x-2 allow-css-brackets">+ <div class="flex flex-row items-center gap-2">+ <div class="relative" ref={attachButtonRef}>+ <IconButton+ theme="base"+ icon={Plus}+ tooltip={{ label: 'Attach' }}+ onClick={() => setAttachMenuOpen(true)}+ />+ <AttachMenu+ open={attachMenuOpen()}+ close={() => setAttachMenuOpen(false)}+ anchorRef={attachButtonRef}+ containerRef={bodyDiv}+ onAttach={onAttach}+ onAttachDocuments={onAttachDocuments}+ setIsPending={setIsPendingUpload}+ />+ </div><IconButton- theme="clear"- icon={Plus}- tooltip={{ label: 'Attach' }}- onClick={() => setAttachMenuOpen(true)}- />- <AttachMenu- open={attachMenuOpen()}- close={() => setAttachMenuOpen(false)}- anchorRef={attachButtonRef}- containerRef={bodyDiv}- onAttach={onAttach}- onAttachDocuments={onAttachDocuments}- setIsPending={setIsPendingUpload}+ theme="base"+ icon={TextAa}+ onclick={() => {+ setShowFormatRibbon(!showFormatRibbon());+ }}/>+ <Show when={savedDraftId()}>+ <IconButton+ theme="base"+ icon={Trash}+ onclick={handleDeleteDraft}+ tooltip={{ label: 'Delete draft' }}+ />+ </Show></div>- <IconButton- theme="clear"- icon={TextAa}- onclick={() => {- setShowFormatRibbon(!showFormatRibbon());+ <button+ disabled={isPendingUpload() || isPendingSend()}+ onClick={() => {+ sendEmail();}}- />- <Show when={savedDraftId()}>- <IconButton- theme="clear"- icon={Trash}- onclick={handleDeleteDraft}- tooltip={{ label: 'Delete draft' }}- />- </Show>- <div class="ml-auto flex flex-row">- <button- disabled={isPendingUpload() || isPendingSend()}- onClick={() => {- sendEmail();- }}- class="text-ink-muted bg-transparent rounded-full hover:scale-110! transition ease-in-out delay-150 flex flex-col justify-center items-center"- >- <div class="bg-transparent rounded-full size-8 flex flex-row justify-center items-center">- <Show- when={!isPendingUpload() && !isPendingSend()}- fallback={- <Spinner class="w-5 h-5 animate-spin cursor-disabled" />- }- >- <PaperPlaneRight- width={20}- height={20}- class="!text-accent-ink !fill-accent"- />- </Show>- </div>- </button>- </div>+ class="text-ink-muted bg-transparent rounded-full hover:scale-110! transition ease-in-out delay-150 flex flex-col justify-center items-center"+ >+ <div class="bg-transparent rounded-full size-8 flex flex-row justify-center items-center">+ <Show+ when={!isPendingUpload() && !isPendingSend()}+ fallback={+ <Spinner class="w-5 h-5 animate-spin cursor-disabled" />+ }+ >+ <ArrowFatLineUp+ width={20}+ height={20}+ class="!text-accent-ink !fill-accent"+ />+ </Show>+ </div>+ </button></div></div></div>diff --git a/js/app/packages/block-email/component/ComposeEmailInput.tsx b/js/app/packages/block-email/component/ComposeEmailInput.tsxindex 41342d0354..9dbfd3732b 100644--- a/js/app/packages/block-email/component/ComposeEmailInput.tsx+++ b/js/app/packages/block-email/component/ComposeEmailInput.tsx@@ -2,6 +2,7 @@ import { useSplitLayout } from '@app/component/split-layout/layout';import { useSplitPanel } from '@app/component/split-layout/layoutUtils';import { globalSplitManager } from '@app/signal/splitLayout';import { FormatRibbon } from '@block-channel/component/FormatRibbon';+import { BrightJoins } from '@core/component/BrightJoins';import { FileDropOverlay } from '@core/component/FileDropOverlay';import { IconButton } from '@core/component/IconButton';import { MarkdownTextarea } from '@core/component/LexicalMarkdown/component/core/MarkdownTextarea';@@ -9,11 +10,11 @@ import { toast } from '@core/component/Toast/Toast';import { fileDrop } from '@core/directive/fileDrop';import type { WithCustomUserInput } from '@core/user';import { isErr } from '@core/util/maybeResult';-import PaperPlaneRight from '@icon/regular/paper-plane-right.svg';import Plus from '@icon/regular/plus.svg';import TextAa from '@icon/regular/text-aa.svg';import type { DocumentMentionInfo } from '@lexical-core';import Spinner from '@phosphor-icons/core/bold/spinner-gap-bold.svg?component-solid';+import ArrowFatLineUp from '@phosphor-icons/core/fill/arrow-fat-line-up-fill.svg?component-solid';import { emailClient } from '@service-email/client';import type {ContactInfo,@@ -252,14 +253,15 @@ export function ComposeEmailInput(props: {ref={(el) => {composeContainerRef = el;}}- class="w-full h-full relative flex-1 flex flex-col py-2"+ class="relative flex flex-col flex-1 items-center justify-between bg-input border-t border-x border-edge-muted rounded-t-[5px] -mb-[7px]">+ <BrightJoins dots={[false, false, true, true]} /><Show when={error()}><div class="text-failure-ink text-sm mt-1">{errorMsg()}</div></Show><div class="w-full h-full flex flex-col"><div- class="min-h-20 grow w-full h-full flex flex-col cursor-text"+ class="min-h-20 grow w-full h-full flex flex-col cursor-text placeholder:text-ink-placeholder placeholder:opacity-50 px-3 pt-2 sm:pb-4"ref={bodyDiv}onclick={() => {editor()?.focus();@@ -316,46 +318,55 @@ export function ComposeEmailInput(props: {}}/></Show>- <div class="flex flex-row items-center space-x-2 p-1 border-edge-muted border-t">- <div class="relative" ref={attachButtonRef}>+ <div class="flex flex-row w-full h-8 justify-between items-center p-2 mb-2 space-x-2 allow-css-brackets">+ <div class="flex flex-row items-center gap-2">+ <div class="relative" ref={attachButtonRef}>+ <IconButton+ theme="base"+ icon={Plus}+ tooltip={{ label: 'Attach' }}+ onClick={() => setAttachMenuOpen(true)}+ />+ <AttachMenu+ open={attachMenuOpen()}+ close={() => setAttachMenuOpen(false)}+ anchorRef={attachButtonRef}+ containerRef={bodyDiv}+ onAttach={onAttach}+ onAttachDocuments={onAttachDocuments}+ setIsPending={setIsPendingUpload}+ />+ </div><IconButton- theme="clear"- icon={Plus}- tooltip={{ label: 'Attach' }}- onClick={() => setAttachMenuOpen(true)}- />- <AttachMenu- open={attachMenuOpen()}- close={() => setAttachMenuOpen(false)}- anchorRef={attachButtonRef}- containerRef={bodyDiv}- onAttach={onAttach}- onAttachDocuments={onAttachDocuments}- setIsPending={setIsPendingUpload}+ theme="base"+ icon={TextAa}+ onclick={() => {+ setShowFormatRibbon(!showFormatRibbon());+ }}/></div>- <IconButton- theme="clear"- icon={TextAa}- onclick={() => {- setShowFormatRibbon(!showFormatRibbon());+ <button+ disabled={isPendingUpload() || sending()}+ onClick={() => {+ handleSend();}}- />- <div class="ml-auto flex flex-row">- <Show- when={!isPendingUpload() && !sending()}- fallback={- <Spinner class="w-5 h-5 animate-spin cursor-disabled" />- }- >- <IconButton- theme="clear"- icon={PaperPlaneRight}- tooltip={{ label: 'Send' }}- onClick={handleSend}- />- </Show>- </div>+ class="text-ink-muted bg-transparent rounded-full hover:scale-110! transition ease-in-out delay-150 flex flex-col justify-center items-center"+ >+ <div class="bg-transparent rounded-full size-8 flex flex-row justify-center items-center">+ <Show+ when={!isPendingUpload() && !sending()}+ fallback={+ <Spinner class="w-5 h-5 animate-spin cursor-disabled" />+ }+ >+ <ArrowFatLineUp+ width={20}+ height={20}+ class="!text-accent-ink !fill-accent"+ />+ </Show>+ </div>+ </button></div></div></div>diff --git a/js/app/packages/core/component/AI/component/input/SendMessageButton.tsx b/js/app/packages/core/component/AI/component/input/SendMessageButton.tsxindex bdf11531c9..2779f76ece 100644--- a/js/app/packages/core/component/AI/component/input/SendMessageButton.tsx+++ b/js/app/packages/core/component/AI/component/input/SendMessageButton.tsx@@ -1,5 +1,5 @@import StopIcon from '@phosphor-icons/core/bold/stop-bold.svg?component-solid';-import PaperPlaneRight from '@phosphor-icons/core/fill/paper-plane-right-fill.svg?component-solid';+import ArrowFatLineUp from '@phosphor-icons/core/fill/arrow-fat-line-up-fill.svg?component-solid';import type { Accessor } from 'solid-js';export function SendMessageButton(props: {@@ -16,7 +16,7 @@ export function SendMessageButton(props: {class="text-ink-muted bg-transparent rounded-full hover:scale-110! transition ease-in-out delay-150 flex flex-col justify-center items-center"><div class="bg-transparent rounded-full size-8 flex flex-row justify-center items-center">- <PaperPlaneRight+ <ArrowFatLineUpwidth={20}height={20}class="!text-accent-ink !fill-accent"diff --git a/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsx b/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsxindex 46f79f5c3f..9d17c24350 100644--- a/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsx+++ b/js/app/packages/core/component/AI/component/input/ToolsetSelector.tsx@@ -96,7 +96,7 @@ export function ToolsetSelector(props: {list={SOURCES.map((s) => s.label)}/></DropdownMenu>- <span class="bg-accent text-panel font-mono text-xs font-medium px-1 flex items-center">+ <span class="bg-edge-muted text-ink font-mono text-xs font-medium px-1 flex items-center">{SOURCE_TO_DISPLAY[source()]}</span></div>diff --git a/js/app/packages/core/component/AI/component/input/useChatInput.tsx b/js/app/packages/core/component/AI/component/input/useChatInput.tsxindex a75737f8c9..689c7c6aaa 100644--- a/js/app/packages/core/component/AI/component/input/useChatInput.tsx+++ b/js/app/packages/core/component/AI/component/input/useChatInput.tsx@@ -15,6 +15,7 @@ import type {UploadQueue,} from '@core/component/AI/types';import { useUploadAttachment } from '@core/component/AI/util/uploadToChat';+import { BrightJoins } from '@core/component/BrightJoins';import { CircleSpinner } from '@core/component/CircleSpinner';import { IconButton } from '@core/component/IconButton';import { isMobileWidth } from '@core/mobile/mobileWidth';@@ -189,110 +190,114 @@ function ChatInput(props: ChatInputInternalProps) {const availableAttachments = useChatAttachableHistory();return (- <div- id="chat-input"- ref={containerRef}- class="relative flex-1 flex flex-col items-center sm:self-center bg-input border-t border-l border-r sm:border border-edge min-h-26 max-h-50 justify-between focus-within:bracket-offset-2"- >- <div class="relative w-full z-0 pt-2 px-4 flex-1 overflow-hidden">- <div- id="chat-input-text-area"- class="rounded-md w-full h-full text-base sm:text-sm text-ink"- >- <props.markdown.MarkdownArea- onEnter={handleEnter}- placeholder="Ask AI - @mention anything"- history={availableAttachments}- dontFocusOnMount={- isMobileWidth() || props.autoFocusOnMount === false- }- onPasteFile={props.uploadQueue.upload}- captureEditor={props.captureEditor}- />- </div>+ <>+ <div class="flex flex-row items-center gap-2 pb-2">+ <ToolsetSelector+ toolset={toolsetSignal}+ sources={[source, setSource]}+ /></div>- <div class="w-full">- <div class="px-2 w-full min-h-0">- <AttachmentList- attached={props.attachments.attached}- removeAttachment={(id) => {- track(TrackingEvents.CHAT.ATTACHMENT.REMOVE);- props.attachments.removeAttachment(id);- }}- uploading={() =>- props.uploadQueue- .uploading()- .map((uploading) => uploading.preview)- }- />+ <div+ id="chat-input"+ ref={containerRef}+ class="relative flex flex-col flex-1 items-center justify-between bg-input border-t border-x border-edge-muted rounded-t-[5px] -mb-[7px]"+ >+ <BrightJoins dots={[false, false, true, true]} />+ <div class="relative w-full z-0 px-3 pt-2 sm:pb-4 flex-1 overflow-hidden placeholder:text-ink-placeholder placeholder:opacity-50">+ <div+ id="chat-input-text-area"+ class="rounded-md w-full h-full text-base sm:text-sm text-ink"+ >+ <props.markdown.MarkdownArea+ onEnter={handleEnter}+ placeholder="Ask AI - @mention anything"+ history={availableAttachments}+ dontFocusOnMount={+ isMobileWidth() || props.autoFocusOnMount === false+ }+ onPasteFile={props.uploadQueue.upload}+ captureEditor={props.captureEditor}+ />+ </div></div>- <div class="flex justify-between w-full px-2">- <Show when={showAttachMenu()}>- <ChatAttachMenu- anchorRef={attachMenuAnchorRef()!}- close={() => setShowAttachMenu(false)}- containerRef={containerRef}- open={showAttachMenu()}- onAttach={(attachment) => {- track(TrackingEvents.CHAT.ATTACHMENT.ADD);- props.attachments.addAttachment(attachment);+ <div class="w-full">+ <div class="px-2 w-full min-h-0">+ <AttachmentList+ attached={props.attachments.attached}+ removeAttachment={(id) => {+ track(TrackingEvents.CHAT.ATTACHMENT.REMOVE);+ props.attachments.removeAttachment(id);}}- uploadQueue={props.uploadQueue}- />- </Show>- <div class="flex items-center gap-x-1">- <IconButton- icon={showAttachMenu() ? XIcon : PlusIcon}- theme="base"- size="sm"- ref={setAttachMenuAnchorRef}- onClick={() => setShowAttachMenu((prev) => !prev)}+ uploading={() =>+ props.uploadQueue+ .uploading()+ .map((uploading) => uploading.preview)+ }/>- <Show when={props.showActiveTabs}>- <ActiveTabAttachment- onAddAttachment={(attachment) => {+ </div>+ <div class="flex flex-row w-full h-8 justify-between items-center p-2 mb-2 space-x-2 allow-css-brackets">+ <Show when={showAttachMenu()}>+ <ChatAttachMenu+ anchorRef={attachMenuAnchorRef()!}+ close={() => setShowAttachMenu(false)}+ containerRef={containerRef}+ open={showAttachMenu()}+ onAttach={(attachment) => {track(TrackingEvents.CHAT.ATTACHMENT.ADD);props.attachments.addAttachment(attachment);}}- onAddAll={(attachments_) => {- attachments_.forEach((attachment) => {- track(TrackingEvents.CHAT.ATTACHMENT.ADD);- props.attachments.addAttachment(attachment);- });- }}- attachedAttachments={props.attachments.attached}- attachAllOnMount={!props.chatId()}+ uploadQueue={props.uploadQueue}/></Show>- <ToolsetSelector- toolset={toolsetSignal}- sources={[source, setSource]}- />- </div>- <Switch>- <Match when={props.uploadQueue.uploading().length !== 0}>- <CircleSpinner />- </Match>- <Match when={!generating()}>- <SendMessageButton- isDisabled={() => !canSendMessage()}- onClick={() => {- track(TrackingEvents.CHAT.MESSAGE.SEND);- sendMessage();- }}- />- </Match>- <Match when={generating()}>- <StopButton- onClick={() => {- track(TrackingEvents.CHAT.MESSAGE.STOP);- props.onStop?.();- }}+ <div class="flex flex-row items-center gap-2">+ <IconButton+ icon={showAttachMenu() ? XIcon : PlusIcon}+ theme="base"+ ref={setAttachMenuAnchorRef}+ onClick={() => setShowAttachMenu((prev) => !prev)}/>- </Match>- </Switch>+ <Show when={props.showActiveTabs}>+ <ActiveTabAttachment+ onAddAttachment={(attachment) => {+ track(TrackingEvents.CHAT.ATTACHMENT.ADD);+ props.attachments.addAttachment(attachment);+ }}+ onAddAll={(attachments_) => {+ attachments_.forEach((attachment) => {+ track(TrackingEvents.CHAT.ATTACHMENT.ADD);+ props.attachments.addAttachment(attachment);+ });+ }}+ attachedAttachments={props.attachments.attached}+ attachAllOnMount={!props.chatId()}+ />+ </Show>+ </div>+ <Switch>+ <Match when={props.uploadQueue.uploading().length !== 0}>+ <CircleSpinner />+ </Match>+ <Match when={!generating()}>+ <SendMessageButton+ isDisabled={() => !canSendMessage()}+ onClick={() => {+ track(TrackingEvents.CHAT.MESSAGE.SEND);+ sendMessage();+ }}+ />+ </Match>+ <Match when={generating()}>+ <StopButton+ onClick={() => {+ track(TrackingEvents.CHAT.MESSAGE.STOP);+ props.onStop?.();+ }}+ />+ </Match>+ </Switch>+ </div></div></div>- </div>+ </>);}diff --git a/js/app/packages/core/component/FormControls/ToggleButton.tsx b/js/app/packages/core/component/FormControls/ToggleButton.tsxindex c849e44d73..6e16744b0a 100644--- a/js/app/packages/core/component/FormControls/ToggleButton.tsx+++ b/js/app/packages/core/component/FormControls/ToggleButton.tsx@@ -79,11 +79,11 @@ export const ToggleButton: ParentComponent<>{(state) => (<div- class="border border-ink min-w-[22px] font-medium font-mono text-center uppercase leading-none"+ class="border border-edge-muted min-w-[22px] font-medium font-mono text-center uppercase leading-none"classList={{[`${sizeClass[props.size || 'Base']}`]: true,- 'bg-ink text-panel': state.pressed(),- 'text-ink': !state.pressed(),+ 'bg-edge-muted text-ink': state.pressed(),+ 'text-ink-muted': !state.pressed(),'animate-[flicker_50ms_3]': showFlicker(),'hover:opacity-80': !props.disabled,}}diff --git a/js/app/packages/core/component/Message.tsx b/js/app/packages/core/component/Message.tsxindex 3f50640be2..bf2a0b298d 100644--- a/js/app/packages/core/component/Message.tsx+++ b/js/app/packages/core/component/Message.tsx@@ -248,7 +248,7 @@ const Root: Component<MessageRootProps> = (props) => {<divclass={`relative z-0 flex-1 flex flex-col justify-start w-[calc(100%-28px)] min-w-0 pl-[var(--left-of-connector)]${props.hideConnectors ? '' : 'border-l'}- ${props.isNewMessage ? 'border-accent' : 'border-edge'}+ ${props.isNewMessage ? 'border-accent' : 'border-edge-muted'}${props.isConsecutive || props.isFirstMessage || props.isFirstInThread ? '' : 'pt-4'}${props.isLastMessage && !props.isLastInThread ? 'pb-2' : ''}${props.hasThreadChildren ? 'pb-4' : ''}@@ -263,7 +263,7 @@ const Root: Component<MessageRootProps> = (props) => {<div class="relative"><Show when={props.isFirstInThread}><div- class="absolute border-b border-l border-edge"+ class="absolute border-b border-l border-edge-muted"style={{left: `calc((var(--thread-shift) - var(--left-of-connector) + var(--left-of-user-icon) + 0.5px) * -1)`,top: '.5px',