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
address review (codex): validate required Name/Repo Path across tabs
[._.]/ Adam Eivya7f2d3e53027
diff --git a/client/src/components/apps/EditAppDrawer.jsx b/client/src/components/apps/EditAppDrawer.jsxindex fa491f749d..6333a2f509 100644--- a/client/src/components/apps/EditAppDrawer.jsx+++ b/client/src/components/apps/EditAppDrawer.jsx@@ -156,6 +156,17 @@ export default function EditAppDrawer({ app, onClose, onSave }) {const handleSubmit = async (e) => {e.preventDefault();setError(null);++ // The required Name/Repository Path inputs live on the General tab and are+ // unmounted while any other tab is active, so the browser's `required`+ // constraint validation can't block a Save triggered from another tab.+ // Validate explicitly and surface the General tab so the empty field shows.+ if (!formData.name?.trim() || !formData.repoPath?.trim()) {+ setActiveTab('general');+ setError('Name and Repository Path are required.');+ return;+ }+setSaving(true);const data = {diff --git a/client/src/components/apps/EditAppDrawer.test.jsx b/client/src/components/apps/EditAppDrawer.test.jsxindex 42aca660e2..c59937a171 100644--- a/client/src/components/apps/EditAppDrawer.test.jsx+++ b/client/src/components/apps/EditAppDrawer.test.jsx@@ -115,3 +115,34 @@ describe('EditAppDrawer work tracker selector', () => {expect(payload.workTracker).toBe('gitlab');});});++describe('EditAppDrawer required-field validation across tabs', () => {+ // The required Name/Repository Path inputs live on the General tab and are+ // unmounted while another tab is active, so browser `required` validation+ // can't block a Save from another tab. handleSubmit must validate explicitly.+ it('blocks Save from a non-General tab when Name is empty and surfaces General', async () => {+ renderDrawer({ app: { ...APP, name: '' } });+ await openTab('Workflow');++ fireEvent.click(screen.getByRole('button', { name: 'Save Changes' }));++ await waitFor(() =>+ expect(screen.getByText('Name and Repository Path are required.')).toBeInTheDocument()+ );+ expect(api.updateApp).not.toHaveBeenCalled();+ // The General tab is surfaced so the offending field is visible again.+ expect(await screen.findByLabelText('Name')).toBeInTheDocument();+ });++ it('blocks Save when Repository Path is empty', async () => {+ renderDrawer({ app: { ...APP, repoPath: ' ' } });+ await openTab('Workflow');++ fireEvent.click(screen.getByRole('button', { name: 'Save Changes' }));++ await waitFor(() =>+ expect(screen.getByText('Name and Repository Path are required.')).toBeInTheDocument()+ );+ expect(api.updateApp).not.toHaveBeenCalled();+ });+});