Commit Graph
80 Commits
Author SHA1 Message Date
Sebastian Martinez e5dccba3ff Teardown hanging processes in Vitest
After setting up the global env for the httpd:api tests, there were
tests hanging until the timeout of 10 seconds killed them.

By returning an async function from the globalSetup we can kill them
preemptively.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-04 09:56:23 +02:00
Thomas Scholtes c6afc56beb Test that route building and parsing leave routes invariant
We replace the tests for `routeToPath` with a test that calls
`pathToRoute(routeToPath(route))`. These test do not only cover the
assertions of the previous tests but also check an important invariant
for route parsing and building.

I’m not using `test.each` here because this makes the tests less
readable.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-07-03 13:24:00 +02:00
Sebastian Martinez 9f40fd85b7 Sort projects in seed project listing visual test
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-30 10:02:02 +02:00
Sebastian Martinez c04d399cf3 Revert HTML tag escaping
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-30 10:01:14 +02:00
Sebastian Martinez dbad9ddeef Remove hack for happy-dom
The update to happy-dom 8.0 did remove the need to do the assignment
hack in `setupVitest`

source: https://github.com/vitest-dev/vitest/issues/2305#issuecomment-1396387954

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-30 07:24:30 +02:00
Thomas Scholtes 40f2b3e516 Tests automatically use heartwood binaries from local test folder
It’s not necessary anymore to add the folder with the heartwood test
binaries to `PATH` before running the end-to-end tests.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-06-29 11:34:53 +02:00
Rūdolfs Ošiņš 4c101c2567 Move Blob loading into router
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-06-28 17:07:04 +02:00
Sebastian Martinez 742a8eb1ef Add spec for expanding commit message
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-28 15:45:01 +02:00
Sebastian Martinez f971d777f2 Add missing moved and copied file operations to Changeset
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-17 17:50:19 +01:00
Rūdolfs Ošiņš 3f7a58c489 Handle app URL translation into seed BaseUrl in one place
To make the code easier to reason about we handle all app URL encoding
and decoding and the related seed BaseUrl extraction in a single place.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-06-28 10:51:59 +02:00
Sebastian Martinez 0e6be19373 Add patch reviewers in sidebar
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-27 17:23:37 +02:00
Sebastian Martinez 31be78144f Fix padding issues of project headers on mobile
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-27 10:19:56 +02:00
Sebastian Martinez ba57506d6d Update svelte to version 4
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-26 14:13:22 +02:00
Sebastian Martinez ecabe9b7a8 Escape html tags in marked found outside of code blocks
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-26 13:00:20 +02:00
Sebastian Martinez 2c886ea274 Add margin between comment threads in issue view
Adds also a root level comment to the cobFixture to avoid margin
regressions between root level comments

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-19 14:07:43 +02:00
Sebastian Martinez 6fbc453fd4 Update heartwood-version
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-19 13:33:40 +02:00
Sebastian Martinez 4df9810088 Rename hostnamePort to hostAndPort
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-14 16:19:05 +02:00
Sebastian Martinez 52cece4680 Handle custom httpd port
We only supported fetching the default httpd port (8080).
This commit removes navigation to `radicle.local` which represents
`0.0.0.0:8080`, and prepares the app for defining custom port.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-14 16:17:21 +02:00
Sebastian Martinez 4fcb7373a3 Add more tests to revision selector
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-14 09:21:09 +02:00
Rūdolfs OšiņšandThomas Scholtes a331721c9f Move project source browsing loading into the router
Co-authored-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-06-13 14:24:27 +02:00
Sebastian Martinez 107696c3c9 Add a cobs fixture and issue and patch tests
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-08 11:13:28 +02:00
Rūdolfs Ošiņš 28ea7724d3 Fix build
I broke it in https://github.com/radicle-dev/radicle-interface/pull/804.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-06-06 10:07:50 +02:00
Sebastian Martinez 889b13303b Extract markdown from source-browsing fixture
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-05 15:08:32 +02:00
xphoniex c3346575ee Show number of nodes tracking a repo
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
2023-06-02 13:11:27 +00:00
Sebastian Martinez 2c11e9e520 Display a seed URL that matches isLocal as radicle.local
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-02 10:29:41 +02:00
Sebastian MartinezandRūdolfs Ošiņš c230731ce0 Redesign Connect button to reflect httpd status
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-06-01 14:49:22 +02:00
Sebastian Martinez 99f27350c1 Fix out-of-state commit listing when refreshing page after push
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-01 10:09:12 +02:00
Sebastian Martinez 277c8d23fd Add peerManager to e2e tests fixture
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-06-01 10:03:36 +02:00
Rūdolfs Ošiņš 17a8696c34 Update dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-05-31 15:03:03 +02:00
Sebastian Martinez d5d665f070 Reduce e2e tests flakiness
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-23 10:56:47 +02:00
Sebastian Martinez bb9ea851fc Use Raw button to navigate to raw file
For toggling Markdown view, we add a button that either shows `Plain` or
`Markdown`.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-17 12:15:29 +02:00
Rūdolfs Ošiņš e41a12d663 Separate global project header from source browsing header
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-05-15 17:07:48 +02:00
Sebastian Martinez ab139cea8d Add more sleep to branch creations
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-15 12:17:37 +02:00
Sebastian Martinez c32b303744 Add CLI tooling to create seed fixtures on the fly
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-12 14:23:10 +02:00
Rūdolfs Ošiņš b997b12353 Implement data loading in router
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-05-11 10:51:35 +02:00
Rūdolfs Ošiņš 85dc1c3552 Port mutexExecutor from Upstream
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-05-11 10:50:26 +02:00
Sebastian Martinez d8d049518b Improve patch timeline and add description
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-05-10 09:15:19 +02:00
Rūdolfs Ošiņš 1f09d8a2a8 Allow opening links in a new tab
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-27 15:54:53 +02:00
Rūdolfs Ošiņš 9704318248 Refactor seed view
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-20 14:41:19 +02:00
Rūdolfs Ošiņš d80c46e085 Rename the search bar placeholder
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-20 08:36:16 +02:00
Rūdolfs Ošiņš 069b0949d5 Enable the @typescript-eslint/no-floating-promises rule
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-12 15:05:05 +02:00
Rūdolfs Ošiņš 2d58c600ad Don't show port in clone URL if it is the default port
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-12 10:02:04 +02:00
Rūdolfs Ošiņš 6efe60984b Update logo and favicon
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-12 08:22:28 +02:00
Rūdolfs Ošiņš c8c251fabd Add httpd-client api library
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-11 15:31:08 +02:00
Rūdolfs Ošiņš 9e1fc49ae7 Fix mixed content warning when connecting to local node
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-04-05 13:49:52 +02:00
Sebastian Martinez a168a4d126 Pluralize values instead of parenthesis
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-04-03 14:10:47 +02:00
Sebastian Martinez 4c3bd7ee04 Fix statically replaced HASH_ROUTING env variables
Also moves the HASH_ROUTING env variable from being modified inside the
hashRouter.spec.ts into the webserver config in the
playwright.config.ipfs.ts

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-04-03 11:50:24 +02:00
Sebastian Martinez 5549be9c1d Add issue commenting and edit metadata
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-03-17 14:20:12 +01:00
Sebastian Martinez 09ceeed136 Add /raw route for getting images
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-03-14 11:13:15 +01:00
Sebastian Martinez 3ea6a07dc4 Update seed fixture to latest heartwood commit
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-03-14 11:13:15 +01:00