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: disclose Apple Health archive removes older days and generic backups keep originals (#10728)
Adam Eivy56dffa4c9c30
diff --git a/client/src/pages/DataManager.jsx b/client/src/pages/DataManager.jsxindex 8be618473e..0e57d3abed 100644--- a/client/src/pages/DataManager.jsx+++ b/client/src/pages/DataManager.jsx@@ -213,7 +213,7 @@ function CategoryRow({ onMaintenanceComplete, cat, maxSize, onExpand, expanded,onCancel={onCancelPurge}/>) : (- <div className="flex items-center gap-2 p-3 border-b border-port-border/50">+ <div className="flex flex-wrap items-center gap-2 p-3 border-b border-port-border/50">{cat.archivable && (<buttononClick={() => onArchive(cat.key)}@@ -221,9 +221,16 @@ function CategoryRow({ onMaintenanceComplete, cat, maxSize, onExpand, expanded,className="flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-port-accent/10 text-port-accent rounded hover:bg-port-accent/20 transition-colors disabled:opacity-50"><Archive size={12} />- {archiving ? 'Archiving...' : cat.key === 'cos' ? 'Export backup (keeps originals)' : 'Archive'}+ {cat.key === 'health'+ ? (archiving ? 'Archiving older days…' : 'Archive days older than 365 days')+ : (archiving ? 'Exporting backup…' : 'Export backup (keeps originals)')}</button>)}+ {cat.archivable && cat.key === 'health' && (+ <span className="basis-full sm:basis-auto sm:flex-1 min-w-0 text-xs text-gray-500">+ Moves days older than 365 days into a backup archive and removes them from active health history. Newer days stay in place. Download the archive from Backups to keep a separate copy.+ </span>+ )}{categoryPurgeable && (busy ? (<span className="text-xs text-port-warning">{busyReason}</span>) : (diff --git a/client/src/pages/DataManager.test.jsx b/client/src/pages/DataManager.test.jsxindex c26ed7b376..950b48c190 100644--- a/client/src/pages/DataManager.test.jsx+++ b/client/src/pages/DataManager.test.jsx@@ -142,7 +142,7 @@ describe('DataManager per-item purge (#3327)', () => {expandRow('Images');await waitFor(() => expect(screen.getByText(/no whole-category purge/)).toBeInTheDocument());expect(screen.queryByRole('button', { name: 'Purge' })).not.toBeInTheDocument();- expect(screen.getByRole('button', { name: /Archive/ })).toBeInTheDocument();+ expect(screen.getByRole('button', { name: 'Export backup (keeps originals)' })).toBeInTheDocument();});it('deletes a single entry through the subPath purge', async () => {@@ -618,7 +618,7 @@ it('prevents overlapping item cleanup and an already-open bucket purge', async (fireEvent.click(remove);fireEvent.click(screen.getByRole('button', { name: 'Delete' }));expect(screen.getByRole('button', { name: 'Purge' })).toBeDisabled();- expect(screen.getByRole('button', { name: 'Archive' })).toBeDisabled();+ expect(screen.getByRole('button', { name: 'Export backup (keeps originals)' })).toBeDisabled();await act(async () => finish({ category: 'messages', subPath: 'example-account' }));});@@ -684,3 +684,27 @@ describe('DataManager independent read failures (#9446)', () => {expect(healthy).toHaveBeenCalledTimes(healthyCalls);});});++describe('DataManager archive action disclosure (#10728)', () => {+ const cats = [+ { key: 'health', path: 'data/health', label: 'Apple Health', description: 'Health days', archivable: true, deletable: false, classified: true, size: 100, fileCount: 2 },+ { key: 'reports', path: 'data/reports', label: 'Reports', description: 'Reports', archivable: true, deletable: false, classified: true, size: 100, fileCount: 2 },+ ];++ beforeEach(() => {+ getDataOverview.mockReset().mockResolvedValue({ totalSize: 200, dataDir: 'data', categories: cats });+ getDataCategory.mockReset().mockResolvedValue({ key: 'health', items: [] });+ });++ it('tells Apple Health users older days leave active history, but generic backups keep originals', async () => {+ render(<DataManager />);+ await waitFor(() => expect(screen.getAllByText('Apple Health').length).toBeGreaterThan(0));++ expandRow('Apple Health');+ expect(await screen.findByRole('button', { name: 'Archive days older than 365 days' })).toBeInTheDocument();+ expect(screen.getByText(/removes them from active health history/)).toBeInTheDocument();++ expandRow('Reports');+ expect(await screen.findByRole('button', { name: 'Export backup (keeps originals)' })).toBeInTheDocument();+ });+});