Commit Graph

454 Commits

Author SHA1 Message Date
Ericson Soares
c8b68735e9 Forgot to call needed function 2024-10-11 23:20:57 -03:00
Arnab Chakraborty
0133173069 Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-10-09 23:14:00 -04:00
Ericson Soares
fef2e92936 Change database to use device id on everything instead of pub_id 2024-10-07 22:38:45 -03:00
Lynx
a3048fbd10 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
Vítor Vasconcellos
8134160671 Merge remote-tracking branch 'origin/main' into eng-1828-migration-to-new-cloud-api-system 2024-10-06 23:36:06 -03:00
Vítor Vasconcellos
7cd0556f15 [ENG-1928] Update to tauri 2.0.1 stable (#2752)
* Update to tauri 2.0.0 stable
 - Update a some othe dependencies
 - Autoformat rust and toml files

* Fix clippy complain

* Update tauri 2.0.1
 - Update rspc
 - Update some frontend files due changes in rspc
 - Update some frontend build dependencies

* Revert babel update

* Fix code typing typing and style + a couple of bugs

* More type fixes
2024-10-05 21:17:30 +00:00
Ericson Soares
bc093a2b43 Update schema 2024-10-01 15:18:28 -03:00
Ericson Soares
60cfafe77e Update schema and deps 2024-10-01 14:46:27 -03:00
Arnab Chakraborty
25c02c431d Fix type errors & add notif logging on mobile 2024-09-30 11:35:59 -04:00
Ericson Soares
069a53596c Update cloud schema 2024-09-28 00:52:27 -03:00
Arnab Chakraborty
264e3f7613 wip 2024-09-27 23:20:10 -04:00
Ericson Soares
7987071795 Some specta renaming on cloud services routes 2024-09-26 22:47:41 -03:00
Arnab Chakraborty
9d52280c08 Working on p2p stuff 2024-09-23 00:02:00 -04:00
Arnab Chakraborty
e581f79e83 Work on getting request_join working
Currently have debug routes on how the flow of joining a sync group works, and there a few bugs internally still giving us issues.
2024-09-22 11:03:44 -04:00
Ericson Soares
9658c5d0f0 Comment old auth stuff on frontend 2024-09-20 00:58:16 -03:00
Arnab Chakraborty
feab71f84a Disabled social logins on mobile 2024-09-15 02:20:09 -04:00
Arnab Chakraborty
a810327846 Working device registration and listing 2024-09-13 09:01:10 -04:00
Arnab Chakraborty
dc19f79408 Device routes & registering of device (mostly)
Still wip though
2024-09-11 00:52:40 -04:00
Arnab Chakraborty
20c157c673 Fix token parsing + start of device registering 2024-09-09 19:23:38 -04:00
Ericson Soares
1f491cc6b2 Relating tables to device 2024-09-06 23:53:35 -03:00
Ericson Soares
832c1fef15 Receiver actor for cloud sync 2024-09-04 01:50:22 -03:00
Arnab Chakraborty
54f76c46b3 Updated core.ts file 2024-08-28 14:45:22 -04:00
Ericson Soares
3cd7f8de6a Make core compile again 2024-08-27 17:01:42 -03:00
Ericson Soares
6ef5e36cf2 Merge branch 'main' of github.com:spacedriveapp/spacedrive into eng-1828-migration-to-new-cloud-api-system 2024-08-20 23:06:12 -03:00
Arnab Chakraborty
f0b2f9c4ec Working Social Login buttons in prod
For google at least.
2024-08-20 20:47:10 +03:00
Arnab Chakraborty
89213ea12b Auth callback route 2024-08-20 12:43:24 +03:00
ameer2468
7dc7ad4e95 [ENG-1866] Overview: fix storage progress device value (#2678)
Fix storage device value
2024-08-19 18:27:06 +00:00
Arnab Chakraborty
2f6cc17012 Working deep links 2024-08-19 16:55:16 +03:00
Arnab Chakraborty
e08a2e8fde Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-08-17 18:40:09 +03:00
Vítor Vasconcellos
ba0ecb6fa2 Fix release workflow (#2668)
* Fix frontend bundle upload
 - Update pnpm

* Revert incorrect removal of fontenf packaging job

* Fix tauri not building updater bundles

* Ensure release action is executed when PRs modify the publish-artifacts action

* Fix unused argument for patchTauri function

* Couple for format fixes

* tauri requires building the app bundle to build the updater
2024-08-17 08:29:32 +00:00
Vítor Vasconcellos
58c986bf99 Format files due to update to prettier and eslint (#2667) 2024-08-17 02:50:56 +00:00
Consoli
7395c2d47b [ENG-1159] Report progress when copying files (#2538)
* Copy ephemeral files by chunks

* Improving buffered writer

* Report progress

* Copy and emit progress as two separated tasks

* Simplify for-if-return with `Iterator::any`

* Docs and use structured tracing

* Simplify code using paths

* wip

* wip

* wip

* wip

* Add report of messages while copying files

* Add info field to job report

* Group paths from OldFileCopierJobStep into a single struct

* Improve progress information

* Remove the need for synchronization

* Error handling for copy

* Clean up frontend

* Make watcher only consider new files

* Fix concurrent renaming of multiple files that have the same name

* Add documentation for file strategist

* Remove editions to ephemeral file copies

* Remove experimental/nightly features from Cargo.toml

* Fix no-case-declarations

* Remove dead comments

* Format code

* Use "Duplicate" instead of "Copy" in the frontend messages

* Remove inline always to make clippy happy

* icons for deleter and copier

* Fix JobManager for copy jobs
 - Fix some types definitions

* Fix Job icon choosing logic
 - Fix Copier job showing two progress bars

* Log which files are not formatted in the Type and style check CI

* fmt

* Forgot an import

* autoformat

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-08-17 02:00:59 +00:00
Arnab Chakraborty
0384f237b1 Update core.ts 2024-08-17 00:41:30 +03:00
Vítor Vasconcellos
01d61631d7 Merge remote-tracking branch 'origin/main' into eng-1828-migration-to-new-cloud-api-system 2024-08-15 18:16:13 -03:00
Vítor Vasconcellos
6672c6cffc Remove unused code and update rust deps (#2662)
* Remove deps-generator app
 - It is broken for quite a while and not being used

* Remove unused code and unused deps

* auto format

* Restore incorrectly removed files
 - Remove aws deps and test code using it

* Replace winapi-util with windows-rs
 - Adjust some deps versions

* Autoformat

* Update rand, remove unused dep

* Fix image crate due to changes in pdf-renderer
 - Dont use default features in reqwest
 - Use native-tls tauri

* Remove incorrect notice about blake3
2024-08-15 17:09:03 +00:00
Arnab Chakraborty
b14e4fce3a Deep linking wip
Pop up shows but doesn't pull focus on the app and actually doesn't receive events
2024-08-15 00:46:27 +03:00
Ericson Soares
1aa459ad23 Revamping crypto subcrate 2024-08-14 16:51:16 -03:00
Arnab Chakraborty
139ba6e1a4 [ENG-1854] Migrate to Tauri v2 Release Candidate (#2654)
* Migrate to Tauri v2 Release Canidate

* Formatting

* Update pnpm

* Update all tauri deps (js and rust) to Release Candidate 2
 - A lot of misc fixes due to changes in the new versions of tauri, rspc and specta

* Recreate pnpm-lock

* Fix pnpm-lock

* Formatting

* Use 10 chars SHA for git deps
 - Update a couple of rust dependencies
 - Add taplo for toml auto formatting
 - Adjust some formatting configurations
 - Updated prettier and its plugins

* Fix formatter settings

* Minor improvements to Cargo.toml format

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-08-14 18:22:46 +00:00
Arnab Chakraborty
7b66730ba8 More merge fixes 2024-08-13 14:08:13 +03:00
Arnab Chakraborty
019b157d9f Merge branch 'rocky/tauri-v2-rc' into eng-1828-migration-to-new-cloud-api-system 2024-08-13 13:51:52 +03:00
Arnab Chakraborty
1db15a5f50 Remove keyring crate
We found a different solution, as the keyring crate isn't supported on Android
2024-08-12 20:26:11 +03:00
Vítor Vasconcellos
a9fc60095d Update all tauri deps (js and rust) to Release Candidate 2
- A lot of misc fixes due to changes in the new versions of tauri, rspc and specta
2024-08-10 00:11:52 -03:00
Arnab Chakraborty
381a9e4577 Mocked Device data for UI 2024-08-08 01:46:08 +03:00
Arnab Chakraborty
46a400880b Migrate all cloud routes to the new API system
All cloud routes are now migrated to the new system in the backend.

The old routes are still available, as the frontend has not been modified to use the new ones yet.
2024-08-07 17:55:22 +03:00
Ericson Soares
8739a7466a Some new abstractions and tweaks to develop cloud services calls 2024-08-07 03:21:01 -03:00
Arnab Chakraborty
25ee5ca362 Working example for new API system
A working example to fetch data from the new cloud services system.
2024-08-06 12:47:53 +03:00
Arnab Chakraborty
4130f792f6 wip: Getting User Data from backend 2024-07-30 11:00:59 +03:00
Arnab Chakraborty
a1e7df67a8 wip: Use Keychain instead of Localhost for Storage
We store auth creds in the actual keychain of the device and not in localstorage.

Currently works, but will fail if we move completely away from localStorage.
2024-07-26 23:58:44 +03:00
Arnab Chakraborty
3db7ae7712 Change service subdomain url from app to api 2024-07-23 13:41:30 +03:00
Ericson "Fogo" Soares
8147f78a55 [ENG-1793] Introduce error handling for sd-core-sync crate (#2556)
* Error handling for sd-core-sync crate
Also a bunch of tweaks and fixes

* Update core.ts

* Auto format

* Comment out background_processing_percentage on frontend too
 - Update rust version in contributing

* Trying to avoid data loss on actor stop

* Stronger linter on sync generator

* Stronger lint on sync subcrate

* Clean back tasks.json file

* TS typechecking

* Autoformat

* Add more verbose errors for Cloud REST API

* Removing some comments

Copilot is fun sometimes lol

* Properly stopping actors

* Fix ingest stop

* Racing on stop for actors

* Error conversion from merge with main

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
2024-07-16 22:30:35 +00:00