Commit Graph
85 Commits
Author SHA1 Message Date
Sebastian Martinez 67eef6caa7 Query all local repos by getting the local repo count
Instead of falling back to the default of 10 repos, set by
radicle-httpd.
We query the local httpd instance for the amount of repos hosted.
2024-03-13 16:33:30 +01:00
Sebastian Martinez 5b30269c7c Add support for submodules and update heartwood 2024-03-11 19:13:22 +01:00
Sebastian Martinez 9b425e534b Update heartwood version 2024-03-04 16:52:46 +01:00
Thomas Scholtes 7ba9429afb Cache requests for blob and tree objects 2024-02-28 10:59:06 +01:00
Sebastian Martinez 8a3864b19b Update codeLocationSchema with required Oid
We where missing an update for CodeLocation introduced in heartwood
commit 2dea54c6eeb7bf3a177fac77ae04fd4aeadd772d
2024-02-26 15:53:02 +00:00
Rūdolfs Ošiņš 975d1823a2 Show only pinned projects on node view
And style them visually similar to the landing page.
2024-02-22 05:33:36 +00:00
Sebastian Martinez 8450f0cd9c Remove eslint disable ts next line 2024-02-15 09:38:28 -03:00
Sebastian Martinez f0758de9f3 Add reactions to patch revisions
- Also adapts to the new reactions API schema everywhere.
2024-02-02 13:33:07 +01:00
Rūdolfs Ošiņš 65e906fd07 Bump heartwood version
This fixes the landing page not showing local projects anymore.
2024-01-25 11:58:53 +00:00
Sebastian Martinez 9ee2a4578f Add share button 2024-01-24 21:58:18 +01:00
Sebastian Martinez f18b91d669 Update heartwood and schemas 2024-01-19 12:10:37 +01:00
Sebastian Martinez aed8538218 Add embeds to patch descriptions
Also adds an array of edits to a new `edits` field which we can show to
show edits to the patch description
2024-01-15 15:43:23 +00:00
Sebastian Martinez d5c91f707e Add listen property to node schema 2024-01-15 13:16:11 +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 448c762831 Show edited label on edited comments and issues
If a comment or an issue had at least one additional edit, we show a `edited` label,
which on hover shows the standard tooltip with more information on
who edited it and when.
2023-12-15 07:10:14 +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 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 5abd1bf635 Add copied diff with modifications 2023-12-04 20:45:11 +01:00
Sebastian Martinez 0a90ed0345 Fix project api unit tests 2023-12-04 20:14:27 +01:00
Sebastian Martinez 5265a6b245 Display badge for private repos 2023-12-04 11:59:12 +01:00
Thomas Scholtes 8decb6899a Consolidate global setup for all test suites 2023-12-04 10:44:38 +01:00
Sebastian Martinez 95ed1a0353 Adding embed editing in issues and patches 2023-11-28 10:59:55 +01:00
Sebastian Martinez 1167dcfab6 Improves changeset schemas and fix moved diff syntax highlighting 2023-11-28 10:39:32 +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
Sebastian Martinez 64389809ff Remove lastCommit from diffBlobSchema 2023-11-27 20:53:10 +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 e6c560b58b Fix cob commit listing borderline not expanding 2023-11-20 15:12:34 +01:00
Sebastian Martinez 3bdf21ec06 Update dependencies 2023-11-15 12:51:02 +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
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
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
Sebastian Martinez 1ef0f9dfd1 Add issue embeds
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 16:40:49 +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 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 a650c37383 Add alias to session payload
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-16 07:00:08 +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 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 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
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ņš 0146ca00b5 Update the UI to work with the new COB schema
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 10:53:49 +02:00
Sebastian Martinez 14ba807e55 Set the httpd port for the test suite to be 8081.
Also where possible use the `config.seeds.defaultHttpdPort` instead of
hardcoding it.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-17 15:19:31 +02:00
Sebastian Martinez d03f0ae2c0 Add missing tests to project and session routes
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-12 10:58:46 +02:00
Sebastian Martinez 4bf37b6d26 Add support functions for httpd-api tests
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-12 10:58:45 +02:00