Commit Graph
1123 Commits
Author SHA1 Message Date
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 e658e67c43 Fix issue with dismiss changes in title 2023-11-15 09:32:12 +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 1188e84c87 Cleaning up state flags 2023-11-15 09:32:12 +01:00
Sebastian Martinez 664158e472 Refactor Patch actions and related components 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
Rūdolfs Ošiņš dabfab083e Tweak icons
- use key icon in connect/authenticate modal
- use person without hat for contributors
- use +- icon for diffs
- use color to distinguish between track/tracking states
2023-11-09 15:34:50 +01:00
Rūdolfs Ošiņš 5fc49faf6b Update color tokens 2023-11-09 13:36:36 +01:00
Rūdolfs Ošiņš 92f3e32c90 Adjust commit message text size
This makes it look more balanced in comparison to the subject line.
2023-11-09 11:09:01 +01:00
Rūdolfs Ošiņš 179f22cf66 Make IDs copyable by clicking anywhere in the body 2023-11-09 10:55:10 +01:00
Sebastian Martinez ca28fc28b2 Display a top and bottom border in the file tree when overflowing 2023-11-08 17:43:11 +01:00
Thomas Scholtes f44b0f4709 Eliminate popoverWidth property
Users of `Popover` can set the width by setting it on the slot element.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-08 17:16:50 +01:00
Thomas Scholtes b757e62691 Avoid nested button for Popover
We elminitate the element with the “button” role that wrapped the
Popover toggle slot. The element rendered into the slot is in all cases
already a button. This prevents issues where `getByRole("button")` finds
_two_ buttons for popover toggles.

We take the opportunity to simplify the popover toggling by making the
slot responsible for the toggle. This has a couple of advantages:

* We don’t need a `disabled` property for Popover. This is handled by
  the button. (This fixes a bug we did not disable the PeerSelector
  Popover properly.)
* The popover is opened on key events

In the future this also gives us more flexibility in determining how to
toggle the Popover.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-11-08 17:16:50 +01:00
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
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ņš 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 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
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 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 1ef0f9dfd1 Add issue embeds
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 16:40:49 +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 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
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 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 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