Commit Graph
1374 Commits
Author SHA1 Message Date
Sebastian Martinez bc64e90d7f Display which revision was merged in patches 2023-11-07 17:15:05 +01:00
Sebastian Martinez a3a7f09181 Patch icon in revision timeline reflects patch state color 2023-11-07 13:04:10 +01:00
Sebastian Martinez 79b1e9c9f8 Add clipboard button to code blocks
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-11-06 18:38:11 +01:00
Sebastian Martinez 905b933e4a Remove last line in commits list
Introduces a new CobCommitListing component that displays all the
commits of a Revision.
Is needed to have different border heights on the left.
2023-11-06 18:23:34 +01:00
Sebastian Martinez 8d67698575 Reduce requests on label and assignee changes
Instead of sending a request for each label and assignee change on a
existing issue or patch, we should just do that for the new form,
where we wait for the confirmation for the final creation of the issue or patch.
2023-11-06 18:16:19 +01:00
Sebastian Martinez 8e8c6981d9 Hide edit button in issues when not authenticated
Also adds a word-break to issue descriptions so we avoid overflows
2023-11-06 15:07:27 +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ņš ca70f91d2b Drop the DCO sign-off requirement
As discussed here: https://radicle.zulipchat.com/#narrow/stream/369277-heartwood/topic/Missing.20sign-offs
2023-11-01 14:38:41 +01:00
Rūdolfs Ošiņš 834320af79 Update radicle-team repository ID
It changed after the migration.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-11-01 14:35:49 +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
Rūdolfs Ošiņš db2c744e45 Reduce blue color usage in menu buttons buttons
This makes the interface overall more legible.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 14:41:23 +01:00
Rūdolfs Ošiņš 98568fd2ff Improve collapse/expand button visuals
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 13:49:36 +01:00
Rūdolfs Ošiņš 4bdbe7ff8b Fixes sticky file header being on top of popovers
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 11:58:20 +01:00
Sebastian Martinez c630d8650c Improve expand/collapse all files button functionality
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-30 11:45:31 +01:00
Sebastian Martinez c00c879d0c Expand and collapse all files in a changeset quickly
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-27 15:53:47 +02:00
Rūdolfs Ošiņš ab88f31eef Improve attachment interactions on textareas
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-26 18:17:52 +02:00
Sebastian Martinez c1740beb12 Add embeds to patches
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 16:58:14 +02: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ņš 9530af9ada Fix revision expand button initial state
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-26 16:11:32 +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ņš cdf62f2883 Add track button to project header
This replaces the "Nodes <counter>" tab in the project view.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-24 12:16:12 +02:00
Rūdolfs Ošiņš 94c15a2719 Fix revision dropdown alignment issue
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-23 11:36:07 +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
Rūdolfs Ošiņš 77b49dcb60 Auto-resize textarea height on user input
We want the textarea to grow when a user writes longer text. This also
fixes the `resizable` property, which when `true` allows the user to
resize the textarea with their mouse.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-18 11:36:16 +02:00
Rūdolfs Ošiņš 5beab80fb8 Direct new contributors to Radicle
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-16 17:48:46 +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 c5c609167e Update deps
Updates transitive dependencies

Fixes zod vulnerability
> Zod version 3.22.2 allows an attacker to perform a denial of service while validating emails.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-12 09:22:31 +02:00
Sebastian Martinez b12a9495cb Navigate to LoadError when node view isn't able to load
This can have multiple reasons, interface has added a new property but
httpds haven't updated yet.
Other issues with some specific endpoints that return a 500 and we can't
load it.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-06 14:18:48 +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 8eaf39e6ae Wrap links or similar in Comment component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-02 12:46:28 +02:00
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