* Add QuickPreview Component
- Improve the handling of Range requests
- Implement logic to answer HEAD and OPTIONS methods
- Handle CORS pre-flight requests
- Expand accepted file types
- Improve error handling of invalid Range requests
* Fix linter errors
- Add `use std::cmp::min` to custom_uri (Required on MacOS & Windows)
- Improve logic for retrieving file information in QuickPreview.tsx
* More linter errors
* Simplify `QuickPreview` by extracting the logic for choosing the file preview tag to a `FilePreview` component
- Fix the typo in `QuickPreview` props name
- Remove the unused `handleMedia` ref
- Move the remaining `QuickPreview` logic to the `transitions` callback
- Simplify the `cors` return type in `custom_uri.rs`
* Refactor range handling in `handle_file` function
- Move range handling logic to the initialization of the `range` variable
- Replace `if let` with `match` to reduce code duplication
- Don't export FilePreview
- Export QuickPreviewProps
* Fix typo in `RangeNotSatisfiable` error message
- Remove redundant variables
* Fixing cas_id generation on watcher
Some improvements on watcher file creation
* Rust fmt
---------
Co-authored-by: Ericson Soares <ericson.ds999@gmail.com>
Co-authored-by: Jamie Pine <ijamespine@me.com>
* Add label and error to form field
* Add error styling
* Update other form fields
* Update FormField.tsx
* Update Input.tsx
* Move field state to hook
* remove required
* [Desktop] Improve explorer item context menu tags
* [Desktop] Add tag assignment to file inspector
* clean up
* Update tags/CreateDialog.tsx
---------
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
* update color picker
* fix position and ref
* style hex input
* update input field
* add Icon type option
* Update input
* change right padding on lg size
* update other inputs
* update color picker input
---------
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
* [Desktop] Context Menu cleanup
* [Desktop] Update dropdown with new menu changes
* [UI] Change dark menu line color
* [Desktop] remove menu animate prop and make it a default
* Remove duplicate classes
* Handle RPC errors when adding Locations
- Add custom error codes for NeedRelink and AddLibraryToMetadata errors in backend
- Handle errors in AddLocationDialog form
- Show custom error message for above errors and ask user to confirm action
- Handle user action confirmation with appropriate RPC method (`locations.relink`/`locations.addLibrary`)
* Abstract openDirectoryPickerDialog logic to a function
- Add 'Unkown Error' when code doesn't match a know one
* Fix bugs in logic to handle `locations.create` errors
- Fix minor issue: AddLocationButton opened the dialog in desktop even when the user cancelled the file picker
- Replace ternary with object for custom form error messages to allow for easier expansion
- Break onSubmit logic up into functions
- Remove incorrect `locations.indexer_rules.delete` call
- Fix Checkbox element state not updating on external form state changes
* Adjust AddLocationDialog style to match other Dialogs in the app
- Reset exception code at the end of `confirmAfterError`
* Rework how backend errors are handled when adding Locations
- Change NeedRelink and AddLibraryToMetadata errors to use 409 (Conflict) status code and a static message.
- Only enable custom submit logic in AddLocationDialog for 409 (Conflict) errors that have a known custom error form message.
- Differentiate previous errors based on their messages instead of status code in AddLocationDialog onSubmit.
- Add @hookform/error-message dependency for improved form validation error rendering.
* Invalidate library.list to ensure it is shown on sidebar
* Improvements to AddLocationDialog
- Remove uncessary scope block and make useEffect depend directly on `form`
- Move `form.handleSubmit` from `onSubmit` call to `handleSubmit` definition
- Change basic Checkbox to RadixCheckbox and adapt onChange logic to onCheckedChange
- Some simple styling improvements to the error message
* asset script
* Add commonjs vite plugin
* Use the index file and rename some images
* Delete unsued files and imports
* Change require to import
* Remove @ts-nocheck bcs why not
* Introducing sub path indexing for IndexerJob
* Introducing shallow indexer job
* Some feature flags to avoid warnings at pnpm prep
* Many fixes at shallow indexer job
* Changing how we implement the bookkeeping for file_path ids
Now we're account for independent locations, and also integrating
better with the LibraryContext, instead of using a static global
* Making indexer job reentrant
* Introducing shallow file identifier job
And a bunch of minor refactors
* Rust fmt
* Removing light scan from getExplorerData query
Light scan is a mutation, so we can call it on useEffect function from
the Explorer component in the frontend, when a location_id or the explorer
path changes
* Handling job early finish on init for identifier
* Only invalidate query if we have orphan paths
* Introducing ShalowThumbnailerJob
* Clippy warnings about `into_iter()`
* Naming scheme for Prisma's selects and includes
* Invalidating getExplorerData at thumbnailer
* Small mistakes lol
* Some nitpicks with pnpm prep
* Rust fmt
* Changing indexer's walk log to `trace!`
* Not deleting all file_paths on location fullRescan
* TS typecheck
* Removing `file_path` selection just with id
* improved object icons
* remove redundant control flow
* added support for base icon overrides by extension
+ deleted old icons folder and moved official icons into there
* fixed folder icon error
* removed temp nodes example
---------
Co-authored-by: Brendan Allan <brendonovich@outlook.com>
* beginnings of app directory
* settings mostly good
* colocate way more components
* flatten components folder
* reexport QueryClientProvider from client
* move CodeBlock back to interface
* colocate Explorer, KeyManager + more
* goddamn captialisation
* get toasts out of components
* please eslint
* no more src directory
* $ instead of :
* added back RowHeader component
* fix settings modal padding
* more spacing, less margin
* fix sidebar locations button
* fix tags sidebar link
* clean up back button
* added margin to explorer context menu to prevent contact with edge of viewport
* don't export QueryClientProvider from @sd/client
* basic guidelines
* import interface correctly
* remove old demo data
* fix onboarding layout
* fix onboarding navigation
* fix key manager settings button
---------
Co-authored-by: Jamie Pine <ijamespine@me.com>