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
fix: clarify Data Manager storage totals (#9754)
Adam Eivy3f6a99acb6d3
diff --git a/client/src/components/dataManager/DataSelectionPanel.jsx b/client/src/components/dataManager/DataSelectionPanel.jsxindex 9bf5885ee9..b2fa5cf829 100644--- a/client/src/components/dataManager/DataSelectionPanel.jsx+++ b/client/src/components/dataManager/DataSelectionPanel.jsx@@ -56,11 +56,16 @@ export default function DataSelectionPanel({ overview, totalFiles, selected, det<span className={`w-1 h-6 rounded-full ${swatch}`} /><span className="truncate text-lg text-white">{selected ? selected.label : `${overview?.dataDir || 'data'}/`}</span></div>- <div className="mt-0.5 truncate text-xs font-mono text-gray-500">{selected?.path || 'everything PortOS stores'}</div>+ <div className="mt-0.5 truncate text-xs font-mono text-gray-500">{selected?.path || `Files in ${overview?.dataDir || 'data'}/`}</div><div className="mt-3 flex items-baseline gap-1.5"><span className="text-4xl font-light text-white tabular-nums">{value}</span><span className="text-sm text-gray-500">{unit}</span></div>+ {!selected && (+ <p className="mt-2 text-xs leading-relaxed text-gray-400">+ Live PostgreSQL data is not included. See <a className="text-port-accent hover:underline" href="/settings/database">Database settings</a> for database size.+ </p>+ )}<ProgressBar percent={share} tone={kind?.tone ?? 'accent'} track="border" label="Share of data/" className="mt-2" /><div className="mt-3 grid grid-cols-2 gap-x-4 gap-y-3"><Stat label="Of data/">{formatPercent(share, { decimals: share < 10 ? 1 : 0 })}</Stat>diff --git a/client/src/components/dataManager/DataSelectionPanel.test.jsx b/client/src/components/dataManager/DataSelectionPanel.test.jsxnew file mode 100644index 0000000000..bd858a66fb--- /dev/null+++ b/client/src/components/dataManager/DataSelectionPanel.test.jsx@@ -0,0 +1,36 @@+import { render, screen } from '@testing-library/react';+import { MemoryRouter } from 'react-router';+import { describe, expect, it } from 'vitest';+import DataSelectionPanel from './DataSelectionPanel';++const overview = {+ dataDir: 'data',+ totalSize: 2048,+ categories: [],+ disk: null,+};++describe('DataSelectionPanel storage summary', () => {+ it('identifies the overview as file storage and links to database size', () => {+ render(+ <MemoryRouter>+ <DataSelectionPanel overview={overview} totalFiles={2} selected={null} detail={null} onSelect={() => {}} onShowActions={() => {}} />+ </MemoryRouter>,+ );++ expect(screen.getByText('Files in data/')).toBeInTheDocument();+ expect(screen.getByText(/Live PostgreSQL data is not included/)).toBeInTheDocument();+ expect(screen.getByRole('link', { name: 'Database settings' })).toHaveAttribute('href', '/settings/database');+ });++ it('keeps the exclusion explanation off category details', () => {+ render(+ <MemoryRouter>+ <DataSelectionPanel overview={overview} totalFiles={2} selected={{ key: 'cache', label: 'Cache', path: 'data/cache/', size: 1024, fileCount: 1 }} detail={null} onSelect={() => {}} onShowActions={() => {}} />+ </MemoryRouter>,+ );++ expect(screen.getByText('data/cache/')).toBeInTheDocument();+ expect(screen.queryByText(/Live PostgreSQL data/)).not.toBeInTheDocument();+ });+});