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(goals): replace add button with inline quick-add input and clean up refresh UI
Adam Eivyfa626b00973a
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex b30a9fbbe7..1955d26ede 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -2,6 +2,11 @@- Time Capsule Snapshots for Digital Twin — create versioned archives of your complete digital twin (documents, traits, goals, genome, autobiography, test history) to track identity evolution over time. Includes create, view, compare, and delete functionality with a dedicated tab at `/digital-twin/time-capsule`+## Changed++- Goals page: replace "Add Root Goal" button with inline quick-add input for faster goal creation+- Goals page: remove manual refresh button, use Loader2 spinner for loading state+## Fixed- Toggle switches rendering oversized due to min-h/min-w 44px touch-target constraints inflating the visual elementdiff --git a/client/src/components/goals/GoalsListView.jsx b/client/src/components/goals/GoalsListView.jsxindex a3226525e4..a5c45c9c81 100644--- a/client/src/components/goals/GoalsListView.jsx+++ b/client/src/components/goals/GoalsListView.jsx@@ -192,6 +192,7 @@ export default function GoalsListView({ data, onRefresh }) {const [searchQuery, setSearchQuery] = useState('');const [showNewGoal, setShowNewGoal] = useState(false);const [newGoal, setNewGoal] = useState({ ...DEFAULT_NEW_GOAL });+ const [quickAdd, setQuickAdd] = useState('');const [organizing, setOrganizing] = useState(false);const [draggedGoal, setDraggedGoal] = useState(null);const {@@ -252,6 +253,13 @@ export default function GoalsListView({ data, onRefresh }) {onRefresh();};+ const handleQuickAdd = async () => {+ if (!quickAdd.trim()) return;+ await api.createGoal({ ...DEFAULT_NEW_GOAL, title: quickAdd.trim() });+ setQuickAdd('');+ onRefresh();+ };+const handleOrganize = async () => {if (!selectedProviderId) { toast.error('No API provider available'); return; }setOrganizing(true);@@ -314,17 +322,17 @@ export default function GoalsListView({ data, onRefresh }) {className="w-full bg-port-bg border border-port-border rounded-lg pl-8 pr-3 py-1.5 text-sm text-white"/></div>- <button- onClick={() => {- setNewGoal({ ...DEFAULT_NEW_GOAL });- setShowNewGoal(true);- }}- className="flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-lg bg-port-accent text-white hover:bg-blue-600 whitespace-nowrap"- >- <Plus className="w-4 h-4" />- <span className="hidden sm:inline">Add Root Goal</span>- <span className="sm:hidden">Add</span>- </button>+ <div className="relative flex-1 min-w-[140px] max-w-xs">+ <Plus className="absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500" />+ <input+ type="text"+ value={quickAdd}+ onChange={e => setQuickAdd(e.target.value)}+ onKeyDown={e => e.key === 'Enter' && handleQuickAdd()}+ placeholder="Add goal..."+ className="w-full bg-port-bg border border-port-border rounded-lg pl-8 pr-3 py-1.5 text-sm text-white placeholder-gray-500"+ />+ </div>{(data?.flat?.length ?? 0) >= 2 && (<div className="flex items-center gap-2"><div className="hidden sm:block">diff --git a/client/src/pages/Goals.jsx b/client/src/pages/Goals.jsxindex e56f785331..93cdc3eb1f 100644--- a/client/src/pages/Goals.jsx+++ b/client/src/pages/Goals.jsx@@ -1,6 +1,6 @@import { useState, useEffect, useCallback } from 'react';import { useParams, useNavigate } from 'react-router-dom';-import { Target, TreePine, List, RefreshCw } from 'lucide-react';+import { Loader2, Target, TreePine, List } from 'lucide-react';import * as api from '../services/api';import GoalsTreeView from '../components/goals/GoalsTreeView';import GoalsListView from '../components/goals/GoalsListView';@@ -51,13 +51,6 @@ export default function Goals() {)}</div><div className="flex items-center gap-2 sm:gap-3">- <button- onClick={() => { setLoading(true); loadData(); }}- className="p-2 rounded-lg text-gray-400 hover:text-white hover:bg-port-border/50"- title="Refresh"- >- <RefreshCw className={`w-4 h-4 ${loading ? 'animate-spin' : ''}`} />- </button><div className="flex bg-port-bg rounded-lg p-0.5">{TABS.map(t => {const Icon = t.icon;@@ -85,7 +78,7 @@ export default function Goals() {<div className="flex-1 overflow-hidden">{loading ? (<div className="flex items-center justify-center h-full">- <RefreshCw className="w-6 h-6 text-port-accent animate-spin" />+ <Loader2 className="w-6 h-6 text-port-accent animate-spin" /></div>) : tab === 'list' ? (<GoalsListView data={data} onRefresh={loadData} />