Commit Graph
2235 Commits
Author SHA1 Message Date
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
Richard Levitte b70ff99971 Fix code block formatting in README.md
Many MD viewers/renderers do not recognise fenced code blocks
unless they are separated with empty lines from the rest.
2024-09-16 10:15:27 +02:00
Sebastian Martinez 337dbf4312 Fix repo cards failing to load when head commit with non-utf8 are loaded 2024-09-11 12:22:22 +02:00
Sebastian Martinez 2bbcc2f9d1 http: Make the rust github workflow throw errors instead of warnings
Instead of failing silently, warnings should be treated as errors and be
fixed before merging a patch.
2024-09-04 08:00:35 +02:00
Sebastian Martinez 9dd61d3bf3 http: Apply warnings from clippy 2024-09-04 07:24:34 +02:00
Sebastian Martinez 1ded8b4462 http: Update dependencies
Also removes some dependencies that wheren't used anymore.
2024-09-04 07:24:34 +02:00
Sebastian Martinezandmountdisk <mountdisk@icloud.com.> 900506bf4b Fix some typos
Co-authored-by: mountdisk <mountdisk@icloud.com.>
2024-09-03 15:37:13 +02:00
Sebastian Martinez 5fb6b3e43c Use on base in Revision components 2024-09-03 15:25:44 +02:00
Sebastian Martinez fc83829ef6 http: Decouple api responses from heartwood crates 2024-09-03 15:22:22 +02:00
Sebastian Martinez 3d4d76cf53 http: Move querystring structs into own module 2024-09-03 15:22:22 +02:00
Sebastian Martinez 859d22319f http: Run cargo fmt 2024-09-03 15:22:22 +02:00
Rūdolfs Ošiņš 596c3b0e9b Update dependencies 2024-09-03 14:00:06 +02:00
Sebastian Martinez 82ca7c3eae Missing build argument in build script 2024-08-29 11:02:05 +02:00
Sebastian Martinez 7711476dae Update types to latest heartwood release 2024-08-29 11:02:04 +02:00
Sebastian Martinez 30647fbb26 Update heartwood and radicle-httpd releases 2024-08-29 11:02:04 +02:00
Sebastian Martinez 139bab5809 http: Update radicle crate to v0.13.0 2024-08-29 11:02:04 +02:00
Sebastian Martinez a34056b2bf Remove sinon in favor of existing APIs of playwright and vitest
We where using `sinon` in the `playwright` tests to simulate a different
time, which since `playwright@1.45.0` can be done with the Clock API
calling `page.clock.setFixedTime`.

And to test the mutex executor we can use the vitest utils spy function
`vi.fn()` instead of `sinon.spy()`
2024-08-29 10:11:04 +02:00
Sebastian Martinez 7c9f1a018f Update heartwood version in nix flake 2024-08-27 16:52:14 +02:00
Joseph Goulden 413bc50efa Fix flake npmDepsHash 2024-08-27 16:52:01 +02:00