Commit Graph

886 Commits

Author SHA1 Message Date
Vítor Vasconcellos
ea92383b78 Improve file thumbnails and Quick Preview (+ some code clean-up and rust deps update) (#2758)
* Update rspc, prisma-client-rust, axum and tanstack-query
 - Deleted some unused examples and fully commented out frontend code
 - Implement many changes required due to the updates
 - Update most rust dependencies

* Re-enable p2p

* Fix server

* Auto format

* Fix injected script format
 - Update some github actions
 - Update pnpm lock file

* Fix devtools showing up when app opens
 - Fix million complaining about Sparkles component

* Fix sd-server

* Fix and improve thumbnails rendering
 - Fix core always saying a new thumbnail was generated even for files that it skiped thumbnail generation
 - Rewrite FileThumb and improve related components

* Ignore tmp files when running prettier

* Improve FileThumb component performance
 - Rework useExplorerDraggable and useExplorerItemData hooks due to reduce unecessary re-renders

* More fixes for thumb component
 - A couple of minor performance improvements to frontend code

* auto format

* Fix Thumbnail and QuickPreview

* Fix logic for when to show 'fail to load original' error message in QuickPreview
 - Updated prisma-client-rust, libp2p, tauri, tauri-specta, rspc and hyper

* Fix type checking
 - Format scripts

* Add script prettier config

* Fix serde missing feature
 - Use rust-libp2p spacedrive fork again
 - Update rspc

* Autoformat + fix pnpm lock

* Fix thumbnail first load again

* Autoformat

* autoformat

* Fix rust-libp2p fork url again?

* Remove usePathsInfiniteQuery hook

* Update tauri 2.0.6
2024-10-21 15:47:40 +00:00
wany-oh
0bbf7aa0ac Improved Japanese translation (#2773) 2024-10-16 20:46:46 +00:00
Ameer Al Ashhab
51bee05a60 [ENG-1925] Fix windows scroll (#2756)
* Fix scroll on windows

* use a different class
2024-10-09 20:57:48 +00:00
Lynx
a3048fbd10 Add no telemetry option and improve analytics code clarity (#2740)
* Refactor analytics configuration to use `configureAnalyticsProperties` instead of `initPlausible` for improved clarity

* format & add comment explaining analytics ping code
if any people reviewing source for their own verification of its purpose, this should make it much clearer what this does

* refactor Setting to use named function so its references can be source-peeked

* add basic support for 'none' telemetry option
changing the option in the Select dropdown breaks things right now, gotta figure out why

* fix usePlausibleEvent sending old telemetry level preference property to submitPlausibleEvent

* Fall back fo 'unknown' instead of '0.1.0' for app version stats

* Better explain the purpose of more things in submitPlausibleEvent

* organize and clean up internationalization file keys

* fix lowercase connect/connecting key names in code

* add no-telemetry option to onboarding

* Only display error report button if telemetry is enabled

* Add explainer to Sentry plugin for Vite

* Fix onboarding selection in both interface and mobile

* Add more explanation and checks to usePlausible to never send data unless allowed

* add support for onLoad to transform data from persisted mutable stores

* update some analytics explainers on mobile

* add telemetry state migration

* add migration for telemetry state from explorer layout key in persisted store

* fix cypress test for onboarding privacy page

* remove some accidentally included console.log statements

* Add localized analytics preference names

* Use localized telemetry preference names in Settings

* use cleaner text wrapping in settings

* Update the telemetry setting title

* fix telemetry typo

* update mobile no-analytics text

* remove telemetry override option

* eslint: disable no-empty-object-type for PlausibleOptions

the reason is commented
2024-10-07 22:00:38 +00:00
Lynx
7825903b7d Change sample date (#2754)
* switch sample date to 15 Jan 2024, 08:51

* undo removed reference to default date in format option
2024-10-06 22:19:43 +00:00
Vítor Vasconcellos
7cd0556f15 [ENG-1928] Update to tauri 2.0.1 stable (#2752)
* Update to tauri 2.0.0 stable
 - Update a some othe dependencies
 - Autoformat rust and toml files

* Fix clippy complain

* Update tauri 2.0.1
 - Update rspc
 - Update some frontend files due changes in rspc
 - Update some frontend build dependencies

* Revert babel update

* Fix code typing typing and style + a couple of bugs

* More type fixes
2024-10-05 21:17:30 +00:00
Jamie Pine
cc8975cd75 Fix Inspector notes (#2748)
fix notes
2024-10-02 15:27:16 +00:00
Lynx
a0173caccf Organize and clean up internationalization file keys (#2741)
* organize and clean up internationalization file keys

* fix lowercase connect/connecting key names in code
2024-09-29 07:33:32 +00:00
Ameer Al Ashhab
33da868a0b [ENG-1897,1900,1901] Quick add tag fix & more (#2720)
* quick view to quick preview & fix add tag in quick preview

* Make sure color picker shows when creating a tag in quick preview
2024-09-24 18:56:36 +00:00
Madison Konig
5825dcf397 fix windows multiple tab spacing (#2713) 2024-09-19 04:32:26 +00:00
Madison Konig
1db7aff729 Fix "open with" list ordering (#2697)
* Add sorting to "open with" menu

* Added sorting of open with in rust

* made prettier

* reduced variables used

* format issues

* revert rust back to no sorting
2024-09-14 05:28:14 +00:00
markrieder
a38583543f Update appearance Czech language.tsx (#2699)
* Update appearance Czech language.tsx

* Create common.json

---------

Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
2024-09-11 07:33:13 +00:00
Madion Konig
7f05ade433 Add "Duplicate current tab" keybind (#2679)
* Implemented duplicating current tab

* prettier fixes

* Disable non-functional "New window" menu shortcut
This was preventing "Duplicate current tab" from firing

* use proper casing in RedirectPath type name

* Revert locale changes from "Implemented duplicating current tab"

This partially reverts commit a822f54569.

There were unrelated changes to locale files that should be scoped to their own PR.

* SImplify new location definition

* Remove accidentally committed change lol

* Use cmd-shift-t for duplicate same tab

* Remove navToSettings shortcut

* remove references to now-missing navToSettings keybind

---------

Co-authored-by: lynx <141365347+iLynxcat@users.noreply.github.com>
2024-08-28 18:11:46 +00:00
ameer2468
7eae1c2e58 [ENG-1874] Always show windows top bar options (#2692)
always show windows top bar options
2024-08-27 13:57:07 +00:00
ameer2468
7258f8cf39 [ENG-1694] Dialogs visual improvements (#2684)
Improve how dialogs look + add location modal improvements
2024-08-20 17:20:30 +00:00
Artsiom Voitas
8197d3227d Added translation keys for FileKindStats, general (settings) and StarfieldEffect components (#2673)
* feat: added missed translation keys

Added missed translation keys for FileKindStats and general settings components. Translated those keys on Belarusian and Russian

* feat: added plurals for delete warning, sorted all i18n keys

* clean up

* second clean up

* fixed translation on Arabic
2024-08-19 20:41:24 +00:00
ameer2468
7dc7ad4e95 [ENG-1866] Overview: fix storage progress device value (#2678)
Fix storage device value
2024-08-19 18:27:06 +00:00
Artsiom Voitas
2aa7d4a53e Added Windows Control buttons to the TopBar on "Peer" tab (#2674)
added windows control buttons to the "Peer" tab
2024-08-19 09:37:02 +00:00
Vítor Vasconcellos
ba0ecb6fa2 Fix release workflow (#2668)
* Fix frontend bundle upload
 - Update pnpm

* Revert incorrect removal of fontenf packaging job

* Fix tauri not building updater bundles

* Ensure release action is executed when PRs modify the publish-artifacts action

* Fix unused argument for patchTauri function

* Couple for format fixes

* tauri requires building the app bundle to build the updater
2024-08-17 08:29:32 +00:00
Vítor Vasconcellos
58c986bf99 Format files due to update to prettier and eslint (#2667) 2024-08-17 02:50:56 +00:00
Consoli
7395c2d47b [ENG-1159] Report progress when copying files (#2538)
* Copy ephemeral files by chunks

* Improving buffered writer

* Report progress

* Copy and emit progress as two separated tasks

* Simplify for-if-return with `Iterator::any`

* Docs and use structured tracing

* Simplify code using paths

* wip

* wip

* wip

* wip

* Add report of messages while copying files

* Add info field to job report

* Group paths from OldFileCopierJobStep into a single struct

* Improve progress information

* Remove the need for synchronization

* Error handling for copy

* Clean up frontend

* Make watcher only consider new files

* Fix concurrent renaming of multiple files that have the same name

* Add documentation for file strategist

* Remove editions to ephemeral file copies

* Remove experimental/nightly features from Cargo.toml

* Fix no-case-declarations

* Remove dead comments

* Format code

* Use "Duplicate" instead of "Copy" in the frontend messages

* Remove inline always to make clippy happy

* icons for deleter and copier

* Fix JobManager for copy jobs
 - Fix some types definitions

* Fix Job icon choosing logic
 - Fix Copier job showing two progress bars

* Log which files are not formatted in the Type and style check CI

* fmt

* Forgot an import

* autoformat

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-08-17 02:00:59 +00:00
Vítor Vasconcellos
6672c6cffc Remove unused code and update rust deps (#2662)
* Remove deps-generator app
 - It is broken for quite a while and not being used

* Remove unused code and unused deps

* auto format

* Restore incorrectly removed files
 - Remove aws deps and test code using it

* Replace winapi-util with windows-rs
 - Adjust some deps versions

* Autoformat

* Update rand, remove unused dep

* Fix image crate due to changes in pdf-renderer
 - Dont use default features in reqwest
 - Use native-tls tauri

* Remove incorrect notice about blake3
2024-08-15 17:09:03 +00:00
Arnab Chakraborty
139ba6e1a4 [ENG-1854] Migrate to Tauri v2 Release Candidate (#2654)
* Migrate to Tauri v2 Release Canidate

* Formatting

* Update pnpm

* Update all tauri deps (js and rust) to Release Candidate 2
 - A lot of misc fixes due to changes in the new versions of tauri, rspc and specta

* Recreate pnpm-lock

* Fix pnpm-lock

* Formatting

* Use 10 chars SHA for git deps
 - Update a couple of rust dependencies
 - Add taplo for toml auto formatting
 - Adjust some formatting configurations
 - Updated prettier and its plugins

* Fix formatter settings

* Minor improvements to Cargo.toml format

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-08-14 18:22:46 +00:00
Lkhsss
d246154c2d Update Chinese Translations (#2656)
* Update Chinses tanstation

Chinese will be used in different ways in different places.If it's just a translation program or a word-for-word translation, it's going to be very stiff. Call me if you need a translator.<a href="mailto:lkhsss1019@gmail.com">lkhsss1019@gmail.com</a>

1.[fix] `"direction": "方向",`to`"direction": "次序",`
2.[fix]`"ascending": "上升",`to`"ascending": "升序",`
3.[fix]`"item_size": "项目大小"`,to`"item_size": "图标大小",`
.........etc   太多了数不过来了。。。

## I Need Some Help
Please send me a screenshot of where these entries are in the app so I can best translate them!(Better tell me where they are in the app.)
- failed_to_open_file_with
- file_from
- file_one
- file_picker_not_supported
- for_library
- image
- incoming_spacedrop
- indexed_new_files
- indexer_rules_error
- indexer_rules_not_available
- accept_files
- app_crashed_description
- collection
- directories
- directory
- do_the_thing
- dont_have_any
- dotfile
- ends_with
- erase
- erase_a_file
- erase_a_file_description
- file_picker_not_supported
- files_many
- for_library
- gitignore
- hosted_locations
- my_sick_location

* Change some translations...
2024-08-13 11:06:56 +00:00
pr
400d8fb9c8 Dim pure white text & increase keybind text size in keybind list (#2643)
* Dim ink white & increase keybind text size in keybind list

* Update menu ink colour tint

* Update sidebar ink colour tint

* Update app ink colour tint

---------

Co-authored-by: Lynx <141365347+iLynxcat@users.noreply.github.com>
2024-08-02 21:23:00 +00:00
Matthew Yung
73a3b8d0d5 [ENG-1707] Fix bug causing both quick preview and search closing with esc (#2646)
fix bug with quick preview and search closing with esc
Co-authored-by: Lynx <iLynxcat@users.noreply.github.com>
2024-07-31 09:20:11 +00:00
Arnab Chakraborty
47fc7c5c0e Update to vite ^5.2.0 (#2645)
Fixes weird binary issue with esbuild versions clashing across deps.
2024-07-30 16:39:31 +00:00
Vítor Vasconcellos
0a4e527a4a Fix inconsistencies and update project's gitignore (#2642)
* Improve gitignore

* Update pnpm
2024-07-28 11:25:35 +00:00
Matthew Yung
dd3e647dd4 [ENG-1791] Fix right-click sometimes opening native context menu (#2637)
resolve native context menu opening bug
2024-07-26 12:20:12 +00:00
Matthew Yung
75d11b96b1 [ENG-1806] Add zoom shortcuts and pinch to quick preview (#2635)
* added pinch + shortcut support for zoom

* fix tailwind styles

* pnpm autoformat
2024-07-24 09:44:25 +00:00
Artsiom Voitas
3abd1d72e8 Translate Top Bar and new Overview to Russian and Belarusian (#2628)
* translated new overview section and added pluralized kinds

* Updated keys

* updated sorting
2024-07-23 07:42:31 +00:00
Lynx
727345b771 Fix style-check CI job and patch tailwindcss-animate (#2631)
* Remove explicit ref in checkout for type and style check CI job

This was breaking checkouts for PRs from forks

* add tailwindcss-animate patch to remove duplicate utility class

* use new `animate-duration` for animations

* Run fixed `pnpm autoformat`
2024-07-23 06:39:58 +00:00
ameer2468
a4e626ba14 [ENG-1830] Change sidebar toggle shortcut (#2625)
* Change sidebar shortcut to cmd/ctrl + s

* tooltip icon
2024-07-22 14:50:14 +00:00
ameer2468
9ea4a64b4c [ENG-1825] Show thumb image if original is not available (#2617)
* show thumb image if original is not available

* remove space

* formatting
2024-07-19 22:33:07 +00:00
Arnab Chakraborty
135a663e52 Fix specific keybinds (#2616)
* Fix actual event emits

* Hide file menu

* Add duplicate

* comment out menu shortcuts until emission of events are handled

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-07-19 15:08:07 +00:00
Matthew Yung
1982b08c3b [ENG-1827] Update common.json (#2612)
update common.json
2024-07-17 23:38:52 +00:00
Arnab Chakraborty
90a35c5cd3 Hide Sync Tab via Feature Flag (#2611) 2024-07-17 21:47:19 +00:00
Matthew Yung
0bb073e8bb [ENG-1238] Improving job manager feedback and usability (#2607)
* calculate jobs eta

* calculate eta for single + group jobs

* fix issue with clearing running job groups

* clear completed with error tasks

* error handling for ETA

* fix typeerrors and minor styling for ETA

* fix clearing all jobs & types

* Update JobGroup.tsx

* Update JobGroup.tsx

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-07-17 14:41:06 +00:00
Ericson "Fogo" Soares
8147f78a55 [ENG-1793] Introduce error handling for sd-core-sync crate (#2556)
* Error handling for sd-core-sync crate
Also a bunch of tweaks and fixes

* Update core.ts

* Auto format

* Comment out background_processing_percentage on frontend too
 - Update rust version in contributing

* Trying to avoid data loss on actor stop

* Stronger linter on sync generator

* Stronger lint on sync subcrate

* Clean back tasks.json file

* TS typechecking

* Autoformat

* Add more verbose errors for Cloud REST API

* Removing some comments

Copilot is fun sometimes lol

* Properly stopping actors

* Fix ingest stop

* Racing on stop for actors

* Error conversion from merge with main

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
2024-07-16 22:30:35 +00:00
Boxuan Zhang
90e0a51243 Repaired some translation errors in Chinese(Simp) and Chinese(Trad) (#2609)
Repair some translation errors in Chinese(Simp) and Chinese(Trad)
2024-07-16 19:31:52 +00:00
Ericson "Fogo" Soares
a0092fcef3 [ENG-1824] Fix Library Statistics (#2601)
* Done

* Updating storage statistics on volume watcher

* Don't sum up directories sizes for statistics

* storage bar ui changes

* changed storage bar colour gradient

* implemented loading state for statistics

* Fix migration

* Solving crashing and removing sleep

* Properly using useState I guess, not a TS dev

* fixed some ui issues

* Fixing reactivity issue

---------

Co-authored-by: myung03 <matthewyungisworking@gmail.com>
2024-07-16 15:17:53 +00:00
ameer2468
6472b54a69 [ENG-1818] Fix missing caret when a file is selected in pathbar (#2604)
* fix missing caret when a file is selected in pathbar

* formatting
2024-07-12 14:42:57 +00:00
Lynx
b4193b74ab Fix misspelled "vacuum" (#2595) 2024-07-09 19:28:06 +00:00
Lynx
391e18fa59 Use default props for Top Bar icons (#2593)
* Refactor top bar items to use default props

* oops! revert top bar icon size to 18px
2024-07-09 09:59:34 +00:00
Ericson "Fogo" Soares
7bba5eea63 [ENG-1813] Introduce caching for Kind Statistics (#2585)
* Backend done

* Forgot new migration

* track subscription in file kind stats

* Real time updates on both graphs at overview

---------

Co-authored-by: myung03 <matthewyungisworking@gmail.com>
2024-07-07 05:58:00 +00:00
ameer2468
0da620b88b [ENG-1816] Fix explorer rendering (#2589)
* Fix explorer intial render

update dep

Make sure it runs only once

make sure to include loading value in other explorer routes

rewrite condition to prevent loop

* fix style formatting
2024-07-06 00:29:40 +00:00
ameer2468
13e167b318 Revert ENG-1812 (#2586)
* revert

* Update recents.tsx
2024-07-05 08:17:57 +00:00
Vítor Vasconcellos
561462760b Fix autoformat CI & format codebase (#2581)
* Update pnpm version

* Fix autoformat

* Improve autoformat msg

* Attempt to fix autoformat 2

* Fix autoformat

* Ignore deleted files in auto-format

* Fix diff filter

* Autoformat whole codebase

* Improve error message for autoformat CI

* Test autoformat CI

* Revert "Test autoformat CI"

This reverts commit 0bf2f46d1a.
2024-07-04 08:57:43 +00:00
ameer2468
31e710e6a0 [ENG-1812] Fix recents page render (#2579)
Fix recents page render
2024-07-03 16:35:06 +00:00
ameer2468
6db8949172 [ENG-1810] Sync Icons & more (#2578)
* wip - need light mode icons

* wip

* icons for sync and cloud sync
2024-07-02 17:35:18 +00:00