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([inline-confirm-row-border-b-variant]): add separator variant to InlineConfirmRow
[._.]/ Adam Eivye16d6aa73f64
diff --git a/client/src/components/brain/links/BucketCard.jsx b/client/src/components/brain/links/BucketCard.jsxindex a8f70b358a..986b4116e6 100644--- a/client/src/components/brain/links/BucketCard.jsx+++ b/client/src/components/brain/links/BucketCard.jsx@@ -1,6 +1,7 @@import { useState } from 'react';import { Plus, Edit2, Trash2, Save, X, Check, GripVertical } from 'lucide-react';import BrailleSpinner from '../../BrailleSpinner';+import InlineConfirmRow from '../../ui/InlineConfirmRow';import LinkChip from './LinkChip';import { bucketColor, BUCKET_COLORS, BUCKET_COLOR_KEYS, LINK_DND_TYPE, BUCKET_DND_TYPE } from './bucketColors';@@ -155,21 +156,12 @@ export default function BucketCard({{/* Delete confirm */}{confirmDelete && (- <div className="flex items-center gap-2 px-3 py-2 bg-port-error/10 border-b border-port-error/30">- <span className="text-xs text-white flex-1">Delete bucket? Its links stay (ungrouped).</span>- <button- onClick={() => { onDelete(bucket.id); setConfirmDelete(false); }}- className="px-2 py-1 text-xs bg-port-error text-white rounded hover:bg-port-error/80 transition-colors"- >- Delete- </button>- <button- onClick={() => setConfirmDelete(false)}- className="px-2 py-1 text-xs text-gray-400 hover:text-white transition-colors"- >- Cancel- </button>- </div>+ <InlineConfirmRow+ variant="separator"+ question="Delete bucket? Its links stay (ungrouped)."+ onConfirm={() => { onDelete(bucket.id); setConfirmDelete(false); }}+ onCancel={() => setConfirmDelete(false)}+ />)}{/* Chips */}diff --git a/client/src/components/brain/tabs/DailyLogTab.jsx b/client/src/components/brain/tabs/DailyLogTab.jsxindex 940e5af8bd..6e6e85ab40 100644--- a/client/src/components/brain/tabs/DailyLogTab.jsx+++ b/client/src/components/brain/tabs/DailyLogTab.jsx@@ -4,6 +4,7 @@ import {BookOpen, ChevronLeft, ChevronRight, Mic, MicOff, Save, Volume2, Settingimport * as api from '../../../services/api';import { getNotesVaults } from '../../../services/apiNotes';import toast from '../../ui/Toast';+import InlineConfirmRow from '../../ui/InlineConfirmRow';import { onVoiceEvent, sendText, setDictation as setVoiceDictation } from '../../../services/voiceClient';import BrailleSpinner from '../../BrailleSpinner';@@ -551,11 +552,12 @@ export default function DailyLogTab() {)}{confirmDelete && (- <div className="px-3 sm:px-4 py-2 bg-port-error/10 border-b border-port-error/30 flex flex-wrap items-center gap-2 sm:gap-3 text-sm">- <span className="text-port-error flex-1 min-w-0">Delete the entry for {date} permanently?</span>- <button onClick={handleDelete} className="px-3 min-h-[40px] rounded bg-port-error text-white text-xs">Delete</button>- <button onClick={() => setConfirmDelete(false)} className="px-3 min-h-[40px] rounded bg-port-card text-gray-300 text-xs">Cancel</button>- </div>+ <InlineConfirmRow+ variant="separator"+ question={`Delete the entry for ${date} permanently?`}+ onConfirm={handleDelete}+ onCancel={() => setConfirmDelete(false)}+ />)}{loading ? (diff --git a/client/src/components/brain/tabs/NotesTab.jsx b/client/src/components/brain/tabs/NotesTab.jsxindex 38af8955d2..ff4e89d091 100644--- a/client/src/components/brain/tabs/NotesTab.jsx+++ b/client/src/components/brain/tabs/NotesTab.jsx@@ -20,6 +20,7 @@ import {} from 'lucide-react';import BrailleSpinner from '../../BrailleSpinner';import toast from '../../ui/Toast';+import InlineConfirmRow from '../../ui/InlineConfirmRow';import FolderPicker from '../../FolderPicker';import { timeAgo, formatBytes } from '../../../utils/formatters';@@ -500,21 +501,12 @@ export default function NotesTab({ onRefresh }) {{/* Delete confirmation */}{confirmDelete === selectedNote.path && (- <div className="px-4 py-2 bg-port-error/10 border-b border-port-error/30 flex items-center gap-3 text-sm">- <span className="text-port-error">Delete this note permanently?</span>- <button- onClick={() => handleDeleteNote(selectedNote.path)}- className="px-2 py-1 rounded bg-port-error text-white text-xs"- >- Delete- </button>- <button- onClick={() => setConfirmDelete(null)}- className="px-2 py-1 rounded bg-port-card text-gray-300 text-xs"- >- Cancel- </button>- </div>+ <InlineConfirmRow+ variant="separator"+ question="Delete this note permanently?"+ onConfirm={() => handleDeleteNote(selectedNote.path)}+ onCancel={() => setConfirmDelete(null)}+ />)}{/* Note content */}diff --git a/client/src/components/ui/InlineConfirmRow.jsx b/client/src/components/ui/InlineConfirmRow.jsxindex 796066d6c0..46e5ad3ccb 100644--- a/client/src/components/ui/InlineConfirmRow.jsx+++ b/client/src/components/ui/InlineConfirmRow.jsx@@ -14,6 +14,15 @@ const TONES = {},};+// Layout variants share the same tone + button styling and differ only in the+// frame: `box` is a standalone rounded card (inline, text-xs); `separator` is a+// full-width strip with a bottom border (text-sm), used as an attached header/+// footer band above panel content. Button styling is identical across variants.+const VARIANTS = {+ box: { frame: 'p-2 border rounded', question: 'text-xs' },+ separator: { frame: 'px-4 py-2 border-b', question: 'text-sm' },+};+export default function InlineConfirmRow({question,confirmText = 'Delete',@@ -23,14 +32,16 @@ export default function InlineConfirmRow({onConfirm,onCancel,tone = 'error',+ variant = 'box',className = '',...rest}) {const t = TONES[tone] || TONES.error;+ const v = VARIANTS[variant] || VARIANTS.box;return (- <div className={`flex items-center gap-2 p-2 border rounded ${t.wrapper} ${className}`.trim()} {...rest}>- <span className="text-xs text-white flex-1">{question}</span>+ <div className={`flex items-center gap-2 ${v.frame} ${t.wrapper} ${className}`.trim()} {...rest}>+ <span className={`${v.question} text-white flex-1`}>{question}</span><buttontype="button"onClick={onConfirm}diff --git a/client/src/components/ui/InlineConfirmRow.test.jsx b/client/src/components/ui/InlineConfirmRow.test.jsxindex 243f6a1c12..a96d68ccc8 100644--- a/client/src/components/ui/InlineConfirmRow.test.jsx+++ b/client/src/components/ui/InlineConfirmRow.test.jsx@@ -69,4 +69,30 @@ describe('InlineConfirmRow', () => {const wrapper = screen.getByTestId('confirm-row');expect(wrapper.getAttribute('aria-label')).toBe('Confirm deletion');});++ it('defaults to the box variant (rounded border, text-xs)', () => {+ render(<InlineConfirmRow question="x" />);+ const wrapper = screen.getByText('x').closest('div');+ expect(wrapper.className).toContain('rounded');+ expect(wrapper.className).not.toContain('border-b');+ expect(screen.getByText('x').className).toContain('text-xs');+ });++ it('renders a full-width bottom-border strip at text-sm for the separator variant', () => {+ render(<InlineConfirmRow question="x" variant="separator" />);+ const wrapper = screen.getByText('x').closest('div');+ expect(wrapper.className).toContain('border-b');+ expect(wrapper.className).not.toContain('rounded');+ expect(screen.getByText('x').className).toContain('text-sm');+ // Buttons keep the shared (box) styling — filled confirm + ghost cancel with hover.+ expect(screen.getByRole('button', { name: 'Delete' }).className).toContain('bg-port-error');+ expect(screen.getByRole('button', { name: 'Cancel' }).className).toContain('hover:text-white');+ });++ it('falls back to the box variant for an unknown variant value', () => {+ render(<InlineConfirmRow question="x" variant="bogus" />);+ const wrapper = screen.getByText('x').closest('div');+ expect(wrapper.className).toContain('rounded');+ expect(wrapper.className).not.toContain('border-b');+ });});diff --git a/client/src/components/wiki/tabs/BrowseTab.jsx b/client/src/components/wiki/tabs/BrowseTab.jsxindex ee111d44ea..bc6cb4b831 100644--- a/client/src/components/wiki/tabs/BrowseTab.jsx+++ b/client/src/components/wiki/tabs/BrowseTab.jsx@@ -5,6 +5,7 @@ import {FileText, FolderOpen,ChevronDown, ChevronRight, ArrowLeft, Tag, Link2, Edit3, Save,Trash2, X} from 'lucide-react';import toast from '../../ui/Toast';+import InlineConfirmRow from '../../ui/InlineConfirmRow';import { timeAgo, formatBytes } from '../../../utils/formatters';import { WIKI_CATEGORIES } from '../constants.jsx';import BrailleSpinner from '../../BrailleSpinner';@@ -255,11 +256,12 @@ export default function BrowseTab({ vaultId, notes, rawNotes, allNotes, onRefres{/* Delete confirmation */}{confirmDelete === selectedNote.path && (- <div className="px-4 py-2 bg-port-error/10 border-b border-port-error/30 flex items-center gap-3 text-sm">- <span className="text-port-error">Delete this note permanently?</span>- <button onClick={() => handleDeleteNote(selectedNote.path)} className="px-2 py-1 rounded bg-port-error text-white text-xs">Delete</button>- <button onClick={() => setConfirmDelete(null)} className="px-2 py-1 rounded bg-port-card text-gray-300 text-xs">Cancel</button>- </div>+ <InlineConfirmRow+ variant="separator"+ question="Delete this note permanently?"+ onConfirm={() => handleDeleteNote(selectedNote.path)}+ onCancel={() => setConfirmDelete(null)}+ />)}{/* Note content */}