Commit Graph
1362 Commits
Author SHA1 Message Date
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
Sebastian Martinez 800a9767d6 Update heartwood version
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-18 23:38:13 +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 c92e593a16 Fix vite reloading during e2e tests
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>
2023-09-13 15:15:44 +02:00
Sebastian Martinez 127c1d228d Add requirement section for version of Safari and Node
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-08 09:42:16 +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
Sebastian Martinez aec0289f10 Refactor some of the reaction components
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 13:52:57 +02:00
Sebastian Martinez 26447b3c59 Switch edit title button with icons
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 13:34:57 +02:00
Rūdolfs Ošiņš 3bd13196d9 Add icons to browser file tree
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-28 12:03:19 +02:00
Sebastian Martinez ea1f23c4a2 Add test to check that issue counter updates when closing issue
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 09:18:07 +02:00
Rūdolfs Ošiņš 6e049197ef Remove apple-touch-icon from index.html
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>
2023-08-24 17:54:23 +02:00
Rūdolfs Ošiņš 34b2f569c1 Improve node error handling
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-24 09:42:17 +02:00