Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Martinez 59a38e4191 Update install binaries script
radicle-httpd and rad-web have been removed from the files.radicle.xyz
tar files, so we should build them to always have the web client be
compatible with the httpd
2024-06-21 14:19:16 +02:00
Sebastian Martinez 894ab2e0aa Update node config 2024-06-21 13:24:11 +02:00
Sebastian Martinez abcf8f34a1 http: Add version and help flag 2024-06-21 12:10:44 +02:00
Sebastian Martinez b68ea537b6 http: Update env vars for build process
Use the standard `SOURCE_DATE_EPOCH` instead of `GIT_COMMIT_TIME`.
Set `GIT_HEAD` properly.
2024-06-20 20:52:24 +02:00
Sebastian Martinez a4e0d21bad Reduce flakiness of some e2e tests 2024-06-20 16:43:44 +02:00
Sebastian Martinez b09a705f58 Overhaul peer and branch selector 2024-06-20 16:43:30 +02:00
Sebastian Martinez 05632a15d7 http: Add repo search by name 2024-06-18 12:43:46 +02:00
Sebastian Martinez 06e33f4a79 Add reproducible build pipeline 2024-06-14 11:50:02 +02:00
Sebastian Martinez adc6c6c290 Add http-server npm scripts 2024-06-07 12:22:28 +02:00
Sebastian Martinez 23107912af Exclude http-server from eslint and tsconfig 2024-06-07 12:22:28 +02:00
Sebastian Martinez 2ee8bae82e Rename httpd-client to http-client 2024-06-07 12:22:28 +02:00
Sebastian Martinez f87c09c634 http: Add GitHub workflow for http-server test and linting 2024-06-07 12:22:28 +02:00
Sebastian Martinez 8ea62a692a Merge heartwood/radicle-httpd folder into the radicle-explorer repo 2024-06-07 11:51:27 +02:00
Sebastian Martinez 4e5ce7eca3 Shut autocomplete off in TextInput component 2024-06-04 20:11:50 +02:00
Sebastian Martinez f0cf894d23 Fix wrong icon in IconSmall
Help and Info where the same icon
2024-06-04 20:11:50 +02:00
Sebastian Martinez 6695660a17 Add delegates and node scope policies to Sidebar 2024-06-04 20:11:50 +02:00
Sebastian Martinez d34d8f5eab httpd: Add /raw route to get file at canonical head
Instead of requiring to specify a commit to obtain a file through the
/raw route, this commit allows to prefix `/head` to get the file at the
current canonical head commit.
2024-06-04 14:19:11 +02:00
Sebastian Martinez 29d340961b Add a new e2e test case for commit messages with double colons 2024-06-03 20:31:50 +02:00
Sebastian Martinez 655ccf1d0f Add a new plain marked instance 2024-06-03 20:31:50 +02:00
Sebastian Martinez 3d13bc03ae Navigate seed nodes from explore section 2024-05-29 16:32:40 +02:00
Sebastian Martinez 0c7ea70c1b Update eslint config to flat config
Since the legacy config is being deprecated at the end of 2024, we
should start moving to the eslint flat config.

I avoided the tseslint config helper function so we avoid wrapping
magic.

This seems to have triggered more checking since any checks in svelte
files have appeared and the $$Generic type that is being deprecated had
to be rewritten.

Also fixes some any types that weren't caught previously
2024-05-27 17:35:16 +02:00
Sebastian Martinez 77cc3ce031 Rename radicle-interface ocurrences to radicle-explorer 2024-05-22 17:45:06 +02:00
Sebastian Martinez 15e258dad5 Add a configure section to the README 2024-05-17 15:35:00 +02:00
Sebastian Martinez 46e514dcd8 Refactor config json into a virtual module 2024-05-17 15:35:00 +02:00
Sebastian Martinez 13a6925bcf Remove sinon fake timers out of the window object 2024-05-17 13:11:47 +02:00
Sebastian Martinez 7833dd2ffe Remove testIgnore from playwright 2024-05-17 13:11:46 +02:00
Sebastian Martinez 9b20ad24af Change file is too big explainer 2024-05-16 09:44:31 +02:00
Sebastian Martinez b4234e44c6 Fix commit colors and add new links to commit pages 2024-05-15 16:00:16 +02:00
Sebastian Martinez ca27aede56 httpd: Validate blob sizes 2024-05-15 13:03:28 +02:00
Sebastian Martinez 8c06938775 Display correct placeholder if blob endpoint returns 413 status code
Also makes sure we don't highlight files that are too big
2024-05-14 16:52:53 +02:00
Sebastian Martinez 83041c3e52 Provide function for manualChunks
Instead of hardcoding the manualChunks this allows us to reduce chunk
size of index, and make it more flexible for new dependencies.
2024-05-14 16:52:53 +02:00
Sebastian Martinez 06eafe9a42 Move sinon to devDependencies
No reason to have it in dependencies
2024-05-14 16:52:53 +02:00
Sebastian Martinez 067295ed05 Remove collapsing sidebar from visual tests 2024-05-09 12:14:44 +02:00
Sebastian Martinez 3fd5d513a8 Decouple stats from tree response 2024-05-07 14:30:34 +02:00
Sebastian Martinez 5657811467 Set custom httpd port in Settings 2024-05-07 12:28:59 +02:00
Sebastian Martinez ff8b26df55 Center content blob on files for bigger screens 2024-05-07 11:51:20 +02:00
Sebastian Martinez 047ef0499f Wrap body text when code block
This change allows the text in issues and patches to be text when there
is also a code block around.

Sets it back to `auto` when in mobile
2024-05-06 16:43:08 +02:00
Sebastian Martinez 230243e772 Make entire CommitButton clickable
Instead of having the Link component inside the Button component, we
should do it the other way around, that way the entire Button is
clickable and links somewhere.
2024-05-06 12:23:24 +02:00
Sebastian Martinez f50521ca23 Update httpd tests to use happy-dom as environment
Since we require the httpd client to query config.json we need the tests
to understand what the window object is
2024-05-03 08:34:08 +02:00
Sebastian Martinez ec0aa4d982 Update heartwood to rc.8 2024-05-03 08:34:08 +02:00
Sebastian Martinez 2fc03f3312 Add apiVersion to config and httpd request
We have a new apiVersion value in the config json that needs to be
changed for each breaking change on httpd so we can simulate a new
resource to the cache and get it cleared.

Also improves the ResponseParseError giving the user more information
on, if the node or the web client is outdated
2024-05-03 08:34:08 +02:00
Sebastian Martinez f5a28960bd Add alias to project delegates and threshold 2024-05-02 23:58:44 +02:00
Sebastian Martinez 70b16e5861 Decouple stats from tree endpoint response 2024-05-02 23:58:44 +02:00
Sebastian Martinez eef0c1b0c7 Update node config schema for relay property 2024-05-02 23:47:25 +02:00
Sebastian Martinez 26b4ee064c httpd: Add apiVersion to root handler and node information
This will help consumers of the httpd to check if they are on the right
version of the API
2024-05-02 13:09:00 +02:00
Sebastian Martinez a2189cabe4 httpd: Add threshold to project info 2024-05-02 14:43:12 +02:00
Sebastian Martinez a736c5975f httpd: Add alias to project delegates 2024-05-02 14:43:12 +02:00
Sebastian Martinez 54636b448c httpd: Decouple repo stats from tree endpoint 2024-05-02 14:41:27 +02:00
Sebastian Martinez 824ea2e630 Add failed download handling back to install-binaries script 2024-05-02 12:20:07 +02:00
Sebastian Martinez c8e91ac218 Update test suite to use heartwood releases instead of commits
Remove extra line at heartwood-release
2024-05-02 11:25:42 +02:00
Sebastian Martinez 207ec7782a Modify RAD env vars based on heartwood rc.6 2024-04-30 11:39:35 +02:00
Sebastian Martinez 297c4b8ee1 Update tests to handle querystrings in page.route handlers 2024-04-29 13:22:55 +02:00
Sebastian Martinez 0eab6dafa6 Add bust_cache querystring variable 2024-04-29 13:22:14 +02:00
Sebastian Martinez aed7d3ce46 Update node metadata test
Heartwood rc.5 wasn't built with the rc.5 label.
2024-04-29 13:21:46 +02:00
Sebastian Martinez 643d61ae2b Remove unused fetchOkNoContent fn 2024-04-29 12:29:28 +02:00
Sebastian Martinez 36b3fb8032 Update flake to new heartwood version 2024-04-24 16:50:14 +02:00
Sebastian Martinez 7adcea4148 Update components and interfaces for radicle-surf v0.21 2024-04-24 16:50:14 +02:00
Sebastian Martinez 3d38d79c77 Update radicle-surf to 0.21 2024-04-24 11:51:25 +02:00
Sebastian Martinez d413650ebc Filter peers without branches in the router
This way we make sure the remote count is the same and the behavior
between files tab and commit tab is the same
2024-04-22 15:36:00 +02:00
Sebastian Martinez e475596ec0 Remove private project visual test
Currently the httpd doesn't serve private projects, so this test fails
everytime.
We should look at it again once we figured out how to serve private
projects securely.
2024-04-16 11:40:09 +02:00
Sebastian Martinez 152b7fa179 httpd: Remove diff and branches from history route 2024-04-10 11:44:00 +02:00
Sebastian Martinez 0c46e67f88 Handle absolute markdown links with leading slash
This commit also handles relative linking when there is no path yet.
Aka not having `/tree/..` in the URL.
2024-04-04 22:24:53 +02:00
Sebastian Martinez 7420c7ade6 Add You to your alias in peer selector 2024-04-04 18:29:36 +02:00
Sebastian Martinez 187a67e03e Underline markdown links that have emojis 2024-04-04 13:37:37 +02:00
Sebastian Martinez 2efd0ad58e Handle absolute markdown links with leading slash 2024-03-29 11:54:54 +01:00
Sebastian Martinez 746e478da3 Update dependencies 2024-03-26 13:03:50 +01:00
Sebastian Martinez 4c569a1e3d Update heartwood and nix flake 2024-03-26 12:38:59 +01:00
Sebastian Martinez 4cbc6222c1 Add single line break option to Markdown component 2024-03-25 17:43:45 +01:00
Sebastian Martinez 89ea5f904f Change ScopePolicy and httpd tooltip from hover to clickable tooltip 2024-03-25 17:26:38 +01:00
Sebastian Martinez 87e3c2b5c7 Hide radicle-httpd tooltip on mobile 2024-03-25 17:26:38 +01:00
Sebastian Martinez 651ed1af7c Make Placeholders in Source component full width 2024-03-25 16:45:12 +01:00
Sebastian Martinez 4e0d557a65 Improve error when node doesn't have any pinned repos 2024-03-25 16:34:16 +01:00
Sebastian Martinez ba42de1a44 Add right padding for TextInput key hint 2024-03-25 14:44:02 +01:00
Sebastian Martinez 3339225cf2 Follow-up on local project listing on landing page 2024-03-22 17:21:25 +01:00
Sebastian Martinez 1c54038055 Handle error in AssigneeInput when chars outside of the bs58 charset
Also improves the UX and only shows validation errors on submit, and not
during input.
2024-03-22 09:00:47 +01:00
Sebastian Martinez 54662ad11e Display grayscale loader in file tree 2024-03-21 15:30:29 +01:00
Sebastian Martinez 7d63f9ec55 Enable grayscale loading indicator 2024-03-21 15:30:29 +01:00
Sebastian Martinez 2d3fbe79e9 Add branch icon for each branch in the list 2024-03-21 13:37:20 +01:00
Sebastian Martinez 9f70390432 Add commit summary to BranchSelector
Also extract it into a separate component to use in Blob.svelte
2024-03-21 13:37:20 +01:00
Sebastian Martinez d401819d2e Add Canonical badge for canonical branch 2024-03-21 13:37:20 +01:00
Sebastian Martinez 22c83c556f httpd: Only return cache header on success 2024-03-21 12:45:13 +01:00
Sebastian Martinez 893af0c4b7 Display local projects in read only 2024-03-21 08:45:33 +01:00
Sebastian Martinez 7f2f03efc3 Make SeedButton blue again in read-only mode 2024-03-21 07:19:43 +01:00
Sebastian Martinez 8e2090070d Rename Share button to Copy link 2024-03-21 07:19:43 +01:00
Sebastian Martinez f6a77bec94 Add min-width param to Share button
This avoids resizing when displaying the Loading indicator.
2024-03-20 16:18:21 +01:00
Sebastian Martinez fe7cd1b4e5 Display all projects on local node 2024-03-20 15:49:41 +01:00
Sebastian Martinez 786f11169d Reword Pinned projects to Seeded projects on local node 2024-03-20 15:49:41 +01:00
Sebastian Martinez cddf8b40fc Fix connector lines in issue comments 2024-03-20 13:26:57 +01:00
Sebastian Martinez ee84461524 Change colors of delegate badge colors when selected 2024-03-19 22:57:50 +01:00
Sebastian Martinez 302bd44400 Improve delegate badge colors 2024-03-19 22:34:24 +01:00
Sebastian Martinez 476f217714 Grey out DIDs of remotes without alias 2024-03-19 22:22:20 +01:00
Sebastian Martinez daba9fca82 Make revision actions less tall and refine paddings 2024-03-19 15:07:55 +01:00
Sebastian Martinez fcdaa24973 Display diff stats badge in patch summary 2024-03-19 14:26:53 +01:00
Sebastian Martinez 1d2503348c Fix serialization reactions tooltip 2024-03-19 10:59:22 +01:00
Sebastian Martinez 8ba5d4e731 Increase hit area on commit teaser title 2024-03-19 10:49:20 +01:00
Sebastian Martinez 780158bb2c Remove extra space between FileLocationChange components 2024-03-19 10:34:21 +01:00
Sebastian Martinez 1e97828ccb Make commit title in commit page semibold 2024-03-19 10:34:21 +01:00
Sebastian Martinez 91866f6292 Add prefers-color-scheme query for theme fallback 2024-03-19 10:28:06 +01:00
Sebastian Martinez cee200e629 Compare to revisionBase instead of projectHead
- Makes diff stat badge clickable and navigates users to previous
  revision or revision base.
    - If base has changed between revisions uses latest patch base
2024-03-18 15:50:48 +01:00
Sebastian Martinez 7bb1c74fb2 Display seeding icon on seeded projects in node view project list 2024-03-18 14:32:52 +01:00