Commit Graph
1093 Commits
Author SHA1 Message Date
Sebastian Martinez 809daadd04 Remove search functionality
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-26 13:22:01 +02:00
Rūdolfs Ošiņš 16a1821fff Update Track button copy
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-26 10:09:22 +02:00
Rūdolfs Ošiņš cdf62f2883 Add track button to project header
This replaces the "Nodes <counter>" tab in the project view.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-24 12:16:12 +02:00
Rūdolfs Ošiņš 94c15a2719 Fix revision dropdown alignment issue
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-23 11:36:07 +02:00
Rūdolfs Ošiņš 6f4f7894a3 Implement sticky file headers
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-20 09:34:55 +02:00
Rūdolfs Ošiņš 77b49dcb60 Auto-resize textarea height on user input
We want the textarea to grow when a user writes longer text. This also
fixes the `resizable` property, which when `true` allows the user to
resize the textarea with their mouse.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-18 11:36:16 +02:00
Sebastian Martinez 580ccbcf1a Invert markdown plain buttons in Blob component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-16 11:17:13 +02:00
Rūdolfs Ošiņšanddnlklmn d914710396 Implement new design
Co-authored-by: dnlklmn <pelicansinberlin@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-10-13 18:05:19 +02:00
Sebastian Martinez b12a9495cb Navigate to LoadError when node view isn't able to load
This can have multiple reasons, interface has added a new property but
httpds haven't updated yet.
Other issues with some specific endpoints that return a 500 and we can't
load it.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-06 14:18:48 +02:00
Sebastian Martinez 288f55da76 Add syntax highlighting to patch and commit changesets
- This commit doesn't change the way syntax highlighting is done.
- But due to changes in `radicle-httpd` we can highlight the entire
  files of a changeset, and then replace the plain text lines with
  highlighted ones.
- Also highlights only the files currently visible of a changeset.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-05 13:55:00 +02:00
Sebastian Martinez 8eaf39e6ae Wrap links or similar in Comment component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-10-02 12:46:28 +02:00
Sebastian Martinez 1ef0f9dfd1 Add issue embeds
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 16:40:49 +02:00
Sebastian Martinez 9f68848bc0 Update dependencies
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-27 07:56:26 +02:00
Sebastian Martinez bd6ba784b3 Improve binary detection
libgit2 optimizes around not loading the content, when there's no
content callbacks configured.

So we aren't able to get a clear answer from radicle-surf if a file in a
diff is a binary or not.

A simple way without doing additional API requests is to check if the
file type is a executable and if there are no hunks (since we don't get
any deltas in binaries), this is a strong
indicator for a binary.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-26 09:04:01 +02:00
Sebastian Martinez 9b15911f83 Use lastCommit of each blob for navigation instead of patch revision
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-25 10:07:14 +02:00
Alice Liddell 1b01216bf8 Improve FileDiff and add tests
Signed-off-by: Alice Liddell <alice@radicle.xyz>
2023-09-19 07:49:36 +02:00
Sebastian Martinez 00905afea4 Add DiffContent type to @httpd-client
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:49:36 +02:00
Sebastian Martinez ca6762fc95 Refactor commit and diff types, updates outdated diff types
- Adds support for modified moved files see https://github.com/radicle-dev/radicle-git/pull/141

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-19 07:49:36 +02:00
Sebastian Martinez 45830f6cd9 Show local projects instead of network to landing page, if available
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-09-04 12:06:03 +02:00
Sebastian Martinez 542630a7f7 Add patch comment and state modifiers
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-30 17:05:25 +02:00
Sebastian Martinez aec0289f10 Refactor some of the reaction components
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 13:52:57 +02:00
Sebastian Martinez 26447b3c59 Switch edit title button with icons
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-28 13:34:57 +02:00
Rūdolfs Ošiņš 3bd13196d9 Add icons to browser file tree
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-28 12:03:19 +02:00
Rūdolfs Ošiņš 34b2f569c1 Improve node error handling
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-24 09:42:17 +02:00
Sebastian Martinez 1efeb41667 Add face Icon
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-24 09:23:36 +02:00
Sebastian Martinez 7edd6dcdf0 Enable adding and removing reactions
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-24 09:23:36 +02:00
Rūdolfs Ošiņš 3eecaeda29 Use proper issue icon for issues
The exclamation mark looked too much like a warning or error.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-23 15:09:20 +02:00
Sebastian Martinez 08683dc9e9 Update deps
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-23 10:07:15 +02:00
Sebastian Martinez 3dd590d8e6 Add key to each loop in project listing
Without a key we started to get an erratic behavior when adding more
projects and then sorting them.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-17 13:14:52 +02:00
Sebastian Martinez 2c81228db6 Sort node projects by HEAD commit time
Instead of going with project activity which is being stripped
everything that is older than one year, we should look at the current
project head time.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-08-17 11:29:19 +02:00
Rūdolfs Ošiņš 0c0842e6f3 Fix project sorting on node page when there is no activity data
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-16 12:55:39 +02:00
Rūdolfs Ošiņš 5736083d50 Fix not found and loading error screens
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-16 09:35:44 +02:00
Rūdolfs Ošiņš fa89d75b1f Pin radicle-homepage and radicle-tui to the landing page
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-09 15:30:20 +02:00
Rūdolfs Ošiņš a3325b70c4 Simplify layout CSS
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00
Rūdolfs Ošiņš 449ed1d79b Simplify project header props
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00
Rūdolfs Ošiņš fc87a8822a Get rid of ProjectMeta component by moving it into Layout
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00
Rūdolfs Ošiņš 3bb56e6613 Organize project components
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 17:40:43 +02:00
Rūdolfs Ošiņš 5cd098187c Rename "project.tree" to "project.source"
This aligns better with the component and tab naming.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 15:35:27 +02:00
Rūdolfs Ošiņš 3cc485dce2 Flatten ProjectLoadedRoute type
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 15:24:26 +02:00
Rūdolfs Ošiņš d39fee871d Move project view into App.svelte
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 14:50:58 +02:00
Rūdolfs Ošiņš 723509a267 Extract top-level menu into a layout
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 14:40:45 +02:00
Rūdolfs Ošiņš 0146ca00b5 Update the UI to work with the new COB schema
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-08-08 10:53:49 +02:00
Thomas Scholtes cbe1fa5c9a Simplify and align project view props
We simplify the properties of the project views `Issue`, `Issues`,
`NewIssue`, and `Patch`. This aligns them with other project views and
makes the view selection consistent.

Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-07-31 17:53:30 +02:00
Thomas Scholtes 8acb2410d5 Remove redundant project route parameters
Signed-off-by: Thomas Scholtes <geigerzaehler@axiom.fm>
2023-07-31 17:33:43 +02:00
Sebastian Martinez 4525771264 Use /nodes/ in URL instead of /seeds/
We still allow already published URLs with `/seeds/` in them to be
resolved.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-07-31 16:58:45 +02:00
Sebastian Martinez 8d798cc93f Adding a new defaultLocalHttpdPort property to the config.json
We use `defaultHttpdPort` for both exposed ports like on
seed.radicle.xyz as also for local ports e.g. radicle.local.
This worked fine, for now but has shown the first issues, when external
ports like 443 show up in the radicle.local connection dashboard.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-31 15:38:36 +02:00
Sebastian Martinez 910c103a9b Change rad web command when httpd port changes
Instead of using always the `config.seeds.defaultHttpdPort` which is
443, we should take into account the `customPort` variable that is set by the
user.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-31 15:38:36 +02:00
Sebastian Martinez adc0660e87 Make seed hostname reactive in seed project listing
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-31 14:05:53 +02:00
Sebastian Martinez f4bf5b9c6a Sort projects in seed view by most recent activity
Uses the projects activity, fetched from `/projects/${id}/activity`
which is an array of commit timestamps.
So could suffer from some errors if commits with non current timestamps
are being used.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-07-31 13:05:56 +02:00
Rūdolfs OšiņšandThomas Scholtes 391f188b69 Fix navigating to history when a file is selected
Co-authored-by: Thomas Scholtes <geigerzaehler@axiom.fm>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-07-26 14:17:18 +02:00