Commit Graph

778 Commits

Author SHA1 Message Date
Arnab Chakraborty
1516c9780a Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-07-31 15:21:26 +03:00
Arnab Chakraborty
3bbbf779fe Update to vite ^5.2.0 (#2645)
Fixes weird binary issue with esbuild versions clashing across deps.
2024-07-30 16:39:31 +00:00
Arnab Chakraborty
c36b6d2571 Actually fetch data from rspc 2024-07-30 16:32:44 +03:00
Arnab Chakraborty
e2cc62ece3 Update SDCoreModule.kt 2024-07-28 19:48:06 +00:00
Vítor Vasconcellos
72677dc48d Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-07-28 16:30:25 -03:00
Vítor Vasconcellos
1813bef30c Fix inconsistencies and update project's gitignore (#2642)
* Improve gitignore

* Update pnpm
2024-07-28 11:25:35 +00:00
Lynx
0ef6d9a93a Bump version to 0.4.1 (#2639) 2024-07-26 21:28:21 +00:00
Arnab Chakraborty
6c0c810d6a Add Supertoken login page 2024-07-25 00:17:33 +03:00
ameer2468
0a179fe825 [MOB-115] Cloud sync UX flow (#2636)
* Improved cloud sync UX flow

* fix formatting

* improved UX flow with clearer descriptions of modals

* show cloud modal after 1s

* run formatting
2024-07-24 11:07:02 +00:00
Arnab Chakraborty
039d836569 Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-07-23 14:04:43 +03:00
Arnab Chakraborty
0db7b02d3b Change service subdomain url from app to api 2024-07-23 13:41:30 +03:00
Arnab Chakraborty
1dfe85292f Remove kotlin code for Android Name
We're going for a different solution.
2024-07-23 12:51:32 +03:00
Arnab Chakraborty
803dca1efa Tracing error for mobile core 2024-07-23 12:51:13 +03:00
ameer2468
d5cfe1622f [MOB-114] Improve Media View thumbnails and coming soon alerts (#2626)
* improve thumbs of media view, coming soon state for settings routes, and debug bg color change

* alert for lock in sidebar dropdown

* formatting

* Move Coming Soon Alert to it's own component

So, it makes life easier if we need to change wording later.

* autoformat

---------

Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
2024-07-22 17:53:30 +00:00
Arnab Chakraborty
4a85fb9596 Alpha 0.4.0 (#2618)
0.4.0
2024-07-19 22:27:55 +00:00
Arnab Chakraborty
5a0a08c6ba Fix specific keybinds (#2616)
* Fix actual event emits

* Hide file menu

* Add duplicate

* comment out menu shortcuts until emission of events are handled

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-07-19 15:08:07 +00:00
Arnab Chakraborty
822ed44ce4 Start of fixing Android Device Naming in node 2024-07-19 16:44:40 +03:00
ameer2468
0cd70137a6 [MOB-87] Improve toasts (#2610)
* improve toasts

* formatting

* restore back regular visibility time

* increase toast time & handle edge case
2024-07-17 13:42:07 +00:00
ameer2468
636c6faa25 [MOB-113] Job manager layout fix & code cleanups (#2608)
* Fix job manager text alignment, await permissions request, and fix delete button library settings

* run auto-format

* ts
2024-07-16 13:24:36 +00:00
ameer2468
f5f468360a [MOB-112] Media view (#2606)
* media view wip

* update search filters to include image and video only

* os based sizing

* search support media view correctly & fix UI width of drawer locations

* Merge remote-tracking branch 'origin' into mob-112-media-view

* Fix explorer re-rendering and improve file opening performance by using libraryClient for queries and mutation

* cleanup

* use memory-disk cache policy for better performance

* remove commented out code

* formatting

* Mobile media view

update search filters to include image and video only

os based sizing

Disable Vite `clearScreen` (#2594)

Change Vite config to disable clearScreen

Use default props for Top Bar icons (#2593)

* Refactor top bar items to use default props

* oops! revert top bar icon size to 18px

Fix misspelled "vacuum" (#2595)

[MOB-110] Fix for Android Permissions (#2592)

* Fix for Android Permissions

Now actually requests the permissions if they aren't granted.

* Remove `console.log``

* Request multiple permissions sequentially

* Better UX

* Add Note for `Number()` patch

* Remove `console.log()`

Revamp `.gitattributes` for statistics and better PR diffs (#2596)

* Revamp .gitattributes for statistics and better PR diffs

* Mark migration_lock as binary

search support media view correctly & fix UI width of drawer locations

Merge remote-tracking branch 'origin' into mob-112-media-view

Fix explorer re-rendering and improve file opening performance by using libraryClient for queries and mutation

cleanup

use memory-disk cache policy for better performance

remove commented out code

formatting
2024-07-15 21:37:07 +00:00
Arnab Chakraborty
e98687e82c Fix Intl namespace not existing on mobile (#2600)
* Adds `intl` namespace to mobile

* Fix ordering

* Update pnpm-lock.yaml

* Fix format

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-07-10 23:36:49 +00:00
Vítor Vasconcellos
90d9b17d1f [ENG-1821] Fix build failing due to new schema validation in @tauri-apps/cli (#2599)
Fix build failing due to tauri schema check
 - Downgrade @tauri-apps/cli to 2.0.0-beta.20
2024-07-10 21:15:43 +00:00
Arnab Chakraborty
f3e1a47f96 [MOB-110] Fix for Android Permissions (#2592)
* Fix for Android Permissions

Now actually requests the permissions if they aren't granted.

* Remove `console.log``

* Request multiple permissions sequentially

* Better UX

* Add Note for `Number()` patch

* Remove `console.log()`
2024-07-09 23:43:36 +00:00
Ericson "Fogo" Soares
71d6eabdb6 [ENG-1813] Introduce caching for Kind Statistics (#2585)
* Backend done

* Forgot new migration

* track subscription in file kind stats

* Real time updates on both graphs at overview

---------

Co-authored-by: myung03 <matthewyungisworking@gmail.com>
2024-07-07 05:58:00 +00:00
Vítor Vasconcellos
5f566292c2 [ENG-1815] Fix server auth when assets feature is enabled (#2584)
Fix server auth when assets feature is enabled
2024-07-05 11:12:06 +00:00
ameer2468
b55224682c [MOB-111] Open file on tap not inspector (#2583)
* Open file instead of inspector on tap

* Update Explorer.tsx

* cleanup

* Open file instead of inspector on tap

Update Explorer.tsx

Fix autoformat CI & format codebase (#2581)

* Update pnpm version

* Fix autoformat

* Improve autoformat msg

* Attempt to fix autoformat 2

* Fix autoformat

* Ignore deleted files in auto-format

* Fix diff filter

* Autoformat whole codebase

* Improve error message for autoformat CI

* Test autoformat CI

* Revert "Test autoformat CI"

This reverts commit 0bf2f46d1a.

cleanup

* formatting

* missed
2024-07-04 19:14:34 +00:00
Vítor Vasconcellos
8a9d690aab Fix autoformat CI & format codebase (#2581)
* Update pnpm version

* Fix autoformat

* Improve autoformat msg

* Attempt to fix autoformat 2

* Fix autoformat

* Ignore deleted files in auto-format

* Fix diff filter

* Autoformat whole codebase

* Improve error message for autoformat CI

* Test autoformat CI

* Revert "Test autoformat CI"

This reverts commit 0bf2f46d1a.
2024-07-04 08:57:43 +00:00
ameer2468
c246e184cd [ENG-1810] Sync Icons & more (#2578)
* wip - need light mode icons

* wip

* icons for sync and cloud sync
2024-07-02 17:35:18 +00:00
Matthew Yung
5a2fec961a [ENG-1794] Overview Rework (#2555)
* StorageBar implementation

* filekindstats reworked into interactive node graph

* ui changes to graph

* light/dark mode changes + ui edits

* missing dependancy in package.json and minor visual improvements

* fixed collision physics

* d3 force package

* fixed nodes going off screen

* removed onNodeDragEnd

* fix central node and add particle effect

* fixed central node and typescript errors

* bar graph/storage bar ui improvements

* changed icons

* totals

* made ui changes

* ui changes

* minor requested ui changes

* fixed spacing for ui

* Remove extraneous newline in core/src/api/libraries.rs

* Fix minor suggestions from code review

* Fix typecheck

* Auto format

* refactor file kind stat card with css grid

* ensure unidentified files never negative

* FIxing some stats

* Counting directories

* fixed error with height of bars

* updated storage bar

* total files update

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
Co-authored-by: James Pine <ijamespine@me.com>
Co-authored-by: Lynx <141365347+iLynxcat@users.noreply.github.com>
Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
Co-authored-by: Lynx <ephemeral.lynx@protonmail.com>
Co-authored-by: Ericson Soares <ericson.ds999@gmail.com>
2024-06-24 20:00:51 +00:00
ameer2468
8fbc160915 [MOB-108] UI adjustments (#2563)
* wip

* wip

* max width on locations in drawer

* remove fade and console log

* lint fix
2024-06-24 15:50:36 +00:00
ameer2468
926f4ee6b5 0.3.2 (#2559) 2024-06-20 12:02:20 +00:00
ameer2468
c8a1bd3407 [ENG-1798] Improve cloud sync ui (#2554)
improve cloud sync ui

cleanup

use better values

lint
2024-06-18 16:15:11 +00:00
Arnab Chakraborty
7c739c6967 [MOB-106] Cloud Sync for Mobile (#2549)
* wip + working backfill

* Finished BackfillWaiting page + initial auth setup

Also, setting up the cloud sync page.

* mobile auth

* Import Cloud Library

Currently, you can import a cloud library, however it seems that the data, such as locations, is not transferring correctly.

* Working Mobile Cloud Sync

Cloud Sync works for Mobile, and the mobile app can sync files from a cloud library, and other clients can access the data from the phone's cloud library.

* Cloud Sync Done

* Formatting

* Fix new library button

* New device type passing to auth

* Improve design of cloud settings and import modal

* ui adjustments and code cleanup

* Update styling if there's only 1 instance

* code cleanup, design tweaks

* empty state & simple indicator animation

* lint

* loading indicator and cleanup

* Fix to Sync Subscription

* Update Cargo.lock

* Async logout for debug

* tweaks

* Update SettingsStack.tsx

* cleanups and cloud desktop design improvements

* more cleanups and ui improvements

* ts

* i18n

* Cloud Sync Docs

* styling

* Delete library-sync.mdx

Moving docs to a separate branch

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-06-18 08:46:29 +00:00
Ericson "Fogo" Soares
c0d736453e [ENG-1775] Scan location using new jobs (#2476)
* First draft on task system usage, still missing job system

* Scan location roughly working, a ton of stuff to fix yet

* Updating some deps due to crashes and bugs

* Exposing non critical errors to frontend

* Getting active job reports from job system

* Using boxed opaque type to avoid a downcast issue with generics

* Task system issues discovered on race conditions

* Enable debug

* Fix job report in the job manager

* Fix race condition on steal tasks

* Fixed race condition on task suspend

* Some fixes on job progress reporting and save

* Fixed many race conditions and a hard deadlock
Also some progress report polishing

* Ignore .ts and .mts video files for now

* Some better logs

* bruh

* Internal deadlocks and excess of communication in the task system
- Also better logs

* Bunch of fixes and optimizations

* WIP at fixing file identifier

* Fixed file identifier job
- still need to work on its progress report frontend

* A bunch of polishing

* Fixed some bugs and did more polishing

* Cleanup

* Bridging old and new job systems

* A ton of fixes

* A bunch of bugs related to shutdown and resume

* Indexer and watcher bugs

* Log normalizing

* Fixing CI

* Change error! to warn! on non critical errors log

* Fix redirect to new location

* Type annotation

* Bogus merge resolution on cargo lock
2024-06-17 21:30:57 +00:00
ameer2468
11ade533e9 [MOB-94] Onboarding haptics (#2552)
Onboarding haptics
2024-06-14 16:42:19 +00:00
Gedeon
37a2a0a41f Fix xdg-open for Trash (#2547)
* fix Trash not opening

* remove unnecessary unwrap

* fix formatting errors
2024-06-11 16:23:06 +00:00
Utku
076771abf5 Fix discord link (#2550)
* Update alpha.tsx

* Fix discord link test

* Fix use correct test assertion

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-06-11 15:38:21 +00:00
Vítor Vasconcellos
c0540b343d Clean up and update rust dependencies (#2544)
* Clean up and update rust dependencies

* Attempt to fix Windows Error
2024-06-10 19:44:00 +00:00
Vítor Vasconcellos
01e346f92a Fix nvidia on linux segfault (#2542)
* Workaround nvidia on linux segfault

* Fixes

* Don't vendor dbus

* Make dbus and opener linux exclusive dependencies

* opener is a generic dependency

* Add dbus as a dependency for deb and setup.sh

* Clippy fixes

* Replace gl and glfw with glutin for querying nvidia card

* Replace glutin with wgpu

* Update icrate to fix 'multiple applicable items in scope'
2024-06-07 19:14:50 +00:00
ameer2468
b8a56e8064 [MOB-105] Rename with extension & add await (#2539)
add await date accessed to run first and rename with extension consideration
2024-06-06 15:02:20 +00:00
Consoli
6b465008a1 Display captured backtrace when available (#2504)
* Display captured backtrace when available

* Helpful log message
2024-06-04 14:22:30 +00:00
ameer2468
7cd852b0d0 [MOB-100] Job manager design improvements (#2531)
* design improvements job manager mob

* centering
2024-05-31 19:42:59 +00:00
Utku
c4740402a5 Alpha 0.3.1 (#2526)
* alpha 0.3.1

* Add missing migration

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-05-31 05:44:00 +00:00
Oscar Beaumont
0ea1333c83 More P2P docs (#2492)
* Remove relay

* restructure p2p

* wip

* cleanup webrtc

* split up P2P docs

* wip

* more wip

* the fork has moved

* finish local network discovery

* Document the relay system

* be less stupid

* a

* remote ip from deploy script

* remove debug from deploy script

* Explain relay setup and usage

* Physical pain

* fix

* error handling for relay setup

* Listeners Relay state + merge it into NLM state

* `node_remote_identity`

* redo libraries hook

* toggle relay active in settings

* Dedicated network settings page

* Stablise P2P debug page

* warning for rspc remote

* Linear links in docs

* fix p2p settings switches

* fix typescript errors on general page

* fix ipv6 listener status

* discovery method in UI

* Remove p2p debug menu on the sidebar

* wip

* lol

* wat

* fix

* another attempt at fixing library hook

* fix

* Remove sync from sidebar

* fix load library code

* I hate this

* Detect connections over the relay

* fix

* fixes

* a

* fix mDNS

* a bunch o fixes

* a bunch of state management fixes

* Metadata sync on connection

* skill issue

* fix markdown

* Clippy cleanup

* Backport #2380

* Update interface/locales/en/common.json

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/local-network-discovery.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/local-network-discovery.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/relay.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/relay.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/relay.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/relay.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/relay.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p_proto.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/overview.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/overview.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/relay.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p_proto.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p_proto.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/transport-layer.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p_proto.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/local-network-discovery.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* Update docs/developers/p2p/sd_p2p_proto.mdx

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>

* a

* Cleaning binario section

* cleanup Docker message

* idk

* Idempotent listeners

* Manual peers working????

* minor fixes

* crazy idea - don't panic in the event loop

* fixes

* debug

* debug

* LAN badge in network settings

* Use `dns_lookup` instead of `tokio::net::lookup_host`

* fix

* bruh sandwich

* proper dialing

* a

* remove logs

* fix

* Small cleanup

* manual peers state on connected device

* a

* Fix manual discovery state + give it a badge

* Clippy improvements

* flip discovery priority

* Add `addrs` to debug query

* connection candidates in debug

* Fix state

* Clippppppppppppy

* Manual discovery badge

* Flesh out ping example

* Usage guide

* `sd_p2p_proto` examples

* More discovery docs

* More docs work

* docs docs docs and more docs

* PONG

* rename

---------

Co-authored-by: Matthew Yung <117509016+myung03@users.noreply.github.com>
2024-05-30 21:48:12 +08:00
Vítor Vasconcellos
e96e380a89 Disable AppNap for macOS and fix app version in deb (#2517)
* Remove version field from tauri conf
 - Let tauri default to the version from Cargo.toml

* Allow app to toggle app nap
2024-05-29 04:26:33 +00:00
Utku
5dc1c36817 alpha 0.3.0 (#2515)
hello world
2024-05-28 21:35:14 +00:00
ameer2468
1f9b0e2331 [MOB-99] Job remove & more (#2514)
* Clear job and improve job manager design

* pullToRefresh, search adjustment, and more

* ts

* use rspc instead of query client

* Update JobManagerModal.tsx
2024-05-28 21:02:50 +00:00
ameer2468
532ff4b62e [MOB-98] Rename, delete, & more (#2506)
* rename and delete support, browse design improvement

* update toast styling

* Update RenameModal.tsx

* fix test

* fix warning message on initial render, add-tag test, and remove solid js references

* ci

* Add feedback toast for location delete and tag delete
2024-05-27 15:44:15 +00:00
ameer2468
9a7c79a99a [MOB-97] Fade select tags and empty location state (#2496)
* fade select tags and empty location state

* smaller tags

* smaller tags  in filters and add tags modal
2024-05-20 22:29:56 +00:00
ameer2468
3b6bdbe68c [MOB-95] Tags support & more (#2494)
* tags support wip

* Mob: tags in explorer, ui adjustments, add filter based on search click and more

* Fix tags scroll on filters

* Set heights so UI updates correctly

* Update Tags.tsx

* remove console logs

* remove console logs

* Update Locations.tsx

* type

* Update locations.rs

* make tags abit smaller

* list view visual improvements

* Remove plus
2024-05-17 15:55:29 +00:00