feat(frontend): move send to the input and show key bar in the controls row

- Place Send/Queue/View at the end of the textarea and hide Send when the draft is empty
- Keep the model picker visible on mobile while a session is active
- Keep the mobile mic in the controls row alongside Send
- Show the /, @, ! keys in place of the agent/model selectors while focused on mobile
- Compact the mobile controls row while the prompt is focused
This commit is contained in:
ioplex authored and Chris Scott committed 2026-10-21 12:40:34 -04:00
1 parent 332fb07f45
commit 76d52b3550
6 files changed
+449 -118

No files matched your search

@@ -249,27 +249,22 @@ describe('ComposerToolsMenu', () => {
expect(props.onAttachFile).toHaveBeenCalledTimes(1)
})
it('omits the dictate item when onDictate is not provided', async () => {
const user = userEvent.setup()
it('uses the default control size for the trigger', () => {
mockPermissionMode()
renderMenu()
await user.click(screen.getByRole('button', { name: 'Composer options' }))
await screen.findByRole('menuitem', { name: 'Attach image or PDF' })
expect(screen.queryByRole('menuitem', { name: 'Dictate' })).not.toBeInTheDocument()
const trigger = screen.getByRole('button', { name: 'Composer options' })
expect(trigger).toHaveClass('min-h-[44px]', 'min-w-[44px]')
expect(trigger).not.toHaveClass('min-h-9')
})
it('starts dictation when onDictate is provided', async () => {
const user = userEvent.setup()
it('uses the compact control size for the trigger while the composer is focused', () => {
mockPermissionMode()
const onDictate = vi.fn()
renderMenu({ onDictate })
renderMenu({ compact: true })
await user.click(screen.getByRole('button', { name: 'Composer options' }))
await user.click(await screen.findByRole('menuitem', { name: 'Dictate' }))
expect(onDictate).toHaveBeenCalledTimes(1)
const trigger = screen.getByRole('button', { name: 'Composer options' })
expect(trigger).toHaveClass('min-h-9', 'min-w-9')
expect(trigger).not.toHaveClass('min-h-[44px]')
})
})