Commit Graph

647 Commits

Author SHA1 Message Date
jake
84d0954294 [ENG-262] Key Manager Integration (#450)
* add keys router

* make progress on keymanager integration

* make name non-negotiable

* hyphenate encryption algorithm names

* Revert "make name non-negotiable"

This reverts commit 9c0f51329e.

* add some more keymanager queries

* add master password and default key routes

* add newly registered key to db + fmt

* clippy, formatting and `updateKeyName` route

* add automount to schema+automount keys where `true`

* update bindings

* working key add/mount

* working keylist

* mounted keys show first

* cleanup code

* add comments, code cleanup, more functions

* unmount all keys button

* comment and keymanager `clear_master_password()`

* add no keys available message

* fix unmount button

* use dashmap for concurrency

* fix missing keylist issue and add invalidate query macro

* set correct RSPC types

* statically set master password (TEMPORARILY)

* add remove key function within the keymanager

* key dropdown menu and impl

* formatting

* allow `option_if_let_else`

* add comment about key stats

* add additional comment

* rpsc error handling for the keys route

* fix rspc errors with an impl

* crypto crate errors to `sd-crypto::Error`

* remove `map_err`

* use custom result type

* cargo fmt

* clippy

* fix builds

* remove `Error::MutexLock`

* fix unnecessary unwrap

* mutex error handling (buggy for some reason)

* clean default key logic

* fix default key clearing

* allow a key to be removed without bugs

* implement requested changes

* use a single `useMemo`

* update schema with defaults

* re-generate migrations

* use rust enums in TS

* remove dead code

* remove mutate expansion

* read key list from keymanager, not prisma

* add "Default" key marker and cleanup TS

* rustfmt

* remove dead code
2022-11-05 04:18:01 -07:00
Oscar Beaumont
0a3833f34d fix prod build not working & thumbnails on web 2022-11-04 17:19:46 +08:00
Utku
5b47a1062a Mobile - File Import (#443)
* Fix File modal and Stats

* Add disabled and loading state for dialog

* Close library drowdown with drawer

* catch Rust panics on mobile to prevent UB

* Update packages

* Move create lib dialog to container

* Create library on onboarding

* Cleanup metro config & update packages

* onClose for Dialog & update library cache

* Fix pods, downgrade react-native-svg

* Fix lib switching, organization, start import modal

* Add device size info

* Revert merge + version upgrade/fix

* Create Location & Remove placeholder data

* Create default modal component

* Check if the location already exists

* Add media-library + prettier

* fix build

* Fix Xcode shellScript too

* More small fixes

* don't export bindings on mobile devices

* Explorer store + cleanup

* Explorer comp. & add flashlist

* [WIP] Files in Locations & new file thumb

* clean merge

* Fix imports

* Fix core on mobile

* Add platform context to mobile

* Refactor libraryStore

* Add thumb url path to platform context

* Try fixing app startup

* Add zip and video to filethumb

* Delete bindings.ts from mobile

* Remove heroicons from mobile too

* useForwardedRef hook

* Media Library permission stuff

* Clean import modal

* remove valtio-persist from @sd/client

* prevent Sentry capturing all events

* refactor `@sd/client` to make it better for mobile

* fix mobile splashscreen
Just trust me bro

* fix mobile draw active style

* use custom valtioPersist for current library state

* remove mobile lockfile
It's now in the pnpm workspace so it shared the main one.

* finally remove valtio-persist

* remove 'mobile' from Platform as it's in interface

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-11-01 21:32:56 +08:00
Oscar Beaumont
aff03b3f49 Error Bounary Sentry support (#444)
* Sentry support

* remove broken import

Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com>
Co-authored-by: Jamie Pine <ijamespine@me.com>
2022-10-29 02:06:09 -07:00
Jamie Pine
4476a52dd7 Update Team Page (#440)
update team page
2022-10-27 00:45:03 -07:00
Jamie Pine
63a846c56d Polish Icon Usage (#437) 2022-10-25 18:47:09 -07:00
Oscar Beaumont
22212a5177 fix ENG-226 - App crashing with no libraries 2022-10-25 19:16:00 +10:00
Oscar Beaumont
d2798d1e5e Fix types 2022-10-25 11:48:00 +10:00
Oscar Beaumont
847394046a React Query devtools 2022-10-25 11:41:46 +10:00
Oscar Beaumont
1e4b8286b4 add useDebouncedForm hook 2022-10-25 11:41:05 +10:00
Oscar Beaumont
d536824ca1 Fix enter key not submitting dialog 2022-10-25 10:11:07 +10:00
Jamie Pine
0fb1d944b8 keybinds 2022-10-24 04:14:07 -07:00
Jamie Pine
dc52360593 more styles 2022-10-24 03:04:52 -07:00
Jamie Pine
9094d64d1e Merge branch 'spacedrive-but-themable' of github.com:spacedriveapp/spacedrive into spacedrive-but-themable 2022-10-24 01:18:05 -07:00
Jamie Pine
ecc24a43d8 job indicator + styling 2022-10-24 01:17:10 -07:00
Oscar Beaumont
41752bff43 debug mode + minor fixes 2022-10-24 17:48:52 +10:00
Jamie Pine
af1cedccc8 Merge branch 'main'
Conflicts:
	packages/interface/src/screens/settings/library/LibraryGeneralSettings.tsx
2022-10-23 18:43:27 -07:00
Jamie Pine
b2a0cd1b5c more style tweaks 2022-10-23 18:20:36 -07:00
Jamie Pine
b696f2a510 various style fixes 2022-10-23 18:09:15 -07:00
Jamie Pine
5b39400070 style tweaks, fix TS CI 2022-10-23 16:17:53 -07:00
itschip
b26c6251bf fix(interface/settings): remove library dep when updating general settings (#432)
* fix(interface/settings): remove library dep when updating general settings

* LibraryGeneralSettings use react-hook-form

useEffects are cringe

* Fix Typescript errors

Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
2022-10-23 16:16:49 -07:00
Jamie Pine
050dcebc9f remove spline test 2022-10-23 03:43:10 -07:00
Jamie Pine
7495192662 finish theming 2022-10-23 03:24:46 -07:00
Jamie Pine
7a58887048 more theming 2022-10-22 22:46:46 -07:00
Jamie Pine
5948593bd7 further tweaking 2022-10-22 07:01:59 -07:00
Jamie Pine
54e27dba47 more theming 2022-10-22 04:24:00 -07:00
Jamie Pine
71f987a4dc morpe stuf 2022-10-22 00:02:35 -07:00
Jamie Pine
83f86eeaba styled explorer top bar 2022-10-21 23:21:22 -07:00
Jamie Pine
55c81e18c9 Merge remote-tracking branch 'refs/remotes/origin/spacedrive-but-themable'
Conflicts:
	packages/interface/src/screens/settings/client/GeneralSettings.tsx
	packages/ui/src/Dropdown.tsx
2022-10-21 21:53:45 -07:00
Jamie Pine
4b9b8f335f refactor switch component + update styles 2022-10-21 21:50:47 -07:00
Brendan Allan
18d3c947f7 dropdown refactor 2022-10-22 01:35:03 +08:00
Jamie Pine
23a45563df refactor progress 2022-10-21 04:45:53 -07:00
Jamie Pine
237c5a12af Merge branch 'eng-259-identify-objectkind'
Conflicts:
	apps/landing/package.json
	apps/landing/vite.config.ts
	packages/interface/src/AppLayout.tsx
	packages/interface/src/components/explorer/Explorer.tsx
	packages/interface/src/components/explorer/ExplorerTopBar.tsx
	packages/ui/src/ContextMenu.tsx
	pnpm-lock.yaml
2022-10-20 22:49:15 -07:00
Jamie Pine
db91ba80f9 progress 2022-10-20 22:36:25 -07:00
Jamie Pine
ed20c0ca1d merge 2022-10-20 21:55:39 -07:00
Brendan Allan
3bf95b2993 add CreateLibraryDialog to sidebar dropdown 2022-10-21 11:26:15 +08:00
Brendan Allan
276cf43a70 disable dropdown storybook 2022-10-21 10:30:19 +08:00
Brendan Allan
d4ad33e9c1 refactor dropdown 2022-10-21 10:29:50 +08:00
Brendan Allan
4ed63cc85d use custom tailwind styled function (#426)
* use custom tailwind styled function

* update pnpm lock

* fix landing vite config
2022-10-20 17:34:40 -07:00
Jamie Pine
3d0994f5df some esm vite plugin thing (#425) 2022-10-20 16:21:50 -07:00
Brendan Allan
d4d019680c use padding="thin" 2022-10-21 04:14:54 +08:00
Brendan Allan
8fa7b1e5e1 UI refactor (#418)
button refactor

Co-authored-by: Jamie Pine <32987599+jamiepine@users.noreply.github.com>
2022-10-18 21:24:47 -07:00
Oscar Beaumont
55b2f0a783 Merge remote-tracking branch 'origin/main' into fix-reactivity 2022-10-18 22:09:33 +08:00
Oscar Beaumont
c4a12bd1a7 use React.PropsWithChildren 2022-10-18 22:04:19 +08:00
Oscar Beaumont
5f4003e8b1 purge unused dependencies 2022-10-18 21:52:00 +08:00
Oscar Beaumont
7ab2795b18 Removing import React from mobile 2022-10-18 20:58:05 +08:00
jake
a65c59726d [ENG-245] Object Validator Job (#414)
* use `.to_hex()` for blake3 hashes

* move file hashing function+fix large stack alloc

* init validator job

* change branch name

* add object validator job

* formatting

Co-authored-by: Jamie Pine <ijamespine@me.com>
2022-10-18 05:39:33 -07:00
Jamie Pine
da67bde72d fix video thumb and inspector scroll 2022-10-18 00:00:33 -07:00
Jamie Pine
8c2175d156 ui cleanup 2022-10-17 23:38:41 -07:00
Jamie Pine
b8bc9abbb6 improvements to key manager ui 2022-10-17 21:01:40 -07:00