Commit Graph

99 Commits

Author SHA1 Message Date
Utku Bakir
b3a586afff Rust useless conversion 2022-09-07 11:56:51 +03:00
Brendan Allan
459a44b7ac utilise include instead of with for type safety 2022-09-07 04:09:57 +08:00
Brendan Allan
3775c33d97 rename getAll to list 2022-09-07 00:21:41 +08:00
Brendan Allan
eacb035283 fix everything after rebase 2022-09-06 22:34:39 +08:00
Oscar Beaumont
4427065658 Upgraded rspc with libraries + upgrade PCR 0.6.0 2022-09-06 22:08:19 +08:00
Jamie Pine
05bcb6e1b0 Assignable Tags (#370)
* Tag queries + Identifier bug fix

- added empty pages for docs
- added non-functional "New Library" button to sidebar
- to accomplish above, moved dialog logic to component folder
- fixed Identifier bug where location id was not considered in the orphan files query, meaning it would attempt to identify many non-existent paths and fail to create the legitimate ones

* (fix) maintain file item aspect ratio in grid view
(fix) get tag query + get all tags

* codegen

* resurrected context menu

* fix window flash

* remove location based thumb sorting + update react on landing

* add is_archived to location

* improved context menu

* assign tag + refactor explorer store

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>

* assign/unassign tags from context menu

* fix lint

* keep context menu open on tag change

* fix brendan feedback + merge main

* fix type

* codegen

* style changes

* revert windows size and xcode proj

* remove outdated doc

* coming sooooooon

* updated release notes

* release notes

* dashes > dots

* clean up docs

* more docs!

* restore entitlements

* remove unused util

* regenerated migrations post merge
- some additional error handling added to migration runner, needs more work!

* refactor explorer to support tags

* fix error and revert explorer bg color

* put it in a box they said

* revert location id store removal

* upgrade hero icons + style tweaks

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
2022-09-04 13:00:24 -07:00
Ericson "Fogo" Soares
25c111a8bf Introducing Indexer rules (#363)
* Introducing indexer rules for the indexer job
* Solving a minor race condition at `Worker::spawn`
* Many refactors at database accesses with prisma
* Documenting some features of indexer rules

* Updating to new prisma rev

* Updating photo

* Some documentation tweaks

* fix note editing

* Implementing some requested changes
* Fixing unit tests on walk function
* Using rsps::Error::with_cause instead of new

* Introducing a compoung unique key between `node_id` and `local_path` at `locations` table

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-09-01 16:38:26 -07:00
Oscar Beaumont
cc6e921ca0 new invalidate_query + add IOS sim to setup script 2022-08-31 18:42:06 +08:00
Oscar Beaumont
fdfb2f00d5 remove phantom file + update rspc bindings
A PR must have been merged incorrect introducing this file which is not used.
2022-08-30 10:50:08 +08:00
Oscar Beaumont
c7441d1d64 Rustify mobile (#361)
* Refactor navigation flow & types

* Remove drawer screen wrapper

* Remove DrawerItem + cleanup

* Switch to JS Stack Nav & header animations

* [WIP] Spacedrive core on Android & IOS

* Update Podfile and cleanup Contributing guide.

* Remove @sd/core from mobile

* File Modal

* Prettify File Modal & Add date-fns

* IOS subscriptions

* Update package versions

* Custom header for stack screens

* android subscriptions

* Animate Drawer button & template for Search screen

* Search header

* Fix Search icon being weird

* Merge branch 'main' into rustify-mobile

* fix rspc dep + setup script for mobile

* Less margin on header

* Move shared assets & drawer logo for mobile

* support for IOS simulator

* add type safe rspc hooks to mobile

* Cleanup PR & Update packages

* Updated bindings from main

* Update lefthook.yml

* Remove `tag` folder from core
The `tag` folder came back from the dead. Maybe it got confused in merge conflict?

* update pnpm lockfile + fix tsc errors

* fix asset import

Co-authored-by: Utku Bakir <74243531+utkubakir@users.noreply.github.com>
2022-08-29 04:59:09 -07:00
Brendan Allan
d919dff99e update to latest prisma-client-rust 2022-08-19 08:58:27 +08:00
Jamie Pine
8e96f640b1 Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-08-08 23:10:17 -07:00
Jamie Pine
9583efb6d9 (fix) add new team members 2022-08-06 20:14:13 -07:00
Oscar Beaumont
ea92af57f8 Move Rust backend to rspc (#345)
* move Rust backend to rspc

* move server to Axum + remove parts of old bridge

* move frontend over to @rspc/client

* move core to rspc + update deps

* fix Typescript errors + upgrade deps

* document invalidate_query! macro

* general cleanup + upgrade to PCR 0.6.0

* prisma error handling

* upgrade to rspc 0.0.4

* update vite-plugin-ssr

* fix typescript

* fix builds

* put landing page app name back

* hardcode ffmpeg version on Windows

* rename 'command' to 'mutation' to line up with react-query terminology

* upgrade rspc to v0.0.5 + fix types

* use shared ffmpeg binaries

* general Typescript cleanup

* fix clippy workflow failing due to tauri proc-macro

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-08-03 08:36:03 -07:00
Brendan Allan
fe529543a9 fix almos all lint errors 2022-08-01 11:30:10 +08:00
Ericson "Fogo" Soares
85e5eec993 Resumable Jobs + Lefthook Integration (#344)
* Introducing Lefthook for git hooks automation
* TypeScript typechecking and linting
* Rust formatting and linting
* Spellchecking (also corrected spell errors in some files)
* Check links in md files

* Introducing resumable jobs
* Abstractions to pause and resume jobs automatically when application exits and is started
* Changing database to use Bytes for UUID fields
* Changing uuid fields on core to use uuid::Uuid instead of String
* Updating some dependencies and introducing msg_pack serialization to save job state on database

* Fixing some clippy warnings

* Fixing a regression introduced on identifier job, doing too much db accesses concurrently
2022-07-27 00:06:34 -07:00
Ericson Fogo Soares
ee3528a8c5 Merging latest main branch commits and some small fixes 2022-07-18 12:39:58 -03:00
Jamie Pine
9961c49759 Bunch 'O Features (#336)
* CRUD for tags.

* Implement tags query in open.rs and make some changes to CRUD.

* Tag update.

* Hopefully working get tags.

* added node config + spaces schema

* add missing routes

* begin tag ui

* renaming query names to better fit convention

* tags progress

* tag edit

* fix delete tag description

Co-authored-by: xPolar <polar@polar.blue>
2022-07-17 20:45:04 -07:00
Ericson Fogo Soares
ec955e1d82 Merge branch 'main' of github.com:spacedriveapp/spacedrive 2022-07-17 17:28:05 -03:00
Jamie Pine
7839fe43e1 Explorer Grid View (#334)
added grid view, as well as:
- moved location context to client lib
- merged library settings with main settings
- added some missing settings
- removed demo locations due to FileItem props syntax change, they are currently being replaced anyway by Oscar in another PR
- added functioning favorite button to the inspector, that works now
2022-07-14 13:50:48 -07:00
Ericson Fogo Soares
471babf4c0 Merge branch 'main' of github.com:spacedriveapp/spacedrive 2022-07-12 09:12:43 -03:00
Ericson Fogo Soares
75a8b49661 Merging with main 2022-07-11 18:21:50 -03:00
Oscar Beaumont
7e9d036aee allow events to work from web 2022-07-11 16:38:02 +08:00
Oscar Beaumont
c685ce5fe9 Library manager (#258) 2022-07-10 19:05:24 -07:00
Ericson Fogo Soares
149a2e8d2c Removing tokio::spawn_blocking from identifier job
* Some small optimizations to await many queries concurrently
2022-06-30 00:04:37 -03:00
Ericson Fogo Soares
db1cbf0ffe Removing tokio::spawn_blocking from thumbnail generation 2022-06-29 14:46:47 -03:00
Ericson Fogo Soares
ef2f60ff33 Fixing Clippy warnings
* Using tokio on all filesystem operations
* Some minor tweaks to be more consistent on paths between &str, AsRef<Path> and PathBuf
* Using logging instead of println
2022-06-28 22:56:49 -03:00
Jamie Pine
2cc3f3d95d Location Settings (#302)
* Delete locations

+ Show online status

* style tweaks

* tweaks

* location rescan button

* fix location delete db locking bug

* opting to remove self referencial relation on file_path

* correct query

* consolodate migration

* consolodate migrations
2022-06-24 06:26:45 -07:00
Jamie Pine
1b1a8c4258 (fix) job queue
- adding a location performs all jobs
- better logging for thumbnailer
2022-06-22 04:40:45 -07:00
Jamie Pine
ff9df3f8d1 (fix) notes: they work predictably
- added lodash for debounce outside react tree
- added command function to bridge
- updated FAQ
2022-06-22 04:13:11 -07:00
Jamie Pine
d11b9d0f15 (chore): added better loggin 2022-06-21 22:53:07 -07:00
Jamie Pine
dd77aabc47 (fix) dropdown ui tweak + identifier code comments + add log 2022-06-21 21:31:39 -07:00
Jamie Pine
b7d1a6d7a6 Fixed file creation date (#274)
Indexing files shows correct file creation date
2022-06-21 08:39:16 -07:00
Jamie Pine
7cffba2fe5 Identifier Exponential Lag (#269)
A little refactor of the identifier job to remove memory leak and improve performance.
2022-06-21 07:39:31 -07:00
xPolar
77713bab7e Notes on files. (#253)
* Temp fix for build.rs

* Note implementation

* Notes work now, need to iron out some things.

* Finish file notes.

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>

* Remove lodash debounce

* Fix pnpm locl

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
2022-06-20 21:14:05 -07:00
maxichrome
498da6a73e [macOS] native sidebar blur effect (#239)
* wip rust bindings

* wip rust bindings

* attempt raw objc for window blur -- still nothing

* some minor blurring success...

* Fix macOS sidebar blur

* darken sidebar

* lock to dark theme

* remove commented, unused window-blur lines

* remove xcode user state

* ADD SWIFT WINDOW CODE

* refactor: use swift window code

* remove stupid cas warning

* add webview swift util for reload

* remove objc and cocoa

* remove old unused swift build fix

* simplify swift package fn calls

* enumify app theme

* fix main content view not expanding

* fix sidebar folder item layout

* fix swift version requirement

* fix landing package json

* landing tweaks

* sidebar style tweaks for macOS

Co-authored-by: maxichrome <maxichrome@users.noreply.github.com>
Co-authored-by: Jamie Pine <ijamespine@me.com>
2022-06-15 13:53:42 -07:00
Oscar Beaumont
79fa96c3bd Fix CI (#242) 2022-06-14 22:27:03 +08:00
Oscar Beaumont
50838c77c2 Merge branch 'main' into eng-136-file-crud 2022-06-14 13:24:33 +08:00
xPolar
78d709c025 Location CRUD 2022-06-13 22:20:19 -07:00
xPolar
9ce9a0e0aa Crud for locations. 2022-06-13 22:11:02 -07:00
Jamie Pine
69c4da954c Identifier improvements (#205)
* fixed thumbnailer

* fix location id

* fixed cas id miss-assignment

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>

* potentially slow fix for missing cas ids during identifier job + fix thumbnailer error

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-06-02 00:28:33 -07:00
Oscar Beaumont
1d015d4666 Include entire unix filesystem prelude
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2022-05-31 10:47:30 +08:00
Oscar Beaumont
a6551e8380 remove anyhow
We are using `thiserror` instead.
2022-05-30 22:54:21 +08:00
Oscar Beaumont
6e0c944d2e remove unused code + cleanup Rust imports 2022-05-30 22:26:59 +08:00
Jamie Pine
f193f45734 fixed thumbnailer (#203) 2022-05-30 05:08:12 -07:00
Jamie Pine
834c3cefd8 thumaniler still broken, but jamie unsorted changes needs to go 2022-05-29 00:32:53 -07:00
Jamie Pine
49c25531d6 fixed explorer 2022-05-28 22:23:50 -07:00
Jamie Pine
4e6df4fa0c fix identifier! 2022-05-26 14:32:58 -07:00
Jamie Pine
2882dee06b wip towards identifier working again 2022-05-26 02:08:32 -07:00
Brendan Allan
d164db7fc3 cleanup + update to prisma-client-rust 0.5.0
still waiting to rebase for changes to identifier
2022-05-26 16:17:46 +08:00