Commit graph

2553 commits

Author SHA1 Message Date
Vítor Vasconcellos 9aa1d55574
Fix initPlausible causing Explorer to re-render while Layout is rendering (#1951)
* Fix initPlausible call causing the Explorer component to re-render while Layout is rendering

* Fix useEffect
2024-01-18 05:44:42 +00:00
ameer2468 d4f6175631
update tailwindcss to 3.4 (#1949)
* update tailwindcss to 3.4

* Update pnpm-lock.yaml

* update others
2024-01-17 20:46:14 +00:00
ameer2468 405306535b
[ENG-1547] Fix strange blue line in input (#1950)
remove console logs and fix strange blue line in input
2024-01-17 20:16:35 +00:00
Param Birje fc423e61be
Listed build dependencies according to setup scripts in CONTRIBUTING.md (#1947)
* Listed build dependencies according to setup scripts in CONTRIBUTING.md

* Formatting + typos

* Revert to old list format + improve sub-sub items

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-01-17 17:47:26 +00:00
ameer2468 ed053da052
[ENG-1542] Drag support for search filters (#1948)
* drag support for search filters

* remove more un-used imports

* cleanup

* Update AppliedFilters.tsx

* drag support for search filters

remove more un-used imports

cleanup

Update AppliedFilters.tsx

* update dependancy of horiz scroll so it updates

* fix cursors for accessbility
2024-01-17 12:44:34 +00:00
jake 073b96b29d
[ENG-1546] Delete tag_on_object entries before the tag itself (so tags can be deleted) (#1944)
fix: delete `tag_on_object` entries before the tag itself
2024-01-16 17:58:30 +00:00
Jamie Pine fdf31fc3a8
[ENG-1511] Library Screens (#1903)
* init

* changes

* Now updating statistics once a minute

* More robust statistics updater

* Concurrency is hard

* improvements to stats

* refactor

* adjust setting back/forward padding so it matches top bar

* refactor sidebar

* rename

* setting up screens

* some changes

* Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com>

* yes

* yes2

* refactored explorerItem.ts

* important explorer code shouldn't be thrown away in a util moment

* support for multiple thumbnails in ExplorerItem

* clippy

* move debug

* yes

* label filters

* ts

* comment out unconnected stuff

* added .mid for midi files

---------

Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com>
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2024-01-16 12:15:03 +00:00
nikec 5cebca67bc
[ENG-1545] Remove cover prop from img tag (#1942)
remove cover prop
2024-01-16 11:33:41 +00:00
nikec 3eb938a8d8
[ENG-1544] Add spacedrop light icon (#1941)
add Spacedrop_Light.png
2024-01-16 11:29:00 +00:00
ameer2468 df887cd057
[ENG-1537] Search UI improvements (#1940)
* wip

* Improve search ui

* Update index.tsx

* Update Filters.tsx
2024-01-16 09:54:15 +00:00
Brendan Allan b7872421f4
Use transaction in sync ingest (#1939) 2024-01-16 07:33:13 +00:00
Brendan Allan 249c509d4d
Use offset pagination (#1931)
use offset pagination
2024-01-15 06:09:23 +00:00
Julian Braha e8d92c5534
Remove deprecated is_background from JobReport (#1938) 2024-01-15 06:08:23 +00:00
jake 6f531f8d5e
[ENG-1535] Fix MacOS window title showing (#1936)
set the title bar to the non-fullscreen style on first launch
2024-01-12 23:33:11 +00:00
ameer2468 e027bba001
[ENG-1538] hidden files keybind windows fix (#1935)
Update useShortcut.ts
2024-01-12 21:28:51 +00:00
ameer2468 eb225883e6
[ENG-1536] Quick preview fixes: Tooltip, video switching, and media controls flash (#1934)
* Fix controls flashing when switching videos, tooltip, and video switching in quickpreview

* remove state

* props
2024-01-12 13:58:33 +00:00
Oscar Beaumont 9c44dd44e2
Fix QuickPreview video playback (#1932)
* consistent hash for server URL's

* a
2024-01-12 01:48:16 +00:00
ameer2468 7078bc0559
[MOB-50] Locations screen (#1928)
locations screen
2024-01-10 22:28:35 +00:00
ameer2468 09a08a6404
[ENG-1532] Hide window title on macos (#1927)
hide window title on macos
2024-01-10 13:49:22 +00:00
Oscar Beaumont 9fc3b8e635
Solid Iterop v2 (#1925)
* portals all the way

* CI for mobile JS

* whoops

* do install plz

* Solid JSX on mobile

* Cleanup portals + file structure

* wip

* reset explorer changes

* fail

* make it work betterer

* cleanup

* It's not a `useEffect` bug, no way

* Fix `useSubscribeToThemeStore`
2024-01-10 09:40:18 +00:00
Brendan Allan 4962b1160b
[ENG-1488] Cloud sync message compression (#1922)
* CRDTOperationWithoutInstance

* almost there

* fully compress messages

* implement more of sd-cloud-api

* sd-cloud-api-ify

* landing -_-

* openssl

* clippy

* idk

* bruh

* wut

* ahhh right
2024-01-09 10:21:23 +00:00
Brendan Allan b94d5207a9
Add suspense to LayeredFileIcon (#1924)
add suspense to LayeredFileIcon
2024-01-09 08:45:43 +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 59532b1aac
Quick preview: remove border from thumb image (#1923)
remove border
2024-01-08 15:43:49 +00:00
ameer2468 614c02d250
fix keybinds page (#1921) 2024-01-08 11:56:44 +00:00
Oscar Beaumont bef1ebcade
[ENG-1508] Launch Spacedrop (#1893)
* Shit UI

* refactor a bit

* wip

* yeet

* farming the wry but it's stale

* Real-time hover event

* Hook with `Platform` + fix broken window-state plugin

* `DragAndDropDebug`

* Clippy

* revert Tauri v2 stuff

* minor

* probs not gonna work

* undo last commit

* a

* b

* c

* d

* e

* f

* g

* long shot

* 1

* no 7

* da hell

* large bruh moment

* lol

* zzzz

* SSH into CI

* yeet

* Tauri mouse position without new Wry

* go for gold

* Correctly lock `ort` version

* minor fixes

* debounce hover events

* WTF Tauri

* Replace DND hooks with goated versions

* wip frontend stuff

* fix ts

* disable library p2p stuff

* remove Spacedrop dialog + hook up backend

* `useOnDndLeave` working

* Close popover when drag outside

* Allow `openFilePickerDialog` for Spacedrop

* couple of fixes

* empty state

* smh

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2024-01-08 06:42:17 +00:00
Oscar Beaumont 49bdbc4b60
SolidJS Build Infrastructure (#1919)
* backport changes from #1913

* Make ESLint play nice

* eslint fix

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2024-01-08 06:20:20 +00:00
Oscar Beaumont b6ea70b8d0
Hosted Locations - Part 1 (#1861)
* Hosted locations CRD

* Authorise + file upload demo

* Configurable path for testing perms
2024-01-08 06:10:26 +00:00
ameer2468 7dfc6b5216
[MOB-46] New mobile browse screen design (#1918)
* new mobile browse screen design

* ts

* ts + minor dropdown close on click fix

* Nitpick: make sure to use tw defined font sizing

* use Flatlist instead of scrollview

* fix test
2024-01-07 22:15:13 +00:00
Oscar Beaumont f7d135c5be
Improve useZodRouteParams (#1917)
* Better `useZodRouteParams`

* cleanup message
2024-01-05 08:51:08 +00:00
Oscar Beaumont f9853dad85
Remove useExplorerStore (#1916)
* Replace `useExplorerStore` with `useSelector`

* Remove `getExplorerStore()

* Devtools names for all major anonymous components

* referential equality

* Undo mobile changes

* remove debug log

* Properly memoise `RenameTextBox` args

* goodbye log

* Fix a couple of bugs
Thanks @ameer2468 for pointing out!
2024-01-05 08:46:03 +00:00
Oscar Beaumont 8d9e6dbf39
Fix mobile app (#1914)
`import.meta.hot` no worky in React Native
2024-01-02 11:36:49 +00:00
Oscar Beaumont 949707c7f9
Vite upgrades (#1911)
* Upgrade Vite + use SWC React plugin

* Upgrade to type module

* lazy load Sentry

* Lazy load prism

* fix

* Lazy load some of the icons

* fix types

* Fix eslint config

* run lint --fix

* Upgrade Turbo

* Turborepo not happy

* Upgrade Typescript

* Stop complaining Turborepo
2024-01-02 06:26:28 +00:00
Oscar Beaumont 26f610014a
Improve ephemeral walker (#1877)
* `non_indexed::walk` as `impl Stream`

* wip

* this is gooooood

* savepoint

* remove

* Batched stream

* `unsafe_streamed_query`

* nightmare nightmare nightmare nightmare nightmare nightmare

* JS Mutex

* cleanup

* proper error handling

* myCode satisfies Typescript

* Move to npm fork of rspc

* fixes

* rspc more crashy crashy

* Typescript is very disappointed
2024-01-02 06:09:44 +00:00
Oscar Beaumont 57d1e0609f
Multiple HTTP servers (#1905)
* there is literally no shot in the world

* cleanup
2024-01-02 06:05:45 +00:00
Julian Braha d18ab1f56e
Add missing timeouts (#1907) 2024-01-01 23:44:48 +00:00
Brendan Allan 5371e9f961
[ENG-1512] Replace sync operation types with single type (#1900)
* replace multiple op types with crdt_operation

* cleanup
2023-12-21 05:58:03 +00:00
Vítor Vasconcellos b261164ca6
Fix pnpm prep on Linux (#1904)
* Fix pnpm-prep on linux

* update archive-wasm to 1.6.1
2023-12-20 09:12:49 +00:00
Ericson "Fogo" Soares 313671245a
Building dependencies with optimization on dev builds (#1902)
Update Cargo.toml
2023-12-20 02:16:05 +00:00
Ericson "Fogo" Soares 7c90bcb95b
[ENG-1479] AI Prototype (#1845)
* First draft on image labeling

* Fixing execution providers for other OSs

* Better error handling and shutdown

* Working with shallow media processor

* bruh

* Fix warnings

* Now hooked to media processor job

* Link desktop app with libonnxruntime to avoid TLS error during startup

* Be able to change models on runtime
Revert to use labels table instead of tags

* A bug on a model-less inference

* Show AI labels on Inspector
 - Change yolo inference to use half precision
 - Add labels api to core

* Remove LD_PRELOAD

* Fix race condition on model executor shutdown

* Don't load all images in memory moron

* Embeed yolo model in prod build
 - Change yolo model path to new one relative to executable

* Disable volume watcher on linux, it was crashing the app
 - Invalidate labels when they are updated

* Rust fmt

* Minor changes

* Gate onnxruntime linking to the ai-models feature

* Add build script to sd-server to handle onnxruntime linking workaround

* Move AI stuff to its own crate and normalize deps

* Rust fmt

* Don't regenerate labels unless asked to

* Now blazingly fast

* Bad merge

* Fix

* Fix

* Add backend logic to download extra yolo models

* Add models api route
 - Add api call to get available model version
 - Add api call to change the model version

* Improve new model download logic
 - Add frontend to change image labeler model

* Fix new model downloader

* Fix model select width

* invalidate labels count after media_processor generates a new output

* Rename AI crate and first draft on download notifications

* fix types

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2023-12-19 09:28:57 +00:00
Brendan Allan 7aa0452ba3
[ENG-1503] Close search bar when navigating into folder (#1890)
* track search state differently and key location explorer to path

* Update ViewItem.tsx

* remove useless memoisation
2023-12-14 19:30:42 +00:00
Brendan Allan 3cabc9c3a9
Basic actor manager (#1888)
* basic declared actor manager

* put actors in separate file

* clippy

* hopefully clean up some clippy warnings

---------

Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2023-12-13 17:49:22 +00:00
nikec b5aa4970e5
[ENG-1505] fix windows explorer path (#1891)
fix windows explorer path
2023-12-13 17:48:33 +00:00
nikec caf4fc5cde
[ENG-1353] explorer dnd (#1737)
* locations dnd

* fix icon

* reduce navigate timeout

* fix types

* another

* fix drag overlay count

* Update pnpm-lock.yaml

* merge

* ephemeral support and other improvements

* merge

* Tag dnd

* merge

* type

* merge

* remove offset

* update dnd logic to not depend on drag source

* handle allowed types if parent isn't available

* saved searches dnd navigation

* well

* rendering

* Update pnpm-lock.yaml

* types

* remove width

* Temporary solution

* merge

* @dnd-kit/utilities

* Update pnpm-lock.yaml

* explorer path dnd

* remove unused drag hook

* fix dnd on LayeredFileIcon

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2023-12-13 11:59:27 +00:00
Brendan Allan 0db883d0ca
Fix image originals in quick preivew (#1889)
* render original images

* separate original component + error boundary

* types
2023-12-13 10:20:02 +00:00
Utku 97c6c7d8ea
Mobile design changes (#1886)
* bump sdk version

* move drawer

* black & blur is the way

* bottom tab height

* fix tests and cache
2023-12-12 22:14:59 +00:00
Brendan Allan a9da6a0093
[ENG-1495] Pull new instance data when receiving cloud sync operations (#1882)
* add sd-cloud-api

* consume sd-cloud-api & leave instance writing to receiving

* module-ise api crate

* put back logging

* remove 'join cloud library'
2023-12-12 07:47:21 +00:00
Brendan Allan 89a55f2dd2
Better file thumb handling (#1883)
* handle file thumb error and types better

* Update Thumb.tsx
2023-12-11 12:32:38 +00:00
ameer2468 ec0f925f28
[ENG-1497] Save search enter key support, no duplicate queries (#1884)
prevent duplicate queries, submit pressing enter on save search
2023-12-11 12:29:08 +00:00