Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Add rudimentary "Browse all repos on node" view
Merged did:key:z6Mkhuez...D9KR opened 8 months ago

Seemed to me there was no way to browse all the repositories being seeded on a node. On the massive public nodes this is not that useful a feature since there are too many and too jumbled an assortment, but for a smaller personal node, this feature might be valuable to make the explorer’s contents a bit easier to explore.

Went with the most unintrusive implementation of this idea for now; just enough that it “does the job” (you can access this view, and paginate the results) but does not have any of the bells and whistles it should have (search/filtering, sorting, page query parameters support).

As part of this work, since the repos section gets much more complex, I extracted the repos part of the page into its own component. Otherwise, it is just very simply allowing the parameters to the fetchRepoInfos call to be manipulated from the page.


I’ve deployed this version of the explorer to my own server, to see the results live.

https://app.seed.eldridge.cam/nodes/seed.eldridge.cam/

did:key:z6Mkhuez...D9KR opened with revision d77e0646 on base d5cf0612 +152 -65 8 months ago

Seemed to me there was no way to browse all the repositories being seeded on a node. On the massive public nodes this is not that useful a feature since there are too many and too jumbled an assortment, but for a smaller personal node, this feature might be valuable to make the explorer’s contents a bit easier to explore.

Went with the most unintrusive implementation of this idea for now; just enough that it “does the job” (you can access this view, and paginate the results) but does not have any of the bells and whistles it should have (search/filtering, sorting, page query parameters support).

As part of this work, since the repos section gets much more complex, I extracted the repos part of the page into its own component. Otherwise, it is just very simply allowing the parameters to the fetchRepoInfos call to be manipulated from the page.


I’ve deployed this version of the explorer to my own server, to see the results live.

https://app.seed.eldridge.cam/nodes/seed.eldridge.cam/

did:key:z6Mkhuez...D9KR pushed revision 2 dc2c7af1 on base d5cf0612 +158 -65 8 months ago

Adjusted appearance of the “current page” indicator.

rudolfs reviewed · 1 comment 8 months ago

Nice work!

One thing I’m on the fence about is that most views encode subviews in URL params, so you can link to any of the pages you’ve selected. For example: https://app.radicle.xyz/nodes/iris.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/patches/0433dfd5250e3b8551579b19b0b70827a5ec7a9d?tab=changes

I think it would require a bigger rewrite of this patch to pull that off. Additionally we’d have to put in some thought of what structure we want, so maybe the way you do it, is the most unintrusive way to pull it off and we can do it this way initially.

There’s a bug somewhere, chose iris.radicle.xyz as the node, then:

  1. click browse all
  2. go to page 5 (or any other)
  3. click See pinned repos
  4. it says “This node doesn’t have any pinned repositories.” although the node does have pinned repos
did:key:z6Mkhuez...D9KR pushed revision 3 d97d8723 on base d5cf0612 +165 -65 8 months ago

Fixed the mentioned bug and mobile layout

did:key:z6Mkhuez...D9KR commented on revision 1 8 months ago

I agree that this should get encoded into the URL, it wouldn’t be too much trouble to add now if that would be preferred. Could use ?tab=all&page=3, somewhat consistent with the one you’ve linked. Or that can all come as a future update, along with searching functionality, since this is not that useful a feature for any permissive node until then anyway.

did:key:z6Mkhuez...D9KR commented on revision 3 8 months ago

I agree that this should get encoded into the URL, it wouldn’t be too much trouble to add now if that would be preferred. Could use ?tab=all&page=3, somewhat consistent with the one you’ve linked. Or that can all come as a future update, along with searching functionality, since this is not that useful a feature for any permissive node until then anyway.

Defelo pushed revision 4 cb8c7294 on base d5cf0612 +175 -68 7 months ago

Show all repos if there are no pinned repos

rudolfs reviewed 7 months ago

How would this handle backwards compatibility? Like if I browsed a node that hasn’t upgraded yet to the latest httpd api?

rudolfs pushed revision 5 7ee6986b on base d5cf0612 +170 -65 7 months ago

Left align pagination on mobile and smaller screens

rudolfs accepted 7 months ago

I tweaked the alignment on mobile and smaller screens. Thanks for the contribution!

rudolfs pushed revision 6 b9d95e22 on base 5cf65724 +170 -65 7 months ago

Rebase

rudolfs merged revision b9d95e22 at 97dac7e2 7 months ago