Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat(cos): duplicate Add task button next to queue position selector
[._.]/ Adam Eivy1890adc5c1fe
diff --git a/client/src/components/cos/TaskAddForm.jsx b/client/src/components/cos/TaskAddForm.jsxindex 5276dfd4fa..4ca4f97e65 100644--- a/client/src/components/cos/TaskAddForm.jsx+++ b/client/src/components/cos/TaskAddForm.jsx@@ -1588,7 +1588,7 @@ export default function TaskAddForm({ providers, providersLoaded = true, apps, o<Bookmark size={14} aria-hidden="true" /><span className="hidden @sm:inline">Save Template</span></button>}- {!queueFirst && <button+ <buttononClick={handleAddTask}disabled={isSubmitting || isEnhancing}className="flex items-center gap-1 px-3 py-1.5 bg-port-accent/20 hover:bg-port-accent/30 text-port-accent rounded-lg text-sm transition-colors disabled:opacity-50 disabled:cursor-not-allowed min-h-[44px]"@@ -1604,7 +1604,7 @@ export default function TaskAddForm({ providers, providersLoaded = true, apps, o{planOnly ? (enhancePrompt ? 'Enhance & Plan' : 'Plan & File Issue') : enhancePrompt ? 'Enhance & Add' : 'Add'}</>)}- </button>}+ </button></div>)}</>}diff --git a/client/src/components/cos/TaskAddForm.test.jsx b/client/src/components/cos/TaskAddForm.test.jsxindex 494b22ad54..a4f8e0501d 100644--- a/client/src/components/cos/TaskAddForm.test.jsx+++ b/client/src/components/cos/TaskAddForm.test.jsx@@ -1,5 +1,5 @@import { describe, expect, it, vi, beforeEach } from 'vitest';-import { render, screen, waitFor, act, fireEvent } from '@testing-library/react';+import { render, screen, waitFor, act, fireEvent, within } from '@testing-library/react';import userEvent from '@testing-library/user-event';import { MemoryRouter } from 'react-router';import TaskAddForm from './TaskAddForm';@@ -1084,6 +1084,28 @@ describe('TaskAddForm layout ordering', () => {expect(screen.getByLabelText('Attach screenshots')).toBeInTheDocument();expect(screen.getByLabelText('Attach files')).toBeInTheDocument();});++ it('renders an Add button at the bottom next to queue position selector in queueFirst mode when expanded', async () => {+ const user = userEvent.setup();+ api.addCosTask.mockResolvedValue({ id: 'bottom-task' });+ render(<TaskAddForm queueFirst providers={[]} apps={[{ id: 'portos', name: 'PortOS' }]} onTaskAdded={vi.fn()} />);+ await act(async () => {});++ await user.type(screen.getByRole('textbox', { name: /Task description/ }), 'Test task from bottom button');+ await user.click(screen.getByRole('button', { name: 'Task configuration' }));++ const queueLabel = screen.getByText('Queue:');+ expect(queueLabel).toBeInTheDocument();++ const bottomContainer = queueLabel.closest('div.flex-wrap');+ expect(bottomContainer).toBeInTheDocument();++ const bottomAddButton = within(bottomContainer).getByRole('button', { name: 'Add' });+ expect(bottomAddButton).toBeInTheDocument();++ await user.click(bottomAddButton);+ expect(api.addCosTask).toHaveBeenCalledWith(expect.objectContaining({ description: 'Test task from bottom button' }), { silent: true });+ });});