Commit Graph
3488 Commits
Author SHA1 Message Date
cloudhead fbfac4a6dc Change default seeding scope to 'all'
This makes the default policy `block` with scope `all`. The good thing
about this is that you don't have to manage individual nodes in the
beginning. You simply seed the repos you want, and everything is
followed within those repos. This matches user expectations, as `rad
seed` does what you expect it to do.

For open-policy seed nodes, it also means that simply changing `block`
to `allow` from the default config is all you need.

This leaves the non-default `followed` scope as a more "advanced"
setting, since it is much more cumbersome: it forces you to follow a
user before you can see their issues/patches, which is not something
most users expect coming from old-shcool forges.
2024-02-12 10:56:21 +01:00
Sebastian Martinez 0f0b0e0e16 Improve checks for allowing users to edit seeding 2024-02-08 17:12:55 -03:00
Sebastian Martinez 76ed6399c4 Remove caching projects found status 2024-02-08 12:45:58 -03:00
Rūdolfs Ošiņš b4dca512cc Don't do two requests when expanding folders 2024-02-07 17:32:09 +00:00
dnlklmn 339bd71875 Make non-selected tab on patch regular weight 2024-02-07 15:23:45 +01:00
dnlklmn 9927520429 Fix project card badge colors and size 2024-02-07 15:14:07 +01:00
dnlklmn 88ac279fe6 Make NodeId popup appear after longer 2024-02-07 15:14:07 +01:00
dnlklmn 0bb5d04a4e Improve share and get link interactions 2024-02-07 15:14:07 +01:00
dnlklmn 4ccd02b19b Update icons 2024-02-07 15:14:07 +01:00
dnlklmn 9224d42ec4 Make rid lighter on hover 2024-02-07 15:14:07 +01:00
Georgios Jason Efstathiou beb74abec3 Load home page sections asynchronously 2024-02-07 13:33:16 +00:00
Sebastian Martinez 38f0a0cac1 Query local node for project availability instead of seed node 2024-02-07 12:03:47 +00:00
Sebastian Martinez 2b3b8bc0de Add redirection to project depending on rad-web cwd 2024-02-07 11:47:08 +00:00
Michael Raitza 414c6cafda Add update script for heartwood version and flake
Use this script to update tests/support/heartwood-version and keep the
flake in sync with it.

Alternatively, run the script as

    scripts/update-flake $(cat tests/support/heartwood-version)

to bring the flake back into sync.

This also updates the flake.lock and the updates the state of the npm
dependencies when run from a nix-enabled system.
2024-02-05 15:05:32 +01:00
Sebastian Martinez 1324c8e320 Revert bottom padding in patch revision descriptions 2024-02-05 11:14:19 +01:00
Sebastian Martinez 00c08ddd66 Change config edit command in preferredSeedsDropdown to rad config edit 2024-02-02 15:31:10 +00:00
Sebastian Martinez 9919704449 Fix HomepageSection overflow 2024-02-02 15:31:10 +00:00
Sebastian Martinez fca515ab00 Bump heartwood and nix flake lock 2024-02-02 13:33:10 +01:00
Sebastian Martinez f0758de9f3 Add reactions to patch revisions
- Also adapts to the new reactions API schema everywhere.
2024-02-02 13:33:07 +01:00
Sebastian Martinez ebfec3fd8e Set Revision expanded state only on first mount
Instead of recalculating the expanded state of a revision on any
`patch.revisions` variable change, we should just use it once on Mount
and then let the `Revision` component manage their expanded state
internally.
2024-02-02 13:09:35 +01:00
Georgios Jason Efstathiou b1411ae4a5 Implement new landing page 2024-02-01 17:29:40 +00:00
Sebastian Martinez 31c0eb37bf httpd: Add --path param to rad-web
This passes a `path` variable to the `auth_url` so consumers can open
desired pages directly.
Also checks the cwd to start rad web with a path corresponding to it.
2024-02-01 17:33:21 +01:00
Sebastian Martinez f576028bfb httpd: Add /nodes/:nid and /nodes/:nid/inventory endpoints to get info on other nodes 2024-02-01 17:29:10 +01:00
Sebastian Martinez 9abad78582 httpd: Add review ids to review json 2024-02-01 17:25:18 +01:00
Rūdolfs Ošiņš 3a293a9862 Fix branch selector icon alignment 2024-02-01 13:20:49 +00:00
dnlklmn 232e6f1b5a Prevent sidebar content animation when switching themes 2024-02-01 09:40:30 +00:00
Sebastian Martinez 4496b80b3e cli: Display rad-web in rad --help
Only show `rad-web` in help, if we are able to run the binary.
2024-01-31 13:30:40 +01:00
Sebastian Martinez 7b9350e154 httpd: Add reactions to revisions, improve json for comment reactions
Instead of using tuples and lots of arrays, this commit tries to use
`BTreeMap`s to provide more context to review, issues, patch and other
comments.

Also the returned object by the httpd is more aligned with what is
needed by the consumer, so less recomputation is needed for display.
2024-01-31 12:14:05 +01:00
Michael Raitza ab982e934e Add a flake to build the web frontend
Includes the twemoji assets and a check output that runs all tests
except e2e.

Updates to test/support/heartwood-version must also be reflected in
flake.nix in inputs.heartwood.url.
2024-01-29 18:58:44 +00:00
Rūdolfs Ošiņš f9b1e5bf79 Install deps regardless of cache hit 2024-01-29 18:54:25 +00:00
Sebastian Martinez ef7a2659b5 Fixes e2e test suite relation with seed.radicle.garden
- Due to missing preferredSeed config option we where trying to connect to
seed.radicle.garden on the fixture creation.
- This commit also starts first nodes before httpds due to the config
being updated by the node.
2024-01-29 17:17:03 +01:00
Sebastian Martinez 06f43a82a9 Change font in TextInput component 2024-01-26 14:45:01 +00:00
Sebastian Martinez a585c2264a Display CobStateButton in every Patch tab 2024-01-26 14:44:56 +00:00
Sebastian Martinez e31b5efe7d Set Sidebar state from localStorage 2024-01-26 14:44:49 +00:00
cloudhead e9be685edf Fix code around default policies
Make the code a little clearer and ensure that we are always calling the
`Config` and not the `Store`, so that we fallback on the default policy.
2024-01-25 21:11:08 +01:00
Sebastian Martinez 7fdcd816d1 Add missing absolute timestamps back as title tooltip 2024-01-25 17:05:07 +00:00
Sebastian Martinez d50f0ca434 Don't push empty project description to page title 2024-01-25 16:25:47 +00:00
Sebastian Martinez 27dcde41b0 Update actions in github workflow to v4 2024-01-25 16:14:16 +00:00
Sebastian Martinez 908c10b3a9 Update dependencies 2024-01-25 16:14:16 +00:00
cloudhead 646fb7a24b httpd: Don't show unseeded repos 2024-01-25 16:31:28 +01:00
Rūdolfs Ošiņš 65e906fd07 Bump heartwood version
This fixes the landing page not showing local projects anymore.
2024-01-25 11:58:53 +00:00
Sebastian Martinez 9ee2a4578f Add share button 2024-01-24 21:58:18 +01:00
Sebastian Martinez 9ca438ad8e Run patch editing sequentially 2024-01-24 13:50:56 +00:00
dnlklmn e0154ef94d Animate sidebar 2024-01-24 13:34:38 +00:00
dnlklmn 060a7f1b54 Tweak commit header 2024-01-24 12:25:47 +00:00
dnlklmn 14716208e4 Add border below issue header 2024-01-24 12:25:47 +00:00
dnlklmn acf970709e Remove gap between in-line tabs 2024-01-24 12:25:47 +00:00
Fintan Halpenny 5b3d7b7652 radicle: pinned repositories configuration
Introduce pinned repositories to the `profile::Config`, i.e.
`config.json`.

This is used for pinning repositories in the httpd `/projects` handle.

To allow returning all repositories, an `all` query parameter is also
included.

This is non-backwards compatible change, since we introduce the `show`
query parameter which, if not supplied, will default to `pinned`.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-01-24 10:55:27 +01:00
Rūdolfs Ošiņš da2ff236b2 Remove unfinished contributor tab from project source view 2024-01-23 14:52:24 +00:00
Sebastian Martinez 196beca898 Change titles to font-weight semibold 2024-01-23 10:14:37 +01:00