Commit Graph

393 Commits

Author SHA1 Message Date
Brendan Allan
0ecd34db3d Centralise auth state into context (#1434)
* centralise auth state into context

* remove accounts from feature flags

* move from context to store in @sd/client
2023-10-08 17:04:23 +00:00
jake
f1112b737e [ENG-1176] Append (x) to the end of files instead of overwriting (#1425)
* append ` (x)` to files when duplicating, renaming or pasting instead of overwriting

* cleanup commented code

* fix renames

* rustfmt

* remove unused item

* Small tech debts and some nitpicks

* Bug with appending number on duplicates

* A bug on my new impl

---------

Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com>
2023-10-07 11:59:58 +00:00
Brendan Allan
a3da0460ce Move tooltip provider to app root instead of component root (#1439)
move tooltip provider to app root instead of component root
2023-10-07 03:46:44 +00:00
Ericson "Fogo" Soares
701b32d9c6 [ENG-888] Media view should show current folder downward (#1437)
* Done but ugly

* layout

* Now with a select

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2023-10-06 20:46:26 +00:00
Vítor Vasconcellos
1ea3814eec [ENG-939, ENG-1173] PDF Thumbnails (#1242)
* sd-pdf

* Process PDF blocking render inside a spawn_blocking
 - Load a single global Pdfium instance

* Migrate pdf thumb logic to sd-images
 - Replace block_in_place with spawn_blocking
 - Only load LibHeif once
 - Allow thumbnailer (both indexed and non-indexed locations) to process documents
 - Disable loading pdf viewer in Inspection in favour of loading it's thumbnail

* Try to load pdfium lib from absolute path

* Revert removed import due to rebase

* Small nitpick and some warnings

---------

Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com>
2023-10-06 20:41:22 +00:00
ameer2468
669b8aa993 Fix accordion (#1438)
fix accordion
2023-10-06 13:04:34 +00:00
ameer2468
41639ebf90 [ENG-1189] Overview shortcut + Settings shortcut adjusted (#1435)
Added overview route shortcut + adjusted settings shortcut
2023-10-05 14:16:56 +00:00
Ericson "Fogo" Soares
4d6b43a858 [ENG-1124 | ENG-1154] Ephemeral location bug: Opening files | Path should always be in present in Inspector (#1401)
* New functions to open ephemeral files

* Review items for ephemeral files

* Open and OpenWith context menu for ephemeral paths

* Some warnings

* Fixing inspector

* Fixing windows

* Format

* Messy rebase

* Fix macos

* Cargo fmt

* Removing devtools as it can be opened with keybind

* Fix macos

* Separating ext for ephemeral files on inspector

* Fixing bad rebase

* Removing rename button from quickpreview for ephemeral files

* Quick Preview for ephemeral files

* Requested changes
2023-10-05 07:21:37 +00:00
ameer2468
552c071c95 [ENG-989] Switch explorer views bug (#1433)
* Fix explorer switching bug

* tweaks
2023-10-04 20:31:12 +00:00
nikec
edcac6b337 [ENG-1183] fix quick preview background overlay (#1432)
fix
2023-10-04 10:48:59 +00:00
nikec
a2a0dc9f7e [ENG-1182] Switch quick preview animation from react-spring to tailwindcss-animate (#1431)
* animate

* radix-state-open
2023-10-04 09:40:40 +00:00
nikec
154dd441e7 [ENG-1178] Add optional auth step to onboarding & update profile section (#1426)
* Add login step to onboarding

* only show auth loader on first fetch

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2023-10-04 09:05:50 +00:00
nikec
227da4543e [ENG-1179] Add hidden search filter to paths query (#1427)
add hidden filter
2023-10-03 19:56:50 +00:00
nikec
382782b4cf [ENG-1180] Change default overscan on grid list (#1428)
Change default overscan on grid list
2023-10-03 19:53:34 +00:00
ameer2468
dc73d2367d [ENG-872, ENG-1177] - Windows enter key opens & Open context menu correction (#1424)
* Enter key opens on windows, cmd and o on mac. Open in context menu now opens in SD and not Finder.

* Remove access time func as doubleClick already does it
2023-10-03 16:35:45 +00:00
Oscar Beaumont
52a4a16423 [ENG-1141] Show running jobs first (#1400)
* Fix Rust panics when opening HEIC in `QuickPreview`

* Sort it

* improve sorting
2023-10-03 16:26:59 +00:00
Oscar Beaumont
5dc86f0805 [ENG-1075] Light mode for QuickPreview (#1403)
* fix line number background thing

* Prism dark mode + move to one dark/one light

* subtle

---------

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2023-10-03 16:18:16 +00:00
ameer2468
43d9ec4298 [ENG-871] - Rename shortcut update (#1422)
* f2 to rename

* Update RenameTextBox.tsx

* Keybindings some refactoring to accommodate our needs

* Update keybindings.tsx

* correct direction for nav

* Update keybindings.tsx

* ts documentation + key -> keys

* Update keybindings.tsx
2023-10-03 14:08:01 +00:00
ameer2468
bd7788f816 [ENG-1172] - Update navigation keys (#1419)
Update navigation keys
2023-10-02 14:10:47 +00:00
ameer2468
1de6213b7d [ENG-1171] - Clicking on a tag within inspector navigates to that tag route (#1418)
* Clicking on a tag within inspector navigates to that tag route

* Update index.tsx
2023-10-02 14:05:57 +00:00
ameer2468
9bdc4ac254 [ENG-1170] - Prevent sidebar scrolling with keyboard (#1417)
* Prevent sidebar scrolling with keyboard

* remove ref import
2023-10-02 14:04:20 +00:00
Brendan Allan
d0863705aa Add pnpm tauri root command (#1411)
add pnpm tauri root command
2023-10-02 14:03:45 +00:00
Oscar Beaumont
6142d44965 [ENG-1147] Fix overview stats (#1416)
* Fix it

* Fix slow accounts panel
2023-10-02 10:32:26 +00:00
nikec
45d9a94b06 [ENG-1158] List view range initialization (#1410)
* range initialization

* auto it is
2023-09-30 07:49:54 +00:00
nikec
ab16aa4a81 [ENG-1164] Fix Explorer Path Render (#1408)
fix render
2023-09-29 15:24:25 +00:00
ameer2468
257f364c53 [ENG-1149] Tags unassignment UI update and fixes (#1406)
* Multiple minor fixes and tweaks

* close context menu if no items are selected

* fix

* type

* Update keybindings.tsx

* useMatch and rspc to invalidate

* fix selectable

---------

Co-authored-by: nikec <nikec.job@gmail.com>
2023-09-29 14:48:35 +00:00
nikec
ca8c79d6c1 [ENG-1118] Force close context menu when no items are selected (#1407)
* close context menu if no items are selected

* fix

* Update index.tsx

* ups

* one more
2023-09-29 13:56:29 +00:00
Oscar Beaumont
2d82785a22 [ENG-1117] Remove Tauri drag regions on non-macOS platforms (#1402)
That'll do it
2023-09-29 05:57:39 +00:00
Oscar Beaumont
38872df51a Improve QuickPreview (#1350)
* Handle large text files

* wip

* nit

* Fix syntax highlighting

* Requiring an API call for my dev builds, no shot

* backend for line counting + wip frontend

* 600 lines is too much for this file, ngl

* wip: `LimitedByLinesBody` & some more restructuring

* Virtualised list for QuickPreview

* yeet bad ideas

* general cleanup + hack to fix broken toml

* fix

---------

Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com>
2023-09-29 04:58:29 +00:00
pr
cb92b6477f settings pages: consistent padding on every side (#1399)
* settings pages: consistent padding on every side

* reduce padding to 12
2023-09-28 22:17:54 +00:00
nikec
a67fd9623d [ENG-1131] File path hidden filter (#1398)
hidden filter
2023-09-28 18:52:35 +00:00
Brendan Allan
11f0e84d38 Desktop + Web auth flow (#1378)
* initial login session route

* auth works!

* auth on web is dummy easy

* load api url from envs

* SpacedriveAccount + oauth

* use verification url

* heif

* better env handling

* error handling

* handle config write error

* add logout config write error
2023-09-28 16:55:46 +00:00
nikec
81e6c5b18e [ENG-1157] fix useKeybind (#1393)
* remove

* fix
2023-09-28 05:37:08 +00:00
ameer2468
b1f86fc279 [ENG-1145] Keep more info open if it is (#1392)
* Keep more info open if it is

* toggle off when closing inspector

* Update TopBarOptions.tsx

* tweak code

* Update Accordion.tsx

---------

Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2023-09-27 17:15:57 +00:00
nikec
7b752ceab9 [ENG-1156] Grid list remove left/right key selection limit (#1391)
remove block
2023-09-27 15:49:44 +00:00
ameer2468
fab88de8bf [ENG-1142] Path bar shortcut (#1377)
* Path bar shortcut

* Add option to popover and tweak UI

* increase size of folder icon + frame thumbs

* view adjustments

* truncate

---------

Co-authored-by: nikec <nikec.job@gmail.com>
2023-09-27 14:49:01 +00:00
ameer2468
9f2ab6778c [ENG-1148] Fix inputs (#1389)
Fix inputs
2023-09-27 12:43:40 +00:00
ameer2468
fa1281de27 [ENG-1112] Explorer Path Component (#1375)
* Explorer Path component

Update ExplorerPath.tsx

Update ExplorerPath.tsx

* Tweaks & bug fix

* Selected item no hover

* Update index.tsx

* fix keys

* ts
2023-09-24 23:33:56 +00:00
nikec
b7c6199ab7 [ENG-1114] List view improvements (#1371)
* almost there

* so close

* fix drag scroll

* rerender

* Update index.tsx

* fix y scroll

* scroll

* header border

* remove react-scroll-sync
2023-09-24 12:16:38 +00:00
ameer2468
a2e9f8ffee [ENG-1133] Tooltip overflow fix - take up y-axis space (#1374)
Tooltip overflow fix, take up y-axis space
2023-09-23 14:38:16 +00:00
Brendan Allan
3b8ac34d34 [ENG-1132] Disable pagination for ordering by file path size (#1365)
* disable pagination for order by size

* disable 'take' when paginating on size
2023-09-22 10:12:30 +00:00
Ericson "Fogo" Soares
8765f95e00 [ENG-1135] Locations: Total size query and return to Frontend (#1366)
* Done

* Fix size text to take its space

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2023-09-22 10:11:59 +00:00
ameer2468
5a3a84a1bb Adding location: Error message bypass submit button being disabled (#1367)
Form location error message submit fix
2023-09-21 22:22:21 +00:00
Ericson "Fogo" Soares
5f5cd60dd2 [ENG-1116] Distinct job manager for library (#1363)
Done
2023-09-21 11:10:56 +00:00
ameer2468
789878bb3c [ENG-1125] Mouse navigation support (#1359)
Mouse navigation support
2023-09-19 15:45:52 +00:00
ameer2468
167fb65b4a [ENG-1126] Key matcher hook (#1358)
* key matcher hook

* Update TopBarOptions.tsx
2023-09-19 15:34:35 +00:00
jake
fed667ccd8 [ENG-1097] DMS coordinate display support (#1335)
* offer DD and DMS coordinate displays

* clean up & optimise the conversion functions

* add support for changing between dd/dms (and some other example changeable formats)

* even further cleanup

* auto format

* dedicated clickable component to clean things up

* slim it down by passing platform directly

* make dist/temp settable, use dedicated format store

* use freedom units if locale is `en-US` 🦅

* rename the store and attempt to make it more typesafe

* cleanup mainly

* DD -> "Decimal" in the UI and swap the options as DMS will be the default

* remove useless schema

* only show S decimal on hover for DMS

* show `x` after zoom if it's a valid number
2023-09-19 08:46:14 +00:00
ameer2468
6f6b5c67f1 [ENG-815] Shortcuts page (#1357)
shortcuts page
2023-09-18 20:19:03 +00:00
ameer2468
ce9ccec98d [ENG-1119] - Open folder shortcut + select item with arrow down (#1355)
* Open folder shortcut + select item with arrow down

* tweaks

* symbol tweaks

* Update index.tsx
2023-09-18 14:09:40 +00:00
ameer2468
41493b4655 [ENG-1089] Tooltips visual upgrade and shortcuts (#1351)
* tooltip visual upgrade and shortcuts

This gives tooltips an upgrade, visually + supporting keybinds

* B to V

* Cannot make tooltip do conversion due to dependency cycle

* semantics

* Update style.scss

* useKeyBind to consider upper and lowercase

* Change from strings to array + small visual tweaks

* oops
2023-09-15 13:39:58 +00:00