Commit Graph
2253 Commits
Author SHA1 Message Date
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
Rūdolfs Ošiņš 98ad210b8d Allow manually triggering workflow builds 2025-02-03 11:00:41 -06:00
Sebastian Martinez 4c31a8134d Restrict DOM sanitization to limited whitelist 2024-12-18 14:47:21 +01:00
Sebastian Martinez b77c0862b8 Update heartwood-release and radicle-httpd-release to latest versions 2024-12-05 15:30:03 +01:00
Sebastian Martinez 20b3ac3855 Add self hosting explainer to ResponseParseError 2024-12-05 14:21:08 +01:00
Sebastian Martinez 249f274162 Remove apiVersion in favor of deploymentId
Instead of relying on a `apiVersion` config variable that has to be
changed and semver respected we use a deployment id that is new on each
deployment to do cache busting
2024-12-05 14:21:08 +01:00
Sebastian Martinez 2e8b817d53 httpd: Copy RADICLE_VERSION to /
Also deprecates it on `api/v1/`
2024-12-05 14:21:07 +01:00
Sebastian Martinez 2fef0f5c9c httpd: Move CorsLayer to / 2024-12-05 14:13:56 +01:00
Sebastian Martinez f456731f42 Fix radicle-httpd tests for radicle 1.1.0 2024-12-05 14:13:56 +01:00
Sebastian Martinez be0ecd7347 Bump httpd version numbers to 0.18.0 2024-12-05 14:13:56 +01:00
Sebastian Martinez cb7e01105b Update radicle-httpd to latest radicle crate 2024-12-05 09:21:19 +01:00
Sebastian Martinez 544cdca396 Improve the ResponseParseError description
In case of a `ResponseParseError` instead of comparing the versions of
httpd and the web client strictly, we should make sure to check if httpd
fulfills the web clients version requirement (to be the same major
version) and else fallback to a more verbose error about the different
versions.
2024-12-04 22:11:36 +01:00
Matthew O'Gorman 2075c320f3 Add markdown support to node descriptions
Instead of escaping all html by svelte, we should pass the node
description through the markdown parser and sanitize the parsed content.
2024-11-28 16:43:11 +01:00
Sebastian Martinez b21b2bae5e Add overscroll-behavior: contain to PeerBranchSelector
Avoids the entire window to scroll when only scrolling inside the
`PeerBranchSelector`
2024-11-27 15:12:44 +01:00
Sebastian Martinez 723d188e9e Fix copying wrong ids when switching cob listing state
We don't really need the `clipboard` prop.
By switching between stats in patches and issue listings the clipboard
props aren't been recomputed.

Wrote a test that should make sure this doesn't break in the future.
2024-11-27 11:00:17 +01:00
Sebastian Martinez f19ecf09ed Detect changes to system theme on first load 2024-11-26 09:22:13 +01:00
Sebastian Martinez 691e0255fb Improve handling of localStorage and svelte stores
Also moving the svelte-stored-writable package into the repo.
So we have it closer for maintenance, we can eventually rewrite it in
svelte 5 runes later.

Reference: https://github.com/efstajas/svelte-stored-writable/pull/5
2024-11-25 17:06:26 +01:00
Jappie3 032b269cb9 add event listener to hot reload theme 2024-11-25 16:49:50 +01:00
Jappie3 b050924caa add follow system theme button & functionality 2024-11-25 14:26:32 +01:00
Sebastian Martinez 870f0733fe fix(web): Fix padding between avatar and alias 2024-11-18 09:39:33 +01:00
Samuel Shuert 5ccce437ab feat(web): Display assignees as nodes
Previously assignees were displayed using a chip, which while it looked
nice had the following issues:
- It only showed the node ID rather than the alias (and actually the
  node ID was cut off)
- It wasn't clickable to go to the user's profile
- It was not a consistent experience with the rest of the users
  displayed around the application (e.g. in reviews, uploader, branches
  view).
2024-11-18 09:05:12 +01:00
Samuel Shuert d37ccde1c4 feat(web): Allow clicking on node avatars
Previously the node name was always a link and the node avatar did
nothing. We believe it's slightly nicer to include the avatar in the
link.
2024-11-18 08:51:19 +01:00
Rūdolfs Ošiņš f815b2dbca Bump httpd version numbers
Bump httpd version numbers
2024-11-11 18:30:39 +01:00
Rūdolfs Ošiņš 9d981f9210 http: Fix encoding issue in raw file handler
Turns out "content-type: text; charset=utf-8" wasn't valid, it had to be
"content-type: text/plain; charset=utf-8" for browsers to recognise it
properly.
2024-11-08 12:08:31 +01:00
Sebastian Martinez b3be042b51 Fix twemojis display
Text in Markdown with emojis has been tried to be fetched from the
/raw route as embeds.
This commit changes the renderer method to compute the hex string for
a unicode emoji to be able to use the /twemoji asset folder.
2024-10-24 10:21:38 +02:00
Sebastian Martinez 846daf0b16 Fix mutation of commit listing in place
The commit listing on each patch revision started to be flaky when using
browser navigation. It seems like the `Array.sort()` call started to
reverse the order of the commit listing back to HEAD on top which isn't
what we wanted.
`Array.toReversed()` returns a fresh copy of the reversed array which is
less error prone.
2024-10-21 21:13:58 +02:00
Sebastian Martinez 2b058a104d Fix alias support in issue assignees
We weren't passing the aliases into the Assignees when displaying
issues, which left us only with the did of the assignee.
2024-10-14 22:51:33 +02:00
Sebastian Martinez 9586853a99 Add visual test for outdated reviews 2024-10-12 10:56:50 +00:00
Samuel Shuert 144fc42970 fix(web): Provide visual response to old reviews
Previously radicle-explorer kept old reviews the exact same style as new
ones (greyed out text like). This change sets the new review color to be
the same as users are normally while greying out old ones (both the user
and the icon).

To provide further clarity we've added a tooltip for explaining that a
review is old, and started sorting the reviews so that outdated reviews
sink to the bottom/end.

In review, it was mentioned that this would go well with jumping to the
review by clicking on the checks/crosses. This is a larger and
more-different change than we believe fits in this patch. We'll make
a followup for it in the future.
2024-10-12 10:56:50 +00:00
Sebastian Martinez 5657a6ff47 http: Filter by delegate before fetching repo info 2024-10-02 12:05:07 +02:00
Sebastian Martinez 9bdfba11d1 Update heartwood release to 1.0.0 2024-09-30 15:02:50 +02:00
Vincent Ambo 948605c30f Remove dependency on plausible.io tracker
Instead of sending data to a third-party by default, users can run privacy
friendly local log analysis systems like GoatCounter.

After this commit, Radicle Explorer will not randomly connect to unexpected
hosts anymore.
2024-09-30 14:50:19 +02:00
Arbel Arad 86d6452c80 Fix flake dependency hash 2024-09-30 11:43:04 +02:00
Sebastian Martinez 248ae1a231 http: Add MIT and APACHE license files 2024-09-30 11:33:31 +02:00
Rūdolfs Ošiņš dc906be387 Update dependencies 2024-09-25 09:18:44 +02:00
Rūdolfs Ošiņš dce64f19b0 Disable rubber-banding effect on scroll
The app doesn't implement any loading/refresh functionality on
over-scroll, so the effect doesn't make sense.
2024-09-23 11:39:27 +02:00
Sebastian Martinez 3bc304590d Add word-break to node description 2024-09-17 13:17:42 +02:00
Rūdolfs Ošiņš edd2313245 Update dependencies 2024-09-16 12:56:44 +02:00