Commit graph

2875 commits

Author SHA1 Message Date
Arnab Chakraborty a4a1f1b40a
Add Warning for SD Docker Container (#2256)
* Update setup.mdx

* Update items.ts

* Update items.ts
2024-03-28 04:52:36 +00:00
nikec 2f5271e453
[ENG-1215] List view size customisation (#2254)
* base

* calculate line height on demand

* fix max update

* fix max update on resize

* read types directly

* sizing

* better size handling

* also handle text box padding on demand
2024-03-27 15:15:07 +00:00
nikec b776e4c55c
[ENG-1696] Fix Asian characters text wrapping (#2253)
no wrap
2024-03-27 10:27:23 +00:00
Brendan Allan 902ed24ffd
[ENG-1674] fix request drop test and add write_ops test (#2252)
fix request drop test and add write_ops test
2024-03-27 06:40:57 +00:00
Arnab Chakraborty b69733ffd9
Update Hover Text on Landing Page (#2251)
Update page.tsx
2024-03-27 05:51:40 +00:00
Arnab Chakraborty f190dd3ff0
Copy button for code blocks (#2248)
* feat: Copy button for code blocks

Just a basic copy button in the code blocks so users can copy commands more easily. Inspired by Github's copy button.

* feat: Add Info for Image Cycler

A small little tooltip type text letting the user know that the image on the main page can be cycled through when hovered on.

* fix: Spelling mistake lol

* fix: Make button bigger so it looks centered

Make it look centered on one line big code blocks.

* fix: Tailwind Linting
2024-03-27 04:39:02 +00:00
Utku 83332dc94e
Alpha 0.2.8 (#2247)
alpha 0.2.8
2024-03-26 21:55:44 +00:00
Utku 9a1cdf1dca
Fix all the weird eslint warnings (#2245)
* actually fix the weird lint errors

* Prettier auto-format

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-03-26 20:46:44 +00:00
Utku 6277c8cb5f
Command Palette (#2228)
* bring it back

* move into folder

* fix shortcuts colliding

* tags

* fix key capture problems

* add 2 more actions + locations to cmd

* fix search navigation issue W @nikec

* fix saerch input

* improve scrollbar look and text on lightheme + fix edge view search showing

* useShortcut

* add cmdp to keybinds page

* killer i18n extension for vscode

* some missing keys and localized cmdk

* in lists that can change - it's better to use the id rather than index to avoid extra re-renders

* Update CMDKLocations.tsx

---------

Co-authored-by: ameer2468 <33054370+ameer2468@users.noreply.github.com>
2024-03-26 13:05:46 +00:00
Brendan Allan 94ca18925d
[ENG-1691] Sync status subscription (#2246)
* sync status subscription

* clippy
2024-03-26 07:26:37 +00:00
Vítor Vasconcellos 51acd0fd8e
Make mobile tests more resilient (#2236)
* Attempt at making mobile tests more resilient

* Forgot shell property

* Remove debug flag from run-maestro-tests.sh

* Fix kill command

* Improve device emulator launch code
 - Remove maestro version lock (expo is not using it anymore on their repo)
 - Use some of the same command expo uses to ensure device emulator launched

* ...

* ...

* Make grep timeout less strict

* Increase timeouts

* Downgrade macOS and Xcode

Following Expo changes:
cb7c90dac4
2024-03-25 19:42:37 +00:00
ameer2468 b34359e688
Alpha 0.2.7 (#2244)
* Alpha 0.2.7

* Update Cargo.lock
2024-03-25 19:42:01 +00:00
ameer2468 204c876689
[ENG-1693] Prevent default webview search (#2241)
* prevent default webview search

* Update index.tsx
2024-03-25 15:26:03 +00:00
ameer2468 5c3f15932b
Remove: video intro (#2240)
Update Layout.tsx
2024-03-24 12:57:08 +00:00
Julian Braha ff4d0cc519
Make quic field of P2PManager private (#2234)
Make P2PManager.quic private
2024-03-24 03:45:12 +00:00
Utku d52b720a12
fix language select (#2238) 2024-03-23 23:30:26 +00:00
Arnab Chakraborty 1baa5966d7
Remove the .unwrap() from the mobile core (#2237)
So, `.unwrap()` can cause issues when the core dies by throwing a panic. So, by moving to a `match` instead, we can stop the panic from occurring.
2024-03-23 21:33:57 +00:00
Vítor Vasconcellos e5b57aa0ea
New test: Add location (#2222)
* New test: Add location
 - Add script to download some test files to allows tests to have a stable path for creating locations
 - Improve onboarding test
 - Add custom Cypress commands for fastOnboarding and deleteLibrary
 - Add some documentation related to tests to CONTRIBUTING.md
 - Update some deps

* Download small test-data for Cypress CI

* Replace globstar with find to make it compatible with bash 3.x

* Fix react too many re-renders
 - add-location test should now pass successfully

* Make job model task text match less flaky

* Check if we were redirected to onboarding after Library was deleted
 - Check if sidebar entry was created after adding a location
 - Put route regex's into a separate file
 - Make onboarding test ensure that no Library exists before running

* Enable test retries
 - Log cypress default config during test run

* Run tests under webkit
 - Pass CI envvar to tests to ensure correct cypress config

* Attempt fix CI config again

* Remove single use checkUrlIsLibrary function
2024-03-23 21:24:16 +00:00
Utku 904f210fc1
Alpha 0.2.6 (#2232)
* bump 0.2.6

* Double Cypress timeouts when running on CI

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
2024-03-23 01:27:11 +00:00
ameer2468 e148028e2f
[MOB-75] New screens, design fixes, and more (#2229)
* WIP: categories screen, design updates, and more

* redesigned import modal, android ui fixes, and more

* more ui fixes and improvements

* more ui tweaks and updates

* change color

* pnpm-lock

* Update LocationSettings.tsx

* Update BrowseTags.tsx

* eslint

* Update pnpm-lock.yaml

* Update pnpm-lock.yaml

* Update BrowseTags.tsx
2024-03-22 14:12:30 +00:00
Brendan Allan d99b65f385
upsert sync timestamp rather than overwrite (#2230)
* upsert sync timestamp rather than overwrite

* rename create_instance to upsert_instance

* bruh

* bruh
2024-03-22 06:33:35 +00:00
Brendan Allan 697dc50ea2
fix topbar hmr (#2231) 2024-03-22 06:29:14 +00:00
Oscar Beaumont f2477d47d9
Remove IdentityOrRemoteIdentity (#2220)
* wip

* wip

* fix migrations

* fix

* Fix Prisma migrations + fire new app migration

---------

Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2024-03-22 01:18:50 +00:00
Oscar Beaumont 91b350bd25
Update npmrc (#2227)
update npmrc
2024-03-21 15:37:43 +00:00
Jamie Pine a9f464345a
Fix window not opening (#2224)
the fix
2024-03-20 07:07:20 +00:00
Vítor Vasconcellos 08c42a36fe
[ENG-1624] E2E Tests (#2192)
* Basic cypress test

* Add e2e test command

* Add full e2e test for creating and deleting a library

* Add cypress to CI

* Fix cypress CI
 - Use arm macos for running cypress
 - Setup rust on cypress job
 - Increase cypress CI timeout

* Remove unused APPLE_SIGNING_IDENTITY envvar

* Update deps again + Try to fix Cypress CI setup

* Update deps again

* Only test default location if it exists

* Use latest v18 NodeJS in CI

* Increase minimum node version due to updated dependency
 - @typescript-eslint/eslint-plugin now requires node >=18.18

* Fix testing failing for optional default locations

* Enable video recording
 - Fix screenshot and video artifact uploading

* Fix location test
 - Use correct location name, instead of trying to derive it from the internal id
2024-03-19 20:22:17 +00:00
Vítor Vasconcellos 16354b0f72
Fix a couple of tests after #2218 (#2219)
- Fix some rust warnings
2024-03-19 02:23:42 +00:00
Lynx 1acf90e8cf
Hide .spacedrive file on Windows (#2216)
* Hide `.spacedrive` file on Windows

* Use hard-coded hidden file attribute

* Remove winapi crate

* fix: use `?` operator instead of `unwrap`

---------

Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2024-03-18 12:28:54 +00:00
Brendan Allan 3afc3bd34f
fix cloud sync and operations (#2218)
* fix cloud sync and operations

* remove some logs

* cleanup
2024-03-18 08:51:16 +00:00
Oscar Beaumont edffe46536
Fix node rename with P2P (#2217)
ezy clap
2024-03-18 08:27:39 +00:00
Jamie Pine a13a0545ed
Roadmap updates (#2209)
* roadmap updates

* moved target

* Update setup.mdx

* Update setup.mdx

Add Notice about possible Docker Warning that Spacedrive Server runs the best on Linux/amd64.

Also added a warning that mobile is not ready for public beta testing yet.

* fix setup

* docs: add note about appimage log viewing

* docs: add URL to github issues regarding bug reporting

---------

Co-authored-by: Utku <74243531+utkubakir@users.noreply.github.com>
Co-authored-by: Arnab Chakraborty <11457760+Rocky43007@users.noreply.github.com>
Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2024-03-16 01:34:11 +00:00
ameer2468 52d7c572be
[MOB-66] Black theme & more (#2213)
* wip, black theme and updates

* wip

* More tweaks and adjustments

* eslint

* Move some components into their own file

* lint interface onboarding

* remove mobile obj and move into app

* remove navback prop since native stack does it
2024-03-16 00:56:34 +00:00
Utku 57edc36772
Use native navigator on mobile (#2214)
* native

* types
2024-03-15 23:33:14 +00:00
Oscar Beaumont 7fe77c9f0e
Serve remote files over p2p (#2211)
should work?
2024-03-15 06:48:57 +00:00
Arnab Chakraborty 4768fddef4
Working Location-Watcher system for Android app (#2212)
* Update android.rs

* Clean up

* import `debug`

* `cargo fmt`
2024-03-15 05:38:32 +00:00
nikec ae4e65de93
[ENG-1685] Fix 'ExplorerContext.Provider not found!' (#2210)
fix context
2024-03-14 12:07:58 +00:00
Oscar Beaumont 7dc0880f8b
P2P Metadata Cache + Sidebar (#2208)
* wip

* wip

* Render peers in sidebar

* clippy

* stringify on server

* don't stringify

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2024-03-14 09:12:29 +00:00
Jamie Pine 747cf02bbb
.spacedrive fail silent fix (#2206)
fix
2024-03-14 04:38:41 +00:00
Oscar Beaumont 27c6570c2f
Rename P2P crate (#2207)
`sd_p2p2` to `sd_p2p`
2024-03-14 04:38:31 +00:00
Jamie Pine aa789199ef
Landing updates (#2205)
* team page mods

* remove bloom, always hated it on this screen

* fix matthew url

* add arnab
2024-03-14 00:39:46 +00:00
Brendan Allan 6a2e5bc857
add message request drop test (#2201)
* Fix sync tests

* fix build

* add message request drop test

* fix: clippy

---------

Co-authored-by: jake <77554505+brxken128@users.noreply.github.com>
2024-03-13 22:16:51 +00:00
ameer2468 1fd217c9af
[ENG-1679] Video intro fix & darker color (#2204)
* Fix bg

test vid update

fix vid fragments

fix intro

black mobile intro

lint

* update vid

* pascal case

* file glitch

* files

* Update GetStarted.tsx
2024-03-13 21:50:21 +00:00
Utku 4fc8dcfb48
[MOB-69] Infinite scroll & explorer query hooks (#2197)
* run sim before everything

* move passwordmeter

* annoying maestro

* remove bad extension from recom

* move explorer query logic to @sd/client

* update mobile packages

* working explorer

* search with the new query

* tag explorer

* revert maestro version bump
2024-03-13 20:53:00 +00:00
ameer2468 72451a07bc
[ENG-1683] Prevent mouse-side buttons from drag selection (#2203)
* Update index.tsx

* Add coming soon toast for add device button
2024-03-13 16:15:39 +00:00
Oscar Beaumont 2ca88a5d6b
Refactor P2P Hooks (#2193)
* Basic AF server

* wip

* Add autonat to relay server

* Add autonat client + fixes

* Deploy script

* wip

* Debug view

* wip

* wip

* relay all events

* wip

* fix

* wip

* libp2p man spoke

* dctur

* Relay config file

* Advertise relay server

* Dynamic relay configuration

* wip

* p2p relay config

* cleanup

* push instances into p2p state

* fix

* Fix up TS

* refactor p2p hooks

* fix backend state

* Skip self

* a

* b

* Relay config in debug query

* Fix method name

* tsc is broken on my machine

* a

* Incorrect typecasts. Can we just ban them

* fix types
2024-03-13 06:43:22 +00:00
Brendan Allan 79530f1e4e
Fix sync tests (#2194)
* Fix sync tests

* fix build
2024-03-13 05:34:14 +00:00
jake a0d1061017
[ENG-1682] Update team page (#2199)
* feat(team-image): add image for jake

* docs(team): alter descriptions for utku and jake
2024-03-13 01:23:54 +00:00
Utku d60789e588
Make eslint happy (#2198)
* eslint maxing

* @sd/ui too
2024-03-12 20:41:41 +00:00
ameer2468 4b74c0af04
[ENG-1680] Show error messages for feedback form (#2196)
Update FeedbackButton.tsx
2024-03-12 13:17:29 +00:00
jake 471db4a691
Clippy the entire repo (#2195)
* fix(clippy): for the entire repo

* fix: make function non-const fn
2024-03-12 11:27:23 +00:00