Commit graph

111 commits

Author SHA1 Message Date
jake c7dbc784cd
[ENG-361] Crypto crate docs and tests (#572)
* add hashing tests

* add encryption/decryption tests

* remove `reason`

* add file header tests (preview media deserialization is broken)

* fix keyslot reading bug

* add sd-crypto testing to ci

* add tests/constants for all hashing algorthms and param levels

* add blake3-kdf tests

* use `const` arrays for storing expected output

* test for `5MiB` `encrypt_streams` and `decrypt_streams`

* add invalid/mismatched nonce tests

* update `primitives` docs

* remove erroneous `,`

* grammar tweaks

* add errors to `#[should_panic]`

* cleanup `stream` tests

* cleanup hashing tests a little

* function docs
2023-02-16 11:42:30 +00:00
Brendan Allan f0da8b037f update name of eslint job 2023-01-22 16:14:59 +08:00
Brendan Allan d3737cea97 simplify eslint configs + add CI job 2023-01-22 16:01:15 +08:00
Ericson "Fogo" Soares bcbcd260d4
ENG 223 Location Awareness (#468)
* Introducing location online/offline checks and location relink

* Some initial drafts for location watchers

* Location metadata relink and add library

* Many improvements at job system
Now using prisma batching at identifier job
Removing blocking I/O from extension subcrate
Implementing lazy generation of thumbnails
New current directory identifier job to be used on light rescans

* Some optimizations on identifier and object validator jobs

* merge jamie's identifier PR

* fully repaired identifier job

* properly hooked up object kind

* inspector fix

* fix video badge

* small improvements to libraries settings

* identifier and inspector improvements

* fix feature flags and hook up context menu location utilities

* BETTER CONTEXT MENU x100

* test-files

* style tweaks

* new icon designs

* manifest

* fix thumbnails on web

* media data

* New Location Watcher and some minor fixes

* disable broken media_data extractor, wip

* wip

* function name fix

* Fixing pnpm prep and some warnings

* Solving a race condition beetween indexer job and FS event handlerSome other minor warnings

* Generating thumbnails on watcher

* Remove event handler on watcher

* Some initial works on modify events and other small fixes

* File update event

* Trying to be more generic with used events and some tests to validate our assumptions

* Turning on location metadata file

* Introducing core unit tests on CI pipeline

* Submiting new unit test assumptions to validate on windows CI

* Fixing unit tests

* Fixing unit tests again

* Fixing unit tests

* Fixing unit tests for macos

* Fixing unit tests for macos again

* New structure for platform dependent event handling
Implementing event handlers for Linux and MacOS

* minor fixes + rustfmt + clippy

* Windows event handling

* Introducing a feature gate to only use location watching on desktop app for now

* Putting more stuff behind feature gates to avoid warnings

* Adding feature to cargo test on CI

* Changing some debug logs to trace logs and removing Jamie specific stuff

* Make location removal from manager less async

* fix build when "location-watcher" feature disabled

* fix types + clippy

* make location manager non-static

* remove uses of `to_string_lossy`

* more invalidate_query calls

* Expose `library_ctx` directly to avoid needless clones

* New materialized_path handling for directories

* Removing cascade delete between file_path and object
- Some other minor stuff

* remove unused `CurrentDirFileIdentifierJob`

Co-authored-by: Jamie Pine <ijamespine@me.com>
Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-12-31 00:53:24 +08:00
Utku Bakir 959783b08a Bump node to lts (v18) 2022-12-14 12:43:02 +03:00
Utku 42f09b0918
Mobile - Settings & Tags (#479)
* Sync tailwind configs

* Switch to new colors part 1

* new colors part 2

* switched to new colors

* settings screens template

* settings progress

* Setting header titles

* Refactor settings icon

* Fix tsconfig relative path issue

* Move mobile eslint config to @sd/config

* Add no-restricted-imports rule to eslint

* rename TextInput to Input & tailwind font sizing

* General Settings screen + Card component

* Library settings screen & delete lib dialog

* autoform hook

* Mini tweaks and new packages

* Exclude android & ios from search

* Add Switch (Input)

* Library General settings screen

* Refactor settings + Switch and Switch Container

* Locations screen & delete and rescan locations

* Rename folder + small tweaks

* Make things Swipeable

* Create Tag Dialog with color picker

* Upgrade to Expo 47

* More tag stuff

* fix pnpm lock

* regen pnpm-lock

* Change CI node version to 16

* Move `isVideo` into shared package

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-12-13 15:18:03 +08:00
Brendan Allan 35144be8a1 separate fetch & check 2022-10-05 17:20:40 +08:00
Brendan Allan 162f3d7782
Improve CI Speed (#398)
* use different cache

* cache prisma client in rustfmt

* cleanup prettier config

* build server image in sub-action

* server image + prisma client custom actions

* remove lefthoook checks that are in ci

* fix build-server-image

* rename Clippy job

* rename build core job

* use custom rust caching action

* fix rust cache shared key

* cleanup custom action job names

* remove platform check in clippy ci

* setup pnpm in clippy ci

* update mobile package name

* make ios compiling conditional

* use pnpm cache

* run clippy in release

* force use release for all jobs
2022-10-04 18:45:54 -07:00
Brendan Allan ed06e3051e
[ENG-84] Sync library (#394)
* new sql lib stuff

* add sync stuff + rename all crates

* build sd-core

* add sync/example/dist to source

* fix sync example in monorepop

* appease clippy

* update lockfile

* update commit hooks

* fix typescript

* fix typescript build

* please rustfmt
2022-10-04 05:25:12 -07:00
Brendan Allan 7d15ce0152 run rustfmt in ci 2022-10-04 20:03:49 +08:00
Brendan Allan 46e1d47596 use proper workflow syntax 2022-09-28 11:42:05 +08:00
Brendan Allan 3e2ae2ddad expand prisma client cache key 2022-09-28 11:39:04 +08:00
Brendan Allan b395491b28 remove needs: typescript from rust ci 2022-09-23 13:53:56 +08:00
Brendan Allan 6e07435a15
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 c972928161 remove readme copier workflow 2022-09-09 07:39:00 +08:00
Brendan Allan 5208628060 fix clippy ci 2022-08-19 09:57:52 +08:00
Brendan Allan b68f4f3684
Update org-readme.yml 2022-08-04 07:41:42 -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
Oscar Beaumont cc3c63b996
Remove frozen flag from clippy workflow 2022-07-19 09:59:13 +08:00
voletro c635077c3c Remove Action for LLVM, use action that is already built in. Set GH env variables. 2022-07-06 12:28:28 +10:00
Oscar Beaumont 2c73ca18a0
remove Cargo frozen flag 2022-07-05 23:55:44 +08:00
voletro b56fc5cd86 Added headless mode, added LLVM installer to ci. 2022-07-05 11:21:42 +10:00
Oscar Beaumont 55e52eb2ec
fix clippy workflow (hopefully) 2022-06-20 11:27:37 +08:00
Oscar Beaumont 6cc52e5480
remove frozen flag from cargo fetch 2022-06-19 01:52:03 +08:00
Oscar Beaumont 79fa96c3bd
Fix CI (#242) 2022-06-14 22:27:03 +08:00
Lars Gyrup Brink Nielsen 8253813dca ci: update actions/checkout to v3 2022-06-03 10:38:51 +02:00
Lars Gyrup Brink Nielsen 4e644d7b6e ci: update actions/checkout to v3 2022-06-03 10:38:51 +02:00
Lars Gyrup Brink Nielsen 27b0d58f67 ci: update pnpm/action-setup to v2.2.2 2022-06-03 10:38:42 +02:00
Lars Gyrup Brink Nielsen 5ca250fb51 ci: update actions/setup-node to v3 2022-06-03 10:20:34 +02:00
Lars Gyrup Brink Nielsen f014d19b51 ci: update to actions/checkout v3 2022-06-03 10:19:59 +02:00
Jamie Pine 6f04854daa visualizer 2022-05-23 11:56:38 -07:00
Harry Hopkinson 5ed2b4a7f8
Change pnpm -r exec tsc to pnpm typecheck 2022-05-15 10:35:12 +01:00
maxichrome 423c9063d4
update all other instances of .app 2022-05-10 02:34:19 -05:00
Oscar Beaumont 30e9df507f add workflow_dispatch to CI flow 2022-05-04 20:59:20 +08:00
Brendan Allan 8ac51ac7f9 ci: fix 2022-05-01 18:36:59 +08:00
Brendan Allan 660ec4fb1f ci: use sharedKey 2022-05-01 17:46:44 +08:00
Brendan Allan 53b8b59569 ci: use original cache action + build server 2022-05-01 17:36:23 +08:00
Brendan Allan 64fbfc5976 ci: make nicer 2022-05-01 16:23:09 +08:00
Brendan Allan 9c24074bd7 don't build prisma-client-rust separately 2022-05-01 13:12:57 +08:00
Brendan Allan 6c4d788dbf use pnpm 7 2022-05-01 12:33:42 +08:00
Brendan Allan c9e76e9a7a tsconfig refactor 2022-05-01 12:17:55 +08:00
Brendan Allan fe9d3bdb08 ci: don't build + publish server on pr 2022-05-01 09:59:39 +08:00
Brendan Allan fd74a14dc0 use brendonovich/rust-cache 2022-05-01 09:48:35 +08:00
Brendan Allan b03f3ddf5a Merge remote-tracking branch 'upstream/main' into new-ci 2022-05-01 09:36:12 +08:00
Jamie Pine 01c985e605 remove lint workflow - keeps failing, probably not needed 2022-04-27 10:51:16 -07:00
Brendan Allan 0f4b97ee5d ci: stupid 2022-04-26 15:59:09 +08:00
Brendan Allan 23b769f869 ci: bruh 2022-04-26 15:31:10 +08:00
Brendan Allan d48122a2b5 ci: explicity build prisma-client-rust 2022-04-26 15:20:41 +08:00
Brendan Allan 843a3965df ci: reset cache 2022-04-26 09:03:51 +08:00
Brendan Allan 4f19ffad6a ci: idk 2022-04-26 06:15:31 +08:00