155 Commits

Author SHA1 Message Date
Arnab Chakraborty
645b412ca3 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
Vítor Vasconcellos
73cb22075f 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
ea92383b78 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
Arnab Chakraborty
960e7c4ef5 Autoformatting 2024-10-14 22:49:46 -04: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
Arnab Chakraborty
264e3f7613 wip 2024-09-27 23:20:10 -04:00
myung03
7d34e88406 completed frontend for devices in settings 2024-09-16 14:06:40 -07:00
Arnab Chakraborty
e8183f15d6 Merge branch 'main' into eng-1828-migration-to-new-cloud-api-system 2024-09-06 08:50:46 -04:00
Madion Konig
7f05ade433 Add "Duplicate current tab" keybind (#2679)
* Implemented duplicating current tab

* prettier fixes

* Disable non-functional "New window" menu shortcut
This was preventing "Duplicate current tab" from firing

* use proper casing in RedirectPath type name

* Revert locale changes from "Implemented duplicating current tab"

This partially reverts commit a822f54569.

There were unrelated changes to locale files that should be scoped to their own PR.

* SImplify new location definition

* Remove accidentally committed change lol

* Use cmd-shift-t for duplicate same tab

* Remove navToSettings shortcut

* remove references to now-missing navToSettings keybind

---------

Co-authored-by: lynx <141365347+iLynxcat@users.noreply.github.com>
2024-08-28 18:11:46 +00:00
Arnab Chakraborty
cbb1e92b9e Working Supertokens Callback 2024-08-21 17:25:39 +03:00
Arnab Chakraborty
81fe5f4ef2 First autoformat of the PR 2024-08-20 20:52:21 +03:00
Arnab Chakraborty
2f6cc17012 Working deep links 2024-08-19 16:55:16 +03:00
Matthew Yung
75d11b96b1 [ENG-1806] Add zoom shortcuts and pinch to quick preview (#2635)
* added pinch + shortcut support for zoom

* fix tailwind styles

* pnpm autoformat
2024-07-24 09:44:25 +00:00
ameer2468
a4e626ba14 [ENG-1830] Change sidebar toggle shortcut (#2625)
* Change sidebar shortcut to cmd/ctrl + s

* tooltip icon
2024-07-22 14:50:14 +00:00
Arnab Chakraborty
135a663e52 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
Vítor Vasconcellos
561462760b 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
Lynx
0688406adc [ENG-293] Tag assign mode (#2462)
* Rename top bar icon *style* to *classlist*

* Update pnpm-lock.yaml

* Add user-facing name for tag assign mode: "Assign tags"

* Refactor path bar to allow tag bar display above

* Oops, use original PATH_BAR_HEIGHT

* rename ExplorerPath to more consistent ExplorerPathBar

* remove debug tag assign mode toggle

* fix straggling old reference to ExplorerPathBar

* rename useShortcuts to useExplorerShortcuts

* add `DEV` to turbo.json env deps

* tag assign mode list display + keyboard toggle

* Update pnpm-lock.yaml after merge

* Use new query style in ExplorerTagBar

* WIP debugging list bug

* Fix to the `<slot />` bug

* Remove awaiting tag assign keypress state variable

* Add tag assign mode localization lines

* Add actual tag assign mode functionality

* Use localization for bulk tag assignment

* i18n: Add proper "file" plurals and nest within tag assignment msgs

* implement tag hotkey assignment

* Use i18n for unknown error in tag assignment

* use type for tag bulk assign keycodes

* remove custom ordering todo

* add awaiting-assign visual state to tag bar tags

* Make Escape cancel tag bar hotkey assignment + add a11y + remove focus state on keypress

* Remove tag assign mutation success from tag bar

* Remove tab index `-1` from tag bar tag

* Update tag bar awaiting hotkey assignment colors

* Fix tag bar styling + sort properly

* Fix some missed `TOP_BAR_ICON_CLASSLIST` references

* improve tag ui & fix location redir

* fix pathbar caret and layout adjustment experiment

* Add better tag bar layout for users with lots of tags

* set padding if tags overflow

---------

Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-06-18 10:52:19 +00:00
Ericson "Fogo" Soares
bdc242a852 [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
Oscar Beaumont
a238760c88 [ENG-1690] Upgrade to Tauri 2.0 (#2433)
* Most of it

* Cleanup menu

* fixes

* Fixed linux compilation, still not working though, as the app panic on start

* Add dialog permissions

* fix search keybind

* Fix linux
∙  - Disable linux-ipc-protocol feature, as that is causing panics due to trying to access some WebKit internal structures outside the main thread

* Update to Ubuntu 22.04, new tauri doesn't support ubuntu 20.04
>  - Add note to download page about deb's distro support

* Remove gen/schemas

* Update linux dependencies in setup.sh

* Fix linux deps again
 - Enable rt-tokio-crypto-rust feature in secret-service so clippy stops complaining

* Clippy + auto fmt

* Fix cache-factory
 - Create a devtools feature for desktop app, which is enabled by default on dev builds

* Fix minor error in patchTauri.mjs

* Fix some envvars that have been renamed on tauri v2

* Dont change the secrets

* Add missing linux dependency

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-05-07 08:36:50 +00:00
Artsiom Voitas
2d78edef4d Added even more i18n translation keys (#2453)
* more translation keys

* added i18n keys for future ObjectKindEnum translation

* more keys

* added more keys

* synced all new translation keys with all languages, translated keys on Belarusian and Russian

* added translation for objectkinds in overview

* added translation function for objectkinds

* added more keys to german locale

* renamed 'asc' and 'desc' keys

* rolled back changes

* added missed key

* there are much more keys, than you can imagine

* fixed misspelling

* removed console.log

* removed function "pluralize", added required plural words keys for each language

* fixed condition, which could've lead to undefined value

* hide filter description for boolean filters
2024-05-04 16:16:49 +00:00
nikec
958692771d [ENG-578] Resizable sidebar (#2425)
* v1

* Update pnpm-lock.yaml

* Update store.ts

* Update index.tsx

* fix animation

* toggle_sidebar

* locales
2024-05-01 14:35:09 +00:00
Artsiom Voitas
dee3ca0524 Added date formatting according to chosen language in the settings (#2414)
* added date formatting according to chosen language

* deleted spaces

* deleted spaces

* fixed typos

* set date formats after

* error handling

---------

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2024-04-30 16:52:20 +00:00
ameer2468
a61a7bee65 Windows mouse resize fix (#2407)
Update useMouseItemResize.ts
2024-04-26 17:36:21 +00:00
ameer2468
b86d3d27cb [ENG-1762] Reverse mouse resize direction (#2395)
Update useMouseItemResize.ts
2024-04-25 17:29:46 +00:00
Arnab Chakraborty
b4037d6537 Open Trash from the application (#2338)
* Open Trash from the application

* Working Trash Sidebar Button

* Small UI fixes

* Update common.json

* Move openTrash to Tauri Command instead of RSPC

* format and remove type assertion

---------

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2024-04-22 19:46:10 +00:00
nikec
13e4ff6107 [ENG-1752] Fix explorer selection reset when closing quick preview via keybind (#2373)
prevent selection reset
2024-04-22 10:25:53 +00:00
ameer2468
f97a761346 [ENG-1745] Mouse wheel resize (#2366)
* Resize layout items with mouse wheel

icon/item size using mouse wheel

Update useMouseItemResize.ts

Update useMouseItemResize.ts

* improve comment

* fb

* Update useMouseItemResize.ts

* Update IconSize.tsx
2024-04-19 23:18:54 +00:00
Brendan Allan
f168b5e45d Better search (#2262)
* Revert "Revert "remove fixed filters" (#2261)"

This reverts commit 5b40cefe37.

* search sources

* only set default filters if no filters

* key saved search page on id and use raw search as searchbar default

* fix crate versions

* put media view filters in a dedicated hook

* remove ts-reset

* add comment about <Inner>

* generics!

* cleanup

* search paths/objects switch (#2278)

* feature flag target switcher

* use useZodParams in saved search route
2024-04-05 15:40:46 +00:00
Vítor Vasconcellos
6bb94e3507 Fix pnpm prep fails to download native-deps on some specific network env (#2275)
* Fix pnpm prep failing to download native-deps on some specific network configurations

* Eslint/Prettier auto-format
2024-04-04 14:19:49 +00:00
ameer2468
12f15fc96f [ENG-1702] Fix space for command palette (#2269)
* Fix space for command palette

* Update index.tsx
2024-04-01 18:30:44 +00:00
Utku
6277c8cb5f Command Palette (#2228)
* bring it back

* move into folder

* fix shortcuts colliding

* tags

* fix key capture problems

* add 2 more actions + locations to cmd

* fix search navigation issue W @nikec

* fix saerch input

* improve scrollbar look and text on lightheme + fix edge view search showing

* useShortcut

* add cmdp to keybinds page

* killer i18n extension for vscode

* some missing keys and localized cmdk

* in lists that can change - it's better to use the id rather than index to avoid extra re-renders

* Update CMDKLocations.tsx

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-03-26 13:05:46 +00:00
Vítor Vasconcellos
e5b57aa0ea New test: Add location (#2222)
* New test: Add location
 - Add script to download some test files to allows tests to have a stable path for creating locations
 - Improve onboarding test
 - Add custom Cypress commands for fastOnboarding and deleteLibrary
 - Add some documentation related to tests to CONTRIBUTING.md
 - Update some deps

* Download small test-data for Cypress CI

* Replace globstar with find to make it compatible with bash 3.x

* Fix react too many re-renders
 - add-location test should now pass successfully

* Make job model task text match less flaky

* Check if we were redirected to onboarding after Library was deleted
 - Check if sidebar entry was created after adding a location
 - Put route regex's into a separate file
 - Make onboarding test ensure that no Library exists before running

* Enable test retries
 - Log cypress default config during test run

* Run tests under webkit
 - Pass CI envvar to tests to ensure correct cypress config

* Attempt fix CI config again

* Remove single use checkUrlIsLibrary function
2024-03-23 21:24:16 +00:00
jake
6e61849536 [ENG-1321] Webview reload keybind change and make MacOS reload explorer menu item functional (#2093)
* feat: cmd+r to quick rescan the current location, and change reload webview keybind

* chore: lockfile update

* fix: provide a location id to quick rescan in keybind event handler

* fix: add cooldown to quick rescan to prevent double-rescans

* refactor: use `explorerStore` instead
2024-03-09 06:11:14 +00:00
ameer2468
f754b315de [ENG-1664] Close quickpreview on ESC (#2171)
Close quickpreview on ESC
2024-03-06 16:47:06 +00:00
Arnab Chakraborty
3bd1622e93 [MOB-23] Mobile Hardware Information for Overview Page (#2106)
* wip for iDevices

* Working HardwareModel Info for iOS

* wip

* Merge 'main' into 'mob-hw-info-overview'

* Half-Working `get_volume()`

* Objective c bridge to talk to FS

* Working objc bridge

The bridge works now, and we can now access the iOS file system using the native objective-c APIs instead for proper values, including on the simulator.

* Isolate `icrate` for `ios` deployments only

* Working Stats for Android

* Clean Up + `pnpm format`

* Fix to FSInfoResult Type

Due to the RNFS fork change, I had to change the types to make it so it doesn't fail building and CI.

* iOS Device Name Fix
2024-03-06 06:46:22 +00:00
nikec
a87d53e309 [ENG-1641] Use 'delItem' shortcut (#2138)
replace del items shortcut hooks
2024-02-28 15:36:07 +00:00
nikec
399b8264f4 [ENG-1639] Copy paste improvements (#2129)
improvements
2024-02-27 15:30:04 +00:00
ameer2468
19b224370e [ENG-1615] bg intro video fixed (#2104)
* video intro bg

* test hsl

* test video bg

* run tests

* comment

* mob intro

* git glitch

* git

* webm type
2024-02-19 20:45:29 +00:00
nikec
1fd35d0a81 [ENG-1609] Shortcuts refactor (#2092)
small refactor
2024-02-14 15:08:59 +00:00
nikec
a18d60aa27 [ENG-1602] Prevent default keybind events (#2085)
* prevent default events

* disable for dev
2024-02-13 17:06:12 +00:00
nikec
63a60f363e [ENG-1604] Change key matcher to use real OS (#2087)
useOperatingSystem(true)
2024-02-13 12:44:33 +00:00
Utku
da2841b37a More translations (#2051)
* translations

* more translation keys

* all the translations
2024-02-07 13:47:55 +00:00
Brendan Allan
74d97d4957 [ENG-1592] Correctly assign tab titles on desktop (#2030)
* correctly set tab titles

* use selectedTabIndex

* empty tabId

* prettier
2024-02-01 15:40:38 +00:00
ameer2468
6fe2637ae7 [ENG-1582 + ENG-1586] Add tab keybinds to shortcut + object.hasOwn bug fix (#2022)
* add tabs shortcuts to keybind page + fix object.hasOwn

* Update useShortcut.ts
2024-01-30 14:22:39 +00:00
nikec
1dfb133c23 [ENG-1568] useShortcut cleanup (#1987)
* useShortcut

* use true os
2024-01-24 14:26:41 +00:00
ameer2468
e027bba001 [ENG-1538] hidden files keybind windows fix (#1935)
Update useShortcut.ts
2024-01-12 21:28:51 +00:00
Oscar Beaumont
f7cd96732f @sd/client SolidJS support - Part 1 (#1920)
* `createSolid` + `createPersistedMutable`

* Move all Valtio stores to SolidJS

* Remove Valtio from `@sd/client`

* Missed auth store

* wip

* `useSolidStore` allow mutable setting

* Restructure `@sd/client` a bit

* Add `WithSolid` + custom `useObserver`

* Parse props both ways

* Universal Context

* Solid to React context working

* Working universal context

* context inheritance

* whoops

* Make it clearer how the demo works

* wip: `useUniversalQuery`
2024-01-09 08:05:01 +00:00
Utku
a94832c1ee [ENG-1502] I18n (#1897)
* you know, you could just work on first try

* fix extension

* configure plugin and fix few translation issues

* more

* more keys

* and more

* more keys and sort

* commit msg

* we like keys here

* end my suffering

* jk i just love keys

* key fix

* add turkish

* add german

* Entendido

* Demnächst

* Mettre une étoile sur GitHub

* 成功

* pnpm-lock

* vite plugin

* remove i18next backends

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2024-01-08 20:26:46 +00:00
ameer2468
614c02d250 fix keybinds page (#1921) 2024-01-08 11:56:44 +00:00