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>
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>
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>
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>
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>
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>
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>
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>
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>