Commit Graph
1341 Commits
Author SHA1 Message Date
Sebastian Martinez aa2ce409fb Update GitHub CI
Due to us moving to Radicle, we need to implement the following changes.

- We don't need the CI to run on pull_requests anymore.
- We want the CI to run on any push.
- For visual tests we don't want to update any comments and just fail
  the test and upload the artifacts for checking.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-02 11:23:09 +02:00
Sebastian Martinez bea8af8497 Update marked-katex-extension
This fixes the issue with rendering code blocks without a blank line
between text and the start of a codeblock that starts with a `$`

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-28 08:57:19 +02:00
Sebastian Martinez ed5a0b382b Update heartwood
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 16:40:49 +02:00
Sebastian Martinez 1ef0f9dfd1 Add issue embeds
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 16:40:49 +02:00
Sebastian Martinez 2864a0311b Removing the Safari requirement
Due to marked-katex not using negative look behind regex anymore.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 07:56:26 +02:00
Sebastian Martinez 9f68848bc0 Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 07:56:26 +02:00
Sebastian Martinez 6e17d98d96 Reduce test flakiness on global hotkeys
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-26 09:43:09 +02:00
Sebastian Martinez bd6ba784b3 Improve binary detection
libgit2 optimizes around not loading the content, when there's no
content callbacks configured.

So we aren't able to get a clear answer from radicle-surf if a file in a
diff is a binary or not.

A simple way without doing additional API requests is to check if the
file type is a executable and if there are no hunks (since we don't get
any deltas in binaries), this is a strong
indicator for a binary.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-26 09:04:01 +02:00
Sebastian Martinez 9b15911f83 Use lastCommit of each blob for navigation instead of patch revision
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-25 10:07:14 +02:00
Sebastian Martinez fb06b5fe8b Add moved and copied files e2e tests
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:50:27 +02:00
Alice Liddell 1b01216bf8 Improve FileDiff and add tests
Signed-off-by: Alice Liddell <alice@radicle.xyz>
2023-09-19 07:49:36 +02:00
Sebastian Martinez ee9cb2b0d7 Clean up some unnecessary types
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:49:36 +02:00
Sebastian Martinez 217d8b2dd4 Add base diffChangeset schema and extend for other schemas
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:49:36 +02:00
Sebastian Martinez 00905afea4 Add DiffContent type to @httpd-client
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:49:36 +02:00
Sebastian Martinez ca6762fc95 Refactor commit and diff types, updates outdated diff types
- Adds support for modified moved files see https://github.com/radicle-dev/radicle-git/pull/141

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:49:36 +02:00
Sebastian Martinez afab097d09 Delay global hotkeys tiping speed to imitate real user
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:45:40 +02:00
Sebastian Martinez 1a7c28b6ea Split going through UI patch flow into separate tests
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:45:40 +02:00
Sebastian Martinez 800a9767d6 Update heartwood version
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-18 23:38:13 +02:00
Sebastian Martinez a650c37383 Add alias to session payload
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-16 07:00:08 +02:00
Sebastian Martinez c92e593a16 Fix vite reloading during e2e tests
The issue seems to have been linked to the fact that we triggers incorrect refresh
through fsEvents. Even tough there are no changes on the local file system,
it requests full reload after 1-2 min.

Disabling fsEvents in the vite.config.ts prevents this to happen and per extension,
avoid the problem.

source: https://stackoverflow.com/a/75238360

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-13 15:15:44 +02:00
Sebastian Martinez 127c1d228d Add requirement section for version of Safari and Node
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-08 09:42:16 +02:00
Sebastian Martinez 45830f6cd9 Show local projects instead of network to landing page, if available
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-04 12:06:03 +02:00
Sebastian Martinez 542630a7f7 Add patch comment and state modifiers
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-30 17:05:25 +02:00
Sebastian Martinez aec0289f10 Refactor some of the reaction components
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 13:52:57 +02:00
Sebastian Martinez 26447b3c59 Switch edit title button with icons
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 13:34:57 +02:00
Rūdolfs Ošiņš 3bd13196d9 Add icons to browser file tree
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-28 12:03:19 +02:00
Sebastian Martinez ea1f23c4a2 Add test to check that issue counter updates when closing issue
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 09:18:07 +02:00
Rūdolfs Ošiņš 6e049197ef Remove apple-touch-icon from index.html
Firefox uses it as favicon by mistake, this icon has a black background
and is only intended for apple homescreen. It should be enough to just
have the filename for apple devices.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-24 17:54:23 +02:00
Rūdolfs Ošiņš 34b2f569c1 Improve node error handling
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-24 09:42:17 +02:00
Sebastian Martinez 1efeb41667 Add face Icon
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-24 09:23:36 +02:00
Sebastian Martinez def558033c Add ability to install local binaries
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-24 09:23:36 +02:00
Sebastian Martinez 7edd6dcdf0 Enable adding and removing reactions
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-24 09:23:36 +02:00
Rūdolfs Ošiņš 3eecaeda29 Use proper issue icon for issues
The exclamation mark looked too much like a warning or error.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-23 15:09:20 +02:00
Sebastian Martinez b079b7f51a Update node version to 18.17.1
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-23 14:33:30 +02:00
Sebastian Martinez 08683dc9e9 Update deps
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-23 10:07:15 +02:00
Sebastian Martinez 289cf24800 Update heartwood-version
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-22 09:54:41 +02:00
Sebastian Martinez cccee12477 Add a NodeConfigurator class, to modify a config.json
Since Heartwood is removing some of the radicle-node options we were
relying on when starting nodes for our tests, we need to move those to
the `config.json` file.

To make it more DX friendly, I added a `NodeConfigurator` class which
reads the correspondig `config.json`, stores it and allows to configure
it before starting a node.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-22 09:54:34 +02:00
Sebastian Martinez 3dd590d8e6 Add key to each loop in project listing
Without a key we started to get an erratic behavior when adding more
projects and then sorting them.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-17 13:14:52 +02:00
Sebastian Martinez 2c81228db6 Sort node projects by HEAD commit time
Instead of going with project activity which is being stripped
everything that is older than one year, we should look at the current
project head time.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-17 11:29:19 +02:00
Rūdolfs Ošiņš 0c0842e6f3 Fix project sorting on node page when there is no activity data
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-16 12:55:39 +02:00
Rūdolfs Ošiņš 492ff5b07c Properly handle event streams with readline
The stream would otherwise split longer events into multiple chunks
which would fail to parse.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-16 09:41:43 +02:00
Rūdolfs Ošiņš 5736083d50 Fix not found and loading error screens
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-16 09:35:44 +02:00
Rūdolfs Ošiņš 0e33915e9a Fix visual tests
This was failing on master, so the visual spec cache didn't get updated.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-15 14:05:53 +02:00
Sebastian Martinez 18a5d40b0a Modify network property in config.json to test
To avoid the test nodes to try to connect to the main network,
we need to modify the `config.json` of each node to use the `test`
network

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-15 13:25:42 +02:00
Sebastian Martinez 6a1137a024 Add parents property to CommitHeader type
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-14 11:33:00 +02:00
Rūdolfs Ošiņš fa89d75b1f Pin radicle-homepage and radicle-tui to the landing page
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-09 15:30:20 +02:00
Rūdolfs Ošiņš c2031933b3 Update dependencies
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-09 11:09:18 +02:00
Rūdolfs Ošiņš a3325b70c4 Simplify layout CSS
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00
Rūdolfs Ošiņš 449ed1d79b Simplify project header props
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00
Rūdolfs Ošiņš fc87a8822a Get rid of ProjectMeta component by moving it into Layout
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00