Commit Graph

4672 Commits

Author SHA1 Message Date
Jamie Pine
a4728ff768 Merge pull request #3002 from spacedriveapp/tembo/upgrade-iroh-v0-95-1
Upgrade Iroh to v0.95.1
2026-01-24 16:18:22 -08:00
Jamie Pine
388b4dde28 cargo fmt 2026-01-24 16:14:21 -08:00
Jamie Pine
0bee40bcce refactor(network): update connection handling in ListLibraryDevicesQuery
- Modified the connection type retrieval to use the .borrow() method for improved compatibility with the updated Iroh API.
- Enhanced the logic for determining device connection status, ensuring accurate online/offline state updates based on current network conditions.
- Added a TODO comment regarding the potential removal of the is_online column for better clarity in future refactoring.
2026-01-24 16:08:48 -08:00
Jamie Pine
c09cc5942d refactor(network): update to use EndpointId and EndpointAddr
- Replaced NodeId with EndpointId in various components to align with the new Iroh v0.95+ API.
- Updated connection handling to utilize EndpointAddr instead of NodeAddr, reflecting changes in the underlying library.
- Adjusted discovery and connection logic to accommodate the immutability of EndpointAddr, enhancing overall network functionality.
2026-01-24 15:41:10 -08:00
tembo[bot]
d4d912bc3f chore(iroh): upgrade to v0.95.1 with breaking changes and migration steps 2026-01-24 21:58:43 +00:00
Jamie Pine
421883d7d0 fix(DevicePanel): handle optional config icon safely
Updated the DevicePanel component to use optional chaining when accessing the config icon, ensuring that it handles cases where the config may be undefined. This improves the robustness of the component.
2026-01-24 13:30:45 -08:00
Jamie Pine
d328854314 Merge pull request #2987 from spacedriveapp/cursor/device-proxy-pairing-651c
Proxy pairing
2026-01-24 13:28:52 -08:00
Jamie Pine
5d9a6918db Merge branch 'main' into cursor/device-proxy-pairing-651c 2026-01-24 13:27:02 -08:00
Jamie Pine
598cab2ab7 Merge pull request #3001 from spacedriveapp/convert-device-to-shared
Convert device to shared
2026-01-24 13:26:07 -08:00
Jamie Pine
7a6d79011a refactor(device): improve device data handling and UI components
- Enhanced the device model to handle null values more gracefully during data extraction, ensuring robust error handling for OS version, hardware model, CPU details, and other attributes.
- Updated the DevicePanel to include new connection status icons and tooltips for better user experience.
- Integrated TooltipProvider in the Shell component for consistent tooltip functionality across the interface.
- Minor documentation updates in the getting started guide to reflect the latest version and supported platforms.
2026-01-24 13:23:41 -08:00
Jamie Pine
67ce501b4d fixed the infinite loop bug. The bidirectional
registration now only triggers when a new device is created
  (messaging.rs:395-448), not when updating an existing device.

  What changed:
  - Moved the tokio::spawn block from after the entire match
  existing statement into the Ok(None) branch (new device
  creation)
  - When a device is updated (already exists), it no longer sends
   a registration request back
2026-01-24 12:37:44 -08:00
Jamie Pine
cb51a6c1fb add better ConnectionInfo 2026-01-24 12:13:26 -08:00
Jamie Pine
26a730c0f2 add sd sync partners CLI 2026-01-24 11:09:09 -08:00
Jamie Pine
eb1de30d26 remove pairing expiration 2026-01-24 11:06:02 -08:00
Jamie Pine
bdfd858ace Merge pull request #3000 from okunamayanad/bm-branch-2
fix: handle config changes in summarize_event
2026-01-22 22:36:39 -08:00
Jamie Pine
5986508ef9 Merge pull request #2998 from okunamayanad/bm-branch-1
fix: install cmake on setup
2026-01-22 22:26:12 -08:00
Baran Mordoğan
4309ca0e97 fix: handle config changes in summarize_event 2026-01-23 09:26:02 +03:00
Jamie Pine
596c3276bf Merge pull request #2996 from okunamayanad/fix-deps
fix: add node-gyp as a dev dep
2026-01-22 22:25:50 -08:00
Baran Mordoğan
9bdb7d1942 fix: install cmake on setup 2026-01-23 08:51:27 +03:00
Baran Mordoğan
ceac929c3e fix: add node-gyp as a dev dep 2026-01-23 08:22:01 +03:00
Jamie Pine
8eca2d2bc0 chore(migration): simplify device table updates by dropping unused columns
- Updated the migration to leverage SQLite's ALTER TABLE DROP COLUMN feature, eliminating the need for table recreation.
- Removed the last_sync_at, last_state_watermark, and last_shared_watermark columns from the devices table, as they are no longer utilized.
- This change streamlines the database schema and improves migration efficiency.
2026-01-22 19:37:58 -08:00
Jamie Pine
37d19adb08 chore(sync): remove legacy last_sync_at column and related functionality
- Removed the last_sync_at field from the device model and related structures, as it is now superseded by per-peer watermark tracking in sync.db.
- Updated various components, including device registration, sync setup, and messaging protocols, to eliminate references to last_sync_at.
- Introduced a migration to drop the obsolete last_sync_at column from the devices table.
- Adjusted tests and helper functions to reflect the removal of last_sync_at, ensuring they align with the new sync architecture.
2026-01-22 19:37:43 -08:00
Jamie Pine
5673bd0eb4 feat(device): enhance device registration with comprehensive hardware specifications
- Added new fields for device OS, hardware model, CPU details, memory, and storage specifications to the device registration process.
- Updated the LibraryManager to handle the new device attributes during device creation and updates.
- Modified the sync setup action to include full device information when registering devices with remote peers.
- Enhanced the messaging protocol to support the transmission of detailed hardware specs during device registration.
- Introduced a new test for transitive sync backfill to validate the complete sync process across multiple devices.
2026-01-22 18:02:07 -08:00
Jamie Pine
5f1cc9b539 dman it 2026-01-22 15:55:50 -08:00
Jamie Pine
5df40abd07 chore(migration): remove obsolete device sync migration
- Deleted the migration file for transitioning device sync to shared resources as it is no longer needed.
2026-01-22 15:54:11 -08:00
Jamie Pine
966b7fea7a feat(sync): transition device sync to shared resources
- Updated device versioning to use the `updated_at` timestamp for conflict resolution.
- Refactored sync methods to support shared changes with HLC-based conflict resolution.
- Implemented automatic device discovery via shared sync, allowing devices to propagate changes to all members in the library.
- Added migration to transition existing devices to shared sync.
- Enhanced documentation to reflect changes in device ownership and sync methods.
2026-01-22 15:52:42 -08:00
Jamie Pine
47277e7a00 Merge pull request #2994 from spacedriveapp/proxy-pairing-fixes
feat(pairing): enhance proxy pairing functionality and add tests
2026-01-22 15:02:01 -08:00
Jamie Pine
33070761d2 Update core/src/service/network/protocol/pairing/vouching_queue.rs
Co-authored-by: tembo[bot] <208362400+tembo[bot]@users.noreply.github.com>
2026-01-22 15:00:18 -08:00
Jamie Pine
1d11e121dc feat(pairing): enhance proxy pairing functionality and add tests
- Introduced new event types for proxy pairing confirmation and vouching readiness in the event summarization.
- Implemented a reload mechanism for protocol configurations to support dynamic updates during runtime.
- Enhanced the PairingProtocolHandler to manage joiner pairing handshakes and improve session handling.
- Added comprehensive unit tests for proxy pairing, covering session creation, state transitions, and vouching logic.
- Updated configuration structures to include default proxy pairing settings for better integration.
2026-01-22 14:55:58 -08:00
Jamie Pine
c6ada5a07a refactor(pairing): update proxy pairing configuration and serialization methods
- Changed the import path for ProxyPairingConfig to app_config for better organization.
- Replaced bincode serialization with encode_to_vec for improved error handling in vouch payload signing and validation.
- Updated references to AcceptedDevice and RejectedDevice to remove unnecessary super:: prefix.
- Adjusted the vouching queue to return rows_affected as a method call for consistency.
- Enhanced TestConfigBuilder to include default proxy pairing configuration.
2026-01-22 13:21:13 -08:00
Jamie Pine
38922c2765 refactor(app): improve code readability and structure in UpdateAppConfigAction
- Reformatted the valid themes array for better readability.
- Enhanced the downcast reference for PairingProtocolHandler to improve clarity.
- Streamlined the event emission for config changes to enhance code consistency.
2026-01-22 12:56:35 -08:00
Jamie Pine
f41b54fe26 Merge branch 'main' into cursor/device-proxy-pairing-651c 2026-01-22 12:46:15 -08:00
Jamie Pine
25197fde6d feat(mobile): add Jobs screen and enhance search functionality
- Introduced a new Jobs screen to display and manage job statuses with controls for pause, resume, and cancel actions.
- Updated RootLayout to include navigation to the new Jobs screen.
- Enhanced SearchScreen with improved search capabilities, including auto-focus and dynamic filtering based on user input.
- Integrated GlassContextMenu and SearchToolbar components for better user interaction during searches.
- Updated GlassSearchBar to support controlled input and clear functionality.
- Refactored ExplorerScreen to incorporate search context and improve file browsing experience.
2026-01-22 12:30:01 -08:00
Jamie Pine
60803ab7ec refactor(mobile): remove unused navigation components and enhance search functionality
- Deleted obsolete navigation components including DrawerNavigator, RootNavigator, and TabNavigator to streamline the mobile app structure.
- Introduced the GlassSearchBar component for improved search capabilities across screens.
- Updated BrowseScreen to integrate the new search bar and enhance user experience with animated scrolling and dynamic content display.
- Adjusted layout and styling for better responsiveness and visual appeal.
- Added phosphor-react-native dependency for icon support in the GlassSearchBar.
2026-01-22 11:22:18 -08:00
Jamie Pine
4294015adc Merge pull request #2992 from spacedriveapp/cursor/usenormalizedquery-direct-query-input-405e
UseNormalizedQuery direct query input
2026-01-22 10:40:54 -08:00
Cursor Agent
2f7a88a625 refactor useNormalizedQuery to accept query name
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-22 07:00:52 +00:00
Jamie Pine
0264add338 feat(mobile): add GlassSearchBar and JobManagerPanel components, update Xcode scheme
- Introduced GlassSearchBar component for enhanced search functionality in the mobile app.
- Added JobManagerPanel component to manage and display job statuses.
- Updated Xcode scheme to use Debug configuration and LLDB debugger for improved development experience.
- Enhanced OverviewScreen to integrate the new components, improving user interaction and job visibility.
2026-01-21 16:15:58 -08:00
Jamie Pine
59184f8849 feat(mobile): integrate LiquidGlass for enhanced UI and add sidecar statistics
- Added LiquidGlass dependency to enhance visual effects in the GlassButton component.
- Updated GlassButton to support LiquidGlass effects based on device compatibility.
- Introduced PageIndicator component for improved navigation feedback in BrowseScreen.
- Enhanced OverviewScreen and HeroStats to display sidecar statistics, including count and size.
- Updated related files and dependencies to reflect these changes.
2026-01-21 14:58:12 -08:00
Jamie Pine
0f65d672ff feat(overview, mobile): Themes and improved OverviewScreen
- Introduced a new GlassButton component for enhanced UI interactions.
- Updated OverviewScreen to include animated blur effects and improved header behavior during scrolling.
- Added expo-blur dependency to enhance visual effects in the mobile application.
- Adjusted Podfile.lock and package.json to reflect new dependencies and ensure compatibility.
2026-01-21 12:26:34 -08:00
Cursor Agent
7070f0a597 fix: unique proxy keys and auto vouch
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-21 01:51:29 +00:00
Jamie Pine
97c4de674e feat(todos, docs, file-inspector): update TODO list, enhance documentation with new release info, and add quick actions for file management
- Marked volume reactivity as completed in the TODO list.
- Updated documentation to reflect the release of v2.0.0-alpha.1, including new features and supported platforms.
- Introduced a FileQuickActions component in the FileInspector, allowing users to favorite, share, and manage files with new processing options.
2026-01-20 17:17:30 -08:00
Cursor Agent
4e78a0cb6b feat: add proxy pairing flow
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-21 00:47:31 +00:00
Cursor Agent
6be13cf5eb docs: add proxy pairing design
Co-authored-by: ijamespine <ijamespine@me.com>
2026-01-20 23:48:48 +00:00
Jamie Pine
3be9403c2c Merge pull request #2985 from spacedriveapp/mobile-explorer
Mobile Explorer + Sync Event Emission Fixes
2026-01-20 15:10:36 -08:00
Jamie Pine
1b04b3b431 feat(sync): implement batch event emission for applied UUIDs during backfill
This commit enhances the BackfillManager by collecting successfully applied UUIDs during the backfill process and emitting batch resource events for UI reactivity. It also updates the protocol handler to emit resource events for insert and update changes, ensuring that the UI reflects the latest state. Additionally, a new test is added to verify that volume ResourceChanged events are emitted correctly during synchronization, improving the overall synchronization experience.
2026-01-20 14:55:31 -08:00
Jamie Pine
b9bfa5463c feat(sync): enhance foreign key handling and mime type synchronization
This commit introduces improvements to the synchronization process by adding foreign key conversion to UUIDs for cross-device compatibility. It also implements batch syncing of mime types before content identities to ensure proper dependency resolution. Additionally, the content identity model is updated to include mime type and kind ID handling, enhancing data integrity during sync operations. Debugging information is added to track registered models and their sync types, improving traceability in the sync process.
2026-01-20 14:00:27 -08:00
Jamie Pine
f2dc233f93 feat(file-explorer): enhance file handling and search functionality
This commit introduces several improvements to the file explorer and search functionalities. It adds a new `getFileKindForIcon` utility for better icon resolution based on file content kind. The search input validation now allows empty queries when sorting by `IndexedAt`, and the search query execution has been optimized to handle empty queries more efficiently. Additionally, the `ContentKind` utility has been refactored and centralized in the `ts-client`, improving code organization and reusability across components. Updates to various components ensure consistent usage of the new utilities, enhancing the overall user experience.
2026-01-20 10:36:18 -08:00
Jamie Pine
ebe7d36ed5 feat(recents): add RecentsView for displaying recently indexed files
This commit introduces the RecentsView component, which allows users to view recently indexed files sorted by the indexed_at timestamp. The view integrates seamlessly with existing components, ensuring consistent interactions such as keyboard navigation and drag-to-select. Additionally, it updates the Explorer context to support entering and exiting recents mode, enhancing the overall file browsing experience.
2026-01-20 10:35:48 -08:00
Jamie Pine
7c3e977025 feat(explorer): implement ExplorerScreen and file browsing functionality
This commit introduces the ExplorerScreen, allowing users to navigate and view files in a structured manner. It includes the implementation of hooks for fetching files, supporting both virtual and directory listings. The screen features a toggle between list and grid views, enhancing user experience. Additionally, new components for file representation in both views have been added, streamlining the browsing process and improving overall functionality.
2026-01-20 09:46:10 -08:00
Jamie Pine
1de4f625ec feat(browse): enhance BrowseScreen with new components for Devices, Locations, and Volumes
This commit introduces three new components: DevicesGroup, LocationsGroup, and VolumesGroup, to the BrowseScreen. These components utilize normalized queries to fetch and display relevant data, improving the organization and modularity of the code. Additionally, the BrowseScreen has been refactored to remove unused code and streamline the UI, enhancing overall user experience.
2026-01-19 15:43:45 -08:00