Commit Graph
913 Commits
Author SHA1 Message Date
Cursor Agentandijamespine dc66b34de1 feat: Add file and index commands to CLI
Co-authored-by: ijamespine <ijamespine@me.com>
2025-09-11 01:14:10 +00:00
Jamie Pine 940ddead3e refactor: enhance core action handling and modularity
- Introduced new methods for executing actions and queries by method string, improving the flexibility of the core API.
- Refactored the `CoreClient` to utilize a `METHOD` constant instead of `TYPE_ID`, enhancing clarity in action dispatching.
- Removed the legacy `ActionHandler` trait and associated registry, streamlining action execution through the unified `LibraryAction` trait.
- Updated the `RpcServer` to handle action and query requests more efficiently, improving error handling and response management.
- Enhanced the `FileCopyAction` and related tests to support modular action construction, ensuring better validation and type safety.

These changes significantly improve the modularity and maintainability of the action system while ensuring a consistent API surface.
2025-09-10 12:46:37 -04:00
Jamie Pine 1f2c38b440 refactor: introduce CLI application structure and enhance command handling
- Added a new `apps/cli` module to encapsulate the CLI application logic, improving organization and modularity.
- Updated `Cargo.toml` to include dependencies for the CLI, such as `clap` for command-line argument parsing.
- Implemented a `Context` struct to manage application state and core client interactions.
- Created command handling for file operations and library management, enhancing user experience and functionality.
- Introduced utility functions for output formatting, supporting both human-readable and JSON outputs.

These changes significantly enhance the structure and maintainability of the CLI application while providing a more robust user interface.
2025-09-09 20:04:20 -04:00
Jamie Pine e4b463d78e refactor: add client module and implement Wire trait for input structures
- Introduced a new `client` module to enhance the modularity of the codebase.
- Implemented the `Wire` trait for `FileCopyInput` and `ListLibrariesQuery`, providing type IDs for better integration with the system.
- Updated the `lib.rs` and `mod.rs` files to include the new `client` module, ensuring proper organization and accessibility.

These changes improve the structure and maintainability of the codebase while enhancing type safety in data handling.
2025-09-09 16:53:44 -04:00
Jamie Pine a8a2c732ef more refactor 2025-09-07 01:43:57 -04:00
Jamie Pine 41df3c86ee more 2025-09-06 21:13:31 -04:00
Jamie Pine 29a87a91ce huge refactor 2025-09-06 21:00:37 -04:00
Arnab ChakrabortyandEricson Soares dcb78f079e Working Sync & Thumbnail Sync (#2875)
* First draft on new p2p design

* Test sync

* Sync works

* Update version

* Fix merge conflicts

* More stuff for thumbnail sync

* Get the thumbnail

* Update mod.rs

* Working thumbnail sync

* Format

* Update thumbnails.rs

* Update runner.rs

* Update runner.rs

---------

Co-authored-by: Ericson Soares <ericson.ds999@gmail.com>
2025-03-20 07:34:59 +03:00
Arnab Chakraborty 2188bcabe9 Comment out Linux webview devtools debug code 2025-02-22 05:59:22 +00:00
Arnab Chakraborty d3269667ca Disable Drag & Drop on Linux for now 2025-02-22 05:14:14 +00:00
Arnab Chakraborty c45268c571 Attempt to fix linux compile 2025-02-18 05:34:01 +00:00
NickolayandArnab Chakraborty 28a390f167 Fix builds on windows (#2864)
* Fix builds on windows

* Fix rust compile issues

* Autoformat

* Fix windows volumes compile again

---------

Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
2025-02-10 22:57:43 +03:00
Arnab Chakraborty b30a962837 Trying to disable drag on linux again 2025-02-02 03:26:55 -05:00
Arnab Chakraborty 40fc8964b4 Disable drag & drop outside on Linux & Browser 2025-02-02 03:02:28 -05:00
Arnab Chakraborty 110f6126e2 Fix drag working in dev & prod 2025-02-02 02:59:28 -05:00
Arnab Chakraborty 5ae45c62a6 Disable drag on linux 2025-02-02 02:43:54 -05:00
Arnab Chakraborty 150413fb08 Fix gtk_window() call again 2025-02-02 02:08:59 -05:00
Arnab Chakraborty 9bdf0fe569 Fix for drag window gtk req for linux 2025-02-02 01:51:49 -05:00
Arnab Chakraborty ab01b5d0ee Fix drag & drop in prod 2025-02-01 22:38:35 -05:00
Arnab Chakraborty 94db2c8815 More updates (#2861)
* Fix migrations

* Fix migrations
2025-01-30 07:20:01 +03:00
Jamie PineandArnab Chakraborty e0c20a71db Landing & Bug Fixes (#2850)
* added companies carousel

* vdfs section wip

* Fix for compile error on Vercel

* better bento boxes and security animation

* goated vault animation

* cloud page

* sike ig thats a pricing page

* improvement to button components

* added yearly pricing

* roadmap updates

* hero updates (wip in figma)

* mobile app section

* upgrade next in hopes of successful deploy

* downgrade next

* changes to content layer for deployment

* Fix vercel compile error, again

* Update next.config.js

* Fix for onboarding

* mut http_client_builder

* fix cloud URL

* Fix mobile compile

* Remove auth

* Fix volumes deadlock

* Update pnpm-lock.yaml

* Update lib.rs

* Get statistics working with volumes

* Disable date filters

* Updates

* Roadmap updates

* Update team members

* Update page.tsx

* Fix to date filters

* Get readable dates & fix date filter search

* Change version to `0.4.3`

---------

Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
2025-01-28 04:35:29 +03:00
Arnab Chakraborty 3e50ebcc65 Drag & Drop into/out of Spacedrive (#2849)
* Better drag & drop into the os

* Update drag.rs

* Drag & Drop into Spacedrive from OS

* Re-enable Supertokes & change Drag-rs pointer

* Autoformat
2025-01-10 15:01:44 +03:00
James PineandEricson Fogo Soares a9ee1036c6 Added local devices endpoint
Co-authored-by: Ericson "Fogo" Soares <ericson.ds999@gmail.com>
2025-01-03 17:56:41 -08:00
Arnab Chakraborty 26a9f30b0d Remove debug <SizeDisplay /> component 2024-12-30 21:55:48 +03:00
Arnab Chakraborty 9de0c9423b Better Drag & Drop into OS
Now it doesn't freeze the entire app and UI, and the drag & drop into OS system is only called when the mouse leaves the app's boundaries!

However, the event/system doesn't cancel when you re-enter the application, and is something I'm still working on.
2024-12-30 21:47:28 +03:00
Arnab Chakraborty 0090af6b2f [ENG-1402] Drag & drop into OS (#2839)
* Wip but functional drag drop out.

* Working transparent image for drag & drop

* Clean up

* Drag & Drop into OS from indexed locations

* autoformat
2024-12-26 00:43:31 +03:00
Lynx 78afa0c014 Fix font in landing and app 2024-12-17 19:11:20 -06:00
Arnab Chakraborty 58e7151e19 Move Auth Tokens storage from Local Storage to custom encrypted .sdks file (#2831)
* Initial encryption functions

* Storage of encrypted tokens & working login

* Add customized `tauri-plugin-cors-fetch`

We need to have it in our crates folder due to the dependency of `sd-crypto` for the handling of cookies.

* Lint
2024-12-14 19:49:50 -05:00
Arnab Chakraborty 8d7e79816a Fix for opening files in subdirectories on iOS 2024-12-02 00:02:53 -05:00
Arnab Chakraborty fcaac7860f Fix CORS issue & Mobile core startup times 2024-11-30 00:55:06 -05:00
Arnab Chakraborty a1b3c8cf8d Lint 2024-11-28 03:51:33 -05:00
Arnab Chakraborty e4baede80d Only print when in debug mode 2024-11-28 03:44:21 -05:00
Arnab Chakraborty 189b61a377 Working fix + Native Swift Functions 2024-11-28 03:21:30 -05:00
Lynx deed43dec8 Bump version to 0.5.0 2024-11-10 02:29:06 -08:00
Arnab Chakraborty be20d3d4fd Fix iOS builds 2024-11-01 20:40:27 -04:00
Vítor Vasconcellos 3d58f4b470 Autoformat 2024-10-21 14:49:02 -03:00
Vítor Vasconcellos 7e7dd8fbde Merge remote-tracking branch 'origin/main' into eng-1828-migration-to-new-cloud-api-system 2024-10-21 14:40:59 -03:00
Vítor Vasconcellos cc7c9d5793 Improve file thumbnails and Quick Preview (+ some code clean-up and rust deps update) (#2758)
* Update rspc, prisma-client-rust, axum and tanstack-query
 - Deleted some unused examples and fully commented out frontend code
 - Implement many changes required due to the updates
 - Update most rust dependencies

* Re-enable p2p

* Fix server

* Auto format

* Fix injected script format
 - Update some github actions
 - Update pnpm lock file

* Fix devtools showing up when app opens
 - Fix million complaining about Sparkles component

* Fix sd-server

* Fix and improve thumbnails rendering
 - Fix core always saying a new thumbnail was generated even for files that it skiped thumbnail generation
 - Rewrite FileThumb and improve related components

* Ignore tmp files when running prettier

* Improve FileThumb component performance
 - Rework useExplorerDraggable and useExplorerItemData hooks due to reduce unecessary re-renders

* More fixes for thumb component
 - A couple of minor performance improvements to frontend code

* auto format

* Fix Thumbnail and QuickPreview

* Fix logic for when to show 'fail to load original' error message in QuickPreview
 - Updated prisma-client-rust, libp2p, tauri, tauri-specta, rspc and hyper

* Fix type checking
 - Format scripts

* Add script prettier config

* Fix serde missing feature
 - Use rust-libp2p spacedrive fork again
 - Update rspc

* Autoformat + fix pnpm lock

* Fix thumbnail first load again

* Autoformat

* autoformat

* Fix rust-libp2p fork url again?

* Remove usePathsInfiniteQuery hook

* Update tauri 2.0.6
2024-10-21 15:47:40 +00:00
Vítor Vasconcellos 124fe5b0b0 Remove obsolete settings cloud page
- Fixed some typings
 - Update vite
2024-10-19 08:06:11 -03:00
Arnab Chakraborty 1f0525c8ee Autoformatting 2024-10-14 22:49:46 -04:00
Arnab Chakraborty 1bfaed39b0 Add sync status to mobile 2024-10-14 22:46:13 -04:00
Arnab Chakraborty bc1ee54456 Merge branch '0.5.0-dev' into eng-1828-migration-to-new-cloud-api-system 2024-10-14 21:22:38 -04:00
Arnab Chakraborty b7c150ca84 Merge branch 'main' into 0.5.0-dev 2024-10-14 21:20:28 -04:00
Arnab Chakraborty 99d453797b Sync profile page & Update mobile device names
DO NOT TRY ANDROID. IT IS BROKEN AND PANICKING ON CORE WHEN COMPILED.
2024-10-14 21:18:28 -04:00
James Pine 19825d4391 add tauri plugin clipboard manager for pasting credentials (not impl yet) 2024-10-12 01:01:17 -07:00
ameer2468 81147e21a2 cleanup auth, sync join modal, and more 2024-10-11 17:56:01 +03:00
Arnab Chakraborty 6c0c0e020f Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-10-09 23:14:00 -04:00
Arnab Chakraborty bc6d2f4b5b Fix Android builds failing to compile (#2755)
Update Cargo.toml
2024-10-08 22:25:55 +00:00
Lynx 2f07f0dece update release status show in onboarding to beta 2024-10-07 16:19:14 -07:00
Lynx 4cfa0e781e Add no telemetry option and improve analytics code clarity (#2740)
* Refactor analytics configuration to use `configureAnalyticsProperties` instead of `initPlausible` for improved clarity

* format & add comment explaining analytics ping code
if any people reviewing source for their own verification of its purpose, this should make it much clearer what this does

* refactor Setting to use named function so its references can be source-peeked

* add basic support for 'none' telemetry option
changing the option in the Select dropdown breaks things right now, gotta figure out why

* fix usePlausibleEvent sending old telemetry level preference property to submitPlausibleEvent

* Fall back fo 'unknown' instead of '0.1.0' for app version stats

* Better explain the purpose of more things in submitPlausibleEvent

* organize and clean up internationalization file keys

* fix lowercase connect/connecting key names in code

* add no-telemetry option to onboarding

* Only display error report button if telemetry is enabled

* Add explainer to Sentry plugin for Vite

* Fix onboarding selection in both interface and mobile

* Add more explanation and checks to usePlausible to never send data unless allowed

* add support for onLoad to transform data from persisted mutable stores

* update some analytics explainers on mobile

* add telemetry state migration

* add migration for telemetry state from explorer layout key in persisted store

* fix cypress test for onboarding privacy page

* remove some accidentally included console.log statements

* Add localized analytics preference names

* Use localized telemetry preference names in Settings

* use cleaner text wrapping in settings

* Update the telemetry setting title

* fix telemetry typo

* update mobile no-analytics text

* remove telemetry override option

* eslint: disable no-empty-object-type for PlausibleOptions

the reason is commented
2024-10-07 22:00:38 +00:00