Commit Graph
2290 Commits
Author SHA1 Message Date
Sebastian Martinez 2727615b53 Bump radicle crate to 0.18.0 2025-08-15 13:22:49 +02:00
Rūdolfs Ošiņš 781045b254 Run user did through decodeURIComponent before validating
We recently moved app.radicle.xyz to Cloudflare, which by default
normalizes all URLs to be encoded on redirect. The redirects happen
because we run in SPA mode.
2025-07-24 12:50:29 +02:00
Rūdolfs Ošiņš be5605acde httpd: Release 0.20.0 2025-07-18 14:16:04 +02:00
Rūdolfs Ošiņš 4cd680d464 Bump radicle crate to 0.16.1 2025-07-18 12:13:24 +02:00
Lorenz Leutgeb 329863f349 Add wrangler.toml 2025-07-17 20:27:08 +02:00
Sebastian Martinez 18afaa1251 Add file path and line for comments with code locations
Instead of only displaying a comment, we need to make sure users know
that this has been a line comment.

Linking to changes for the display of the comment is a bit trickier,
will do so in a follow up
2025-06-27 11:28:23 +02:00
Sebastian Martinez 0603f63cdf Add components to rust-toolchain file
This seems to be helping since GitHub changed the behavior of the rustup
toolchain install from the default profile to a minimal which excludes
fmt and clippy

source: https://github.com/rust-lang/rustup/issues/4337
2025-06-26 15:52:37 +02:00
Sebastian Martinez f966ef1773 Add .prettierignore
Don't run prettier on a rust crate
2025-06-26 15:52:37 +02:00
Sebastian Martinez 33b8ecde59 Add review comments and replies 2025-06-26 08:41:01 +02:00
Sebastian Martinez b1bcfc7cd8 Add debian packaging of radicle-httpd 2025-06-24 15:04:20 +02:00
Sebastian Martinez 3c66de391b Add debian package builder 2025-06-24 15:04:20 +02:00
Sebastian Martinez 9cd9673152 Use new naming of preferred seed nodes 2025-06-19 08:28:23 +02:00
Sebastian Martinez fd88be1602 httpd: Add a radicle-httpd.json file to each build 2025-06-17 13:13:51 +02:00
Sebastian Martinez 66a7c98210 Fix hidden overflow for rid copy tooltip in RepoCard 2025-06-16 10:45:01 +02:00
Sebastian Martinez c607fd7177 Hide overflow in RepoCard 2025-06-16 10:09:26 +02:00
Sebastian Martinez 98e11f4068 Add a section about adding a rewrite rule if self-hosting 2025-06-16 09:38:20 +02:00
Sebastian Martinez f54222326a httpd: Release 0.19.1 2025-06-06 12:36:24 +02:00
Sebastian MartinezandFintan Halpenny 915fdc3665 httpd: Dockerfile uses Rust version from rust-toolchain
Instead of hardcoding the version of the Rust alpine file, introduce an
`ARG` in
the `Dockerfile`. In `build/build`, we determine the version by
inspecting
`rust-toolchain.toml`, and pass this value in. This ensures that the
binaries
are built using the same toolchain that we develop with.

Co-authored-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2025-06-06 10:07:51 +02:00
Sebastian Martinez e76f78824f httpd: update cargo-zigbuild version to 0.20 2025-06-06 10:07:51 +02:00
lorenz ccb5e49ee0 httpd/git: Fix passing configuration
The `-c` argument (and its corresponding value) must come *before* the
first subcommand to be effective. This error was introduced in commit
5f22e1bb77.
2025-06-04 20:56:56 +02:00
Sebastian Martinez d6e700cdd4 httpd: Release 0.19.0 2025-06-04 11:25:11 +02:00
Sebastian Martinez 76285b6265 Switch version e2e test to a regex expression 2025-06-04 11:25:11 +02:00
Sebastian Martinez cfba4d40f6 Update heartwood-release to 1.2.0 2025-06-04 11:03:15 +02:00
Sebastian Martinez 11bf9d7200 Bump heartwood crates to latest versions 2025-06-04 10:32:50 +02:00
Sebastian Martinez 9561049789 Update used rust toolchain to 1.87 2025-06-04 09:59:59 +02:00
Sebastian Martinez c6f0a7a0d2 Update node version to 22.12.0 2025-06-04 09:59:48 +02:00
Sebastian Martinez 978b3de61f httpd: Infer mime type of file blob in remaining raw handlers 2025-06-04 09:59:16 +02:00
lorenz 5f22e1bb77 httpd/git: Set uploadpack.allowAnySHA1InWant 2025-06-04 09:57:50 +02:00
Sebastian Martinez fbb9dd64db Update authors and bump crate version to 0.18.2 2025-05-27 10:29:36 +02:00
Sebastian Martinez 2c362adffb Update dependencies 2025-05-21 13:40:52 +02:00
Sebastian Martinez 14f3c6f63b Further improve on handling disabled localStorage
Based on the work done in commit
`a73c5490b160435a0ef5408b54185c9f698cb73f` there are a few places that
make the app not load in case dom storage aka localStorage is disabled.
2025-05-05 09:54:08 +02:00
Sebastian Martinez 2270e61865 Allow radicle-external-link components in commit descriptions
To allow some very basic hyperlinking in commit descriptions we can
replace fully specified urls with a valid scheme into
`radicle-external-link` components.
2025-04-28 09:44:43 +02:00
Sebastian Martinez c0b913f392 Add Download button to commit view 2025-04-25 13:06:35 +02:00
Sebastian Martinez 8d1624e0da Add Download radio button to Clone popover 2025-04-25 13:06:35 +02:00
Rūdolfs Ošiņš 775cbd1c37 Allow overriding configuration at run-time 2025-04-25 08:55:09 +02:00
lorenz af334bb0e4 archive: Various Fixes
1. When `git archive` errors, do not require an exit code, but just use
    the `ExitStatus` we already have. This requires less unwrapping.
    Also, the previous default of 0 was misleading, since 0 is returned
    upon successful termination.
 2. Use "refname" instead of "refspec" as these are different concepts.
    Refer to <https://git-scm.com/docs/git-check-ref-format> and in
    particular
    <https://git-scm.com/docs/git-check-ref-format#Documentation/git-check-ref-format.txt---refspec-pattern>.
 3. Only allow appending ".tar.gz" to commit IDs, not to refnames,
    because refnames may contain the suffix ".tar.gz". It might look
    weird, but it is not forbidden to do `git branch foo.tar.gz`.
 4. `char::is_ascii` does not help sanitize refnames to file names. In
    particular we have `'/'.is_ascii() == true`. Replace forward slashes
    with two underscores.
2025-04-23 16:29:58 +02:00
Sebastian Martinez 2fe3566848 httpd: Add archive endpoint for tarballs 2025-04-23 11:00:59 +02:00
Sebastian Martinez c132855d16 Update build Dockerfile 2025-03-19 11:12:04 -06:00
Sebastian Martinez f2c7bb71c7 Handle json! panick trying to serialize non utf8 lines
Instead of panicking when trying to handle non utf8 lines we should
return `null` as line output.

This way we can on the frontend detect if a file has any lines the api
wasn't able to parse and fallback to show a file as a `Binary File`
2025-03-19 11:12:04 -06:00
Sebastian Martinez 856caf0ec1 Fix new and old fields in code locations
Instead of being `nullable()` the `new` and `old` fields in a code
location are optional.
2025-03-14 12:18:42 +01:00
Rūdolfs Ošiņš 46d1c2177d Make RID on repo cards copyable 2025-02-14 09:05:29 +01:00
Sebastian Martinez b6501604e0 Add a noscript tag for no javascript fallback 2025-02-12 16:21:04 -06:00
Sebastian Martinez fb85131404 Fix assignees field in patchSchema
We are returning `assignees` in patches as `Author` since March 2024, so
we should also parse patches with the correct zod schema.

This shouldn't break any up to date `radicle-httpd`
2025-02-12 15:47:45 -06:00
Konstantinos Maninakis e9c783f04a Use monospaced font for repo id on repo card 2025-02-12 14:38:52 -06:00
Sebastian Martinez 11b7a92052 Update dependencies 2025-02-04 11:42:02 -06:00
Sebastian Martinez 50318285f8 Update svelte to v5.0
Only do the minimal changes possible to be able to keep updating
dependencies.
2025-02-04 11:42:02 -06:00
Sebastian Martinez 0d7a96e3b0 httpd: Bump version numbers 2025-02-04 11:32:28 -06:00
Sebastian Martinez 4e7507a9be Fix embeds in Markdown component
Changes the display of embeds from being markdown images to markdown
links.
Mimics the way embeds work on the desktop app and allows other embeds to
work too like pdfs, videos, etc.
2025-02-04 11:32:28 -06:00
Sebastian Martinez ef46915d77 httpd: Infer mime type of file blob in file_by_oid handler
Instead of relying on the mime_type query string the endpoint should try
to infer the file type.
2025-02-04 11:32:28 -06:00
Sebastian Martinez 061aaa18a1 httpd: Increase MAX_BLOB_SIZE to 10 MB 2025-02-04 11:32:28 -06:00