Commit Graph

354 Commits

Author SHA1 Message Date
Brendan Allan
a7c3816419 Use feature gated database branch of PCR (#387)
use feature gating branch of pcr
2022-09-22 23:40:15 -07:00
Brendan Allan
2f9a7c306c typo fixes 2022-09-23 13:46:23 +08:00
Brendan Allan
18079ba378 Use PCR for migrations (#385)
* use pcr migrations branch

* use 0.6.2 branch with migrations

* use latest prisma stuff

* allow force reset of db in dev

* remove .spacedrive file

* update rspc in apps/server

* use rspc 0.0.5 in all crates

* add os to prisma client cache key

* add runner os to clippy prisma cache
2022-09-22 00:50:21 -07:00
Oscar Beaumont
5f9a3459b5 Merge remote-tracking branch 'origin/main' into eng-237-explorer-performance-2 2022-09-15 12:45:05 +08:00
Oscar Beaumont
3338506119 properly shutdown the core when using server 2022-09-14 19:02:11 +08:00
Oscar Beaumont
b785fe6656 fix clippy warning 2022-09-12 23:50:02 +08:00
Oscar Beaumont
1fca6fb60a onboarding UI flow 2022-09-12 23:43:12 +08:00
Oscar Beaumont
bd778a4f6b Merge remote-tracking branch 'origin/main' into eng-237-explorer-performance-2 2022-09-09 15:30:17 +08:00
Oscar Beaumont
8208cddb07 assorted minor changes 2022-09-09 07:57:35 +08:00
Oscar Beaumont
efb451ee36 Better db migrations (#381)
* use prisma migration engine for migrations

* squash migrations + remove excessive logging
2022-09-08 15:57:07 -07:00
Oscar Beaumont
fc529e37f7 merge changes 2022-09-09 06:32:17 +08:00
Oscar Beaumont
4509998eb2 fix the production build issue + cleanup frontend 2022-09-09 06:29:47 +08:00
Jamie Pine
247c6e8aac Merge branch 'eng-237-explorer-performance-2' of https://github.com/spacedriveapp/spacedrive into eng-237-explorer-performance-2 2022-09-08 15:01:08 -07:00
Jamie Pine
e1e292e507 job manager tweaks 2022-09-08 15:01:05 -07:00
Ericson Fogo Soares
24816c001d Changing job metadata to serde_json::Value 2022-09-08 17:20:04 -03:00
Jamie Pine
39b80eb018 job manager wip 2022-09-07 20:04:13 -07:00
Jamie Pine
3aa7285917 Merge remote-tracking branch 'origin/eng-237-explorer-performance-2' into eng-237-explorer-performance-2 2022-09-07 19:45:53 -07:00
Ericson Fogo Soares
6f887a11b9 A wrong premise about report on a running job 2022-09-07 23:43:39 -03:00
Jamie Pine
410726c685 Merge remote-tracking branch 'origin/eng-237-explorer-performance-2' into eng-237-explorer-performance-2 2022-09-07 19:25:43 -07:00
Ericson Fogo Soares
fac10845df Missing job error from serde_json::Error 2022-09-07 23:23:04 -03:00
Jamie Pine
5ee47060bd Merge remote-tracking branch 'origin/eng-237-explorer-performance-2' into eng-237-explorer-performance-2 2022-09-07 19:12:49 -07:00
Ericson Fogo Soares
3a8d0c91e9 Implementing metadata for jobs 2022-09-07 23:08:11 -03:00
Jamie Pine
ed8d32ec87 hotfix for identifier orphan query 2022-09-07 14:05:33 -07:00
Utku Bakir
3e741dfb78 Rust useless conversion 2022-09-07 11:56:51 +03:00
Jamie Pine
6b5a6fd39c (fix) identifier job: better error handling 2022-09-06 23:21:58 -07:00
Brendan Allan
90afd62b73 cleanup identifier job 2022-09-07 10:15:55 +08:00
Jamie Pine
a45735ad57 fix indexer lag (reimplement debounced progress event for jobs) 2022-09-06 17:44:48 -07:00
Brendan Allan
e9336a1417 utilise include instead of with for type safety 2022-09-07 04:09:57 +08:00
Brendan Allan
d3665b8ccd rename getAll to list 2022-09-07 00:21:41 +08:00
Brendan Allan
1fd7f40ab0 fix everything after rebase 2022-09-06 22:34:39 +08:00
Oscar Beaumont
873dc7b89c Upgraded rspc with libraries + upgrade PCR 0.6.0 2022-09-06 22:08:19 +08:00
Jamie Pine
f3b8e6b14a replaced interface store with Valtio 2022-09-04 18:20:22 -07:00
Jamie Pine
d621145f49 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
ddd638723a 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
1bcbf782c5 new invalidate_query + add IOS sim to setup script 2022-08-31 18:42:06 +08:00
Oscar Beaumont
624a7c12c1 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
b01887c5ab 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
f7efb72a23 update to latest prisma-client-rust 2022-08-19 08:58:27 +08:00
Jamie Pine
711eef1950 Merge branch 'main' of https://github.com/spacedriveapp/spacedrive 2022-08-08 23:10:17 -07:00
Jamie Pine
52c4bf0943 (fix) add new team members 2022-08-06 20:14:13 -07:00
Oscar Beaumont
3804f034f1 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
302651dba2 fix almos all lint errors 2022-08-01 11:30:10 +08:00
Ericson "Fogo" Soares
1d30850c21 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
34195e2d51 Merging latest main branch commits and some small fixes 2022-07-18 12:39:58 -03:00
Jamie Pine
47ae02b743 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
7c5aa70963 Merge branch 'main' of github.com:spacedriveapp/spacedrive 2022-07-17 17:28:05 -03:00
Jamie Pine
75f9e34a6c 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
7d59a25041 Merge branch 'main' of github.com:spacedriveapp/spacedrive 2022-07-12 09:12:43 -03:00
Ericson Fogo Soares
428bd9be80 Merging with main 2022-07-11 18:21:50 -03:00
Oscar Beaumont
c0bc7745e3 allow events to work from web 2022-07-11 16:38:02 +08:00