Commit Graph
193 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš 08d16dbbeb Implement two column layout 2024-01-02 11:48:19 +00:00
Sebastian Martinez 56eefb86fa Check that the rad binary used is the same as added to PATH
We weren't checking that the binary that we want to use for the test
suite, is the one we end up using.
2023-12-22 12:52:21 +00:00
Sebastian Martinez 4912d85198 Add editing of revisions 2023-12-21 20:35:11 +01:00
Sebastian Martinez ecba243526 Remove process.exit in killAllProcesses 2023-12-21 14:48:09 +00:00
Sebastian Martinez 851a444b5d Fix failing e2e tests
We had e2e tests failing for the new Assignee and LabelInput components,
and due to the changes to the SeedButton.
2023-12-21 14:25:15 +01:00
Sebastian Martinez a9eefd1645 Fix authenticatedPeer fixture 2023-12-21 12:47:23 +00:00
Sebastian Martinez 8152cda2ac Allow track and untrack of a project through the TrackButton
- Add support for checking the tracking table from `radicle-httpd` to
  get a more precise information if the project is being tracked by the
  local node.
- If a user isn't authenticated with their local httpd instance, we
  still show the Popover to explain how to do it on the CLI
2023-12-19 16:47:08 +01:00
Thomas Scholtes 2b03aec645 Implement simplified authentication flow
We change the instructions to connect to a local node to use the
simplified authentication flow.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-12-19 13:49:53 +00:00
Sebastian Martinez 24628f57d8 Improve handling missing files and README 2023-12-12 10:41:27 +01:00
Thomas Scholtes 922b8edd73 tests: Add PeerManager#shutdown to ensure cleanup during tests
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-12-11 12:13:51 +01:00
Thomas Scholtes 77843c2955 Properly name radSeed value
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-12-11 12:13:51 +01:00
Thomas Scholtes 7d61539d95 Renaming confusing method startPeer to createPeer
The name was confusing because the function does not actually start any
services.
2023-12-11 12:13:51 +01:00
Sebastian Martinez 3b16632e3d Remove willow.radicle.garden from httpd-api router unit tests 2023-12-07 13:27:11 +01:00
Sebastian Martinez bac15bfdc7 Rename tracking to seeding
Following the heartwood release 6ca7da2 we also rename tracking
to seeding, and update our `radicle-httpd` endpoints and configs.

Also updates test suites to handle new CLI commands.
2023-12-07 09:45:06 +01:00
Sebastian Martinez 0ab1d1ba41 Replace exit-hook with custom event listeners
Instead of relying on the `exit-hook` dependency, we should listen to
`exit`, `SIGINT`, `SIGTERM` and other exceptions, and kill all running
processes.
2023-12-04 20:14:27 +01:00
Sebastian Martinez e080883059 Add private project visual tests 2023-12-04 11:59:12 +01:00
Sebastian Martinez 3c72bfad48 Update createProject test support function
To pass in more specific props, it's nicer to have it as an opts object.
2023-12-04 11:59:12 +01:00
Thomas Scholtes 3717a18fc8 Consolidate duplicate code to start global HTTP API server 2023-12-04 10:44:58 +01:00
Thomas Scholtes fe39475403 Update heartwood 2023-12-04 10:44:37 +01:00
Sebastian Martinez 095b99fcec Fix issue text horizonal overflow 2023-12-01 12:28:27 +01:00
Rūdolfs Ošiņš 4160723ce8 Update color tokens to the latest version 2023-11-28 15:58:10 +01:00
Sebastian Martinez 95ed1a0353 Adding embed editing in issues and patches 2023-11-28 10:59:55 +01:00
Sebastian Martinez 575f44e434 Unify lodash imports
We currently use all three ways of importing lodash.
The one that provides us with the smalles bundle size is.

```
import isEqual from "lodash/isEqual";
```

So we should use that everywhere
2023-11-28 09:25:13 +01:00
Thomas Scholtes 999adff9c1 Ensure correct order when setting up fixtures
When setting up the global fixtures we need to ensure that the peers
that create changes sync their changes to the seed (palm). The only
thing necessary is for the peer to discover palm as the seed for the
project. Then `git push rad --all` will sync all changes to palm.

It’s not necessary to listen for any other event and we remove the
corresponding calls to `waitForEvent` or `waitForRoutes`.

In fact, these calls never did anything besides sleep since the
implementation of `waitForEvent` was faulty. We fix that, too.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-25 06:40:30 +01:00
Thomas Scholtes 456a4287fd Always timeout when waiting for services
We want the tests to fail when one of the services fails to start or
stop.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-25 06:40:30 +01:00
Thomas Scholtes 72fd099ecd Stop confirming removal of test tmp files
We stop asking for confirmation to remove the folders containing the
static generated fixtures. All the data is programatically generated so
it’s not a big deal if it is lost. In any case the data is retained
after a test run and only deleted before the next test run.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 16:47:14 +01:00
Sebastian Martinez b8408db4f1 Improve the Branch Selector
We now also let people select branches if they only have one branch.
Renamed also some variables to make it clearer what they represent.
2023-11-23 09:57:35 +01:00
Thomas Scholtes b979862b08 Reuse log prefix colors if we run out
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes c568757675 tests: Improve peer manager logging
* The log prefix now includes the command name in addition to the peer
  name. This allows us to distinguish `radicle-node` and `radicle-httpd`
  logs as well as the output of commands.
* We also log prettify the JSON event log so it is easier to debug.
* Don’t log ouput of `waitForRoutes`

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes de64d7c151 Use more descriptive name for making log prefixes
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:37:13 +01:00
Thomas Scholtes 72352835eb Update heartwood version
The update resulted in changes to all issue and patch IDs. We adapt the
tests so that they do not rely on fixed IDs.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-23 09:21:37 +01:00
Sebastian Martinez 2f013df4e1 Refactor CobHeader 2023-11-21 15:15:27 +01:00
Rūdolfs Ošiņš ad84bc9f30 Add breadcrumbs to header 2023-11-21 13:57:25 +01:00
Sebastian Martinez e6c560b58b Fix cob commit listing borderline not expanding 2023-11-20 15:12:34 +01:00
Sebastian Martinez 181fcc15af Fix e2e change theme test 2023-11-17 11:54:33 +01:00
Sebastian Martinez b331f446ee Remove not allowed cursor from Contributors and BranchSelector
Adds also HoverPopover tooltips, with some hints
2023-11-17 10:19:57 +01:00
Sebastian Martinez 0f8bd0d1dc Fix flakiness in comment and reply e2e test 2023-11-15 16:21:47 +01:00
Sebastian Martinez 84addf467d Show node state indicator 2023-11-15 16:21:47 +01:00
Sebastian Martinez 56c87787ed Add e2e tests for editing patches, issues, comments, labels and assignees 2023-11-15 09:32:12 +01:00
Sebastian Martinez 5742f15e28 Refactor Issue actions and related components 2023-11-15 09:32:10 +01:00
Sebastian MartinezandRūdolfs Ošiņš 1add6958cb Add externalNodes to node detail view
Instead of showing the node id with a clipboard that copies a possible
wrong port number, this commit adds the externalAddresses config to the
node detail view, so node operators can define which externalAddresses
should show up.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-11-06 14:34:18 +01:00
Sebastian MartinezandRūdolfs Ošiņš 38fbddeb21 Update test suite to latest heartwood
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-11-03 15:34:16 +01:00
Rūdolfs Ošiņš afe82a79b5 Fix specs
This regression was introduced in
db2c744e45.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-31 10:48:37 +01:00
Sebastian Martinez 5e5f7fc12f Add editing to issue/patch descriptions, comments and replies
Also does some refactoring for `action`, `editable` and other variables
we were using which weren't very clear

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 16:27:54 +02:00
Sebastian Martinez 809daadd04 Remove search functionality
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 13:22:01 +02:00
Rūdolfs Ošiņš 16a1821fff Update Track button copy
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-26 10:09:22 +02:00
Rūdolfs Ošiņš 6f4f7894a3 Implement sticky file headers
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-20 09:34:55 +02:00
Sebastian Martinez 580ccbcf1a Invert markdown plain buttons in Blob component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-16 11:17:13 +02:00
Rūdolfs Ošiņšanddnlklmn d914710396 Implement new design
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-13 18:05:19 +02:00
Sebastian Martinez 288f55da76 Add syntax highlighting to patch and commit changesets
- This commit doesn't change the way syntax highlighting is done.
- But due to changes in `radicle-httpd` we can highlight the entire
  files of a changeset, and then replace the plain text lines with
  highlighted ones.
- Also highlights only the files currently visible of a changeset.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-05 13:55:00 +02:00