packages/interface/PROPOSED_STRUCTURE.md
src/
├── Shell.tsx # App entry point
├── ShellLayout.tsx # Layout chrome
├── router.tsx # Route configuration
├── index.tsx # Public exports
├── styles.css # Global styles
│
├── contexts/ # React contexts
│ ├── SpacedriveContext.tsx # Main client context (rename from context.tsx)
│ ├── ServerContext.tsx
│ └── PlatformContext.tsx # (rename from platform.tsx)
│
├── routes/ # Route components (what renders in <Outlet />)
│ ├── overview/
│ │ ├── index.tsx
│ │ ├── OverviewTopBar.tsx
│ │ └── ...
│ ├── explorer/ # Move from components/Explorer/
│ │ ├── ExplorerView.tsx # Main view
│ │ ├── context.tsx # Explorer state
│ │ ├── views/ # Grid, List, Column, etc.
│ │ ├── components/ # ExplorerView-specific
│ │ └── hooks/
│ ├── tag/
│ ├── file-kinds/
│ ├── settings/ # Move from Settings/
│ └── daemon/ # Rename DaemonManager
│
├── components/ # Reusable feature components
│ ├── DndProvider.tsx
│ ├── ErrorBoundary.tsx # Move from root
│ │
│ ├── Inspector/ # Consolidate all inspector code
│ │ ├── Inspector.tsx # Main container (move from root)
│ │ ├── variants/ # Inspector implementations
│ │ │ ├── FileInspector.tsx
│ │ │ ├── LocationInspector.tsx
│ │ │ ├── MultiFileInspector.tsx
│ │ │ └── KnowledgeInspector.tsx
│ │ └── primitives/ # UI components (current Inspector/ folder)
│ │ ├── Tabs.tsx
│ │ ├── Section.tsx
│ │ ├── InfoRow.tsx
│ │ └── ...
│ │
│ ├── SpacesSidebar/
│ ├── QuickPreview/
│ ├── JobManager/
│ ├── SyncMonitor/
│ ├── TabManager/
│ ├── Tags/
│ │
│ ├── modals/ # Consolidate modals
│ │ ├── CreateLibraryModal.tsx
│ │ ├── PairingModal.tsx
│ │ ├── SyncSetupModal.tsx
│ │ └── FileOperationModal.tsx
│ │
│ └── overlays/ # Overlays
│ ├── DaemonDisconnectedOverlay.tsx
│ └── DaemonStartupOverlay.tsx
│
├── windows/ # Special purpose windows
│ ├── FloatingControls.tsx
│ ├── DemoWindow.tsx
│ └── Spacedrop.tsx
│
├── demo/ # Demo/testing components
│ ├── LocationCacheDemo.tsx
│ └── SpacedropDemo.tsx
│
├── hooks/ # Global hooks
│ ├── useKeybind.ts
│ ├── useContextMenu.ts
│ ├── useClipboard.ts
│ └── ...
│
├── util/ # Utilities
│ └── keybinds/
│
└── TopBar/ # TopBar portal system
├── TopBar.tsx
├── Context.tsx
└── Portal.tsx
ErrorBoundary.tsx to components/windows/ and move demo/special windowsdemo/ and move demo componentscomponents/modals/ and move modalscomponents/overlays/ and move overlayscontexts/All phases complete! The refactor has been fully implemented:
index.tsx and components/index.tsExplorerView moved to routes/explorer/ (primary location is routes, can be re-exported from components if needed)platform.tsx → contexts/PlatformContext.tsxcomponents/modals/, components/overlays/)