Commit Graph
1522 Commits
Author SHA1 Message Date
Konstantinos Maninakis e9c783f04a Use monospaced font for repo id on repo card 2025-02-12 14:38:52 -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 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 4c31a8134d Restrict DOM sanitization to limited whitelist 2024-12-18 14:47:21 +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
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
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
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
Sebastian Martinez 3bc304590d Add word-break to node description 2024-09-17 13:17:42 +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 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
Rūdolfs Ošiņš 596c3b0e9b Update dependencies 2024-09-03 14:00:06 +02:00
Sebastian Martinez 7711476dae Update types to latest heartwood release 2024-08-29 11:02:04 +02:00
Sebastian Martinez 6c2d1d755e Update schemas and usage of project payload 2024-08-22 09:45:50 +02:00
Sebastian Martinez 868f7b1e2d Rename files from project(s) to repo(s) 2024-08-22 09:43:06 +02:00
Sebastian Martinez cca65a0b89 Make visibility in the repoSchema required 2024-08-22 09:43:06 +02:00
Sebastian Martinez b84cace48f Refactor usage of authorSchema 2024-08-22 09:43:06 +02:00
Sebastian Martinez cf08c83913 Update naming of project(s) to repo(s) 2024-08-22 09:43:06 +02:00
Rūdolfs Ošiņš 06cc5595c8 Upgrade eslint 2024-08-19 15:25:31 +02:00
Sebastian Martinez 98857582f3 Reduce requests in patch view 2024-08-09 16:19:49 +02:00
Sebastian Martinez f914d94038 Reduce requests when switching between History and Source view
Adds the same `previousLoadedRoute` strategy used in source views to the
commit listing view.

Since we where re-fetching the project endpoint, node, policies and
other things in between tabs, also adds takes the tree type from one tab
to the other since it's immutable
2024-08-09 13:50:47 +02:00
Rūdolfs Ošiņš 5174cda6f2 Add bookmarking ability to seed selector 2024-08-09 12:20:06 +02:00
Rūdolfs Ošiņš 96bafffb34 Use lodash import style that leads to smaller bundle sizes 2024-08-08 16:21:33 +02:00
Sebastian Martinez 06fa429ea3 Fix peer branch selector gaps 2024-08-05 12:58:29 -03:00
Sebastian Martinez a1dc7fc2ef Add user page 2024-07-31 12:33:05 -03:00
Sebastian Martinez ab71fdcc1d Add Placeholder to empty node page 2024-07-31 12:28:50 -03:00
Sebastian Martinez a73c5490b1 Handle disabled localStorage gracefully
Instead of failing with a cryptic error in the dev console, this commit
allows the app to keep working and skips the localStorage persistance if
no localStorage is available.
2024-07-29 16:48:59 +02:00
Rūdolfs Ošiņš 514359e1b9 Fix merge issue 2024-07-29 15:54:38 +02:00
Rūdolfs Ošiņš 1ff3890fa8 Clean up icons 2024-07-29 15:30:27 +02:00
Rūdolfs Ošiņš f4c773c81b Show dismiss button when a specific commit has been selected 2024-07-26 15:15:01 +02:00
Rūdolfs Ošiņš c0049f83ba Redesign node view and use it as the landing-page 2024-07-26 10:20:01 +02:00
Sebastian Martinez 7a5d4566d3 Fix commit listing, adding new commits to list instead of replacing 2024-07-23 15:43:15 +02:00
Sebastian Martinez cbb6c557be Fix markdown relative links to / 2024-07-23 09:56:12 +02:00
Rūdolfs Ošiņš da14ca6505 Remove Post comment keyboard shortcut 2024-07-23 09:50:33 +02:00
Rūdolfs Ošiņš cd38ed1134 Tweak clone button icon placement 2024-07-22 13:33:54 +02:00
Rūdolfs Ošiņš 0a2dbe9e5d Add Checkout button to patch view 2024-07-19 14:51:20 +02:00
Rūdolfs Ošiņš 662a5e24eb Update dependencies 2024-07-18 10:05:12 +02:00
Rūdolfs Ošiņš 472993c6df Simplify share button link resolution
We just use the radicleExplorer that is configured in the app config and
don't query the node for it. Besides simplifying things this also makes
the button work on iOS again, because we don't have the async http
request anymore.
2024-07-17 14:13:57 +02:00