sourcehut is super confusing
from verstra@programming.dev to programming@programming.dev on 24 Jan 2025 10:41
https://programming.dev/post/24445191

Anyone using soucehut (sr.ht)? Can you please explain to me how you navigate the site?

I really like the minimalist approach and extremely fast website UI, but I just cannot navigate the site.

If I’m looking at source of a repo on git.sr.ht and want to see open tickets, how do I navigate to todo.sr.ht ? If I click on “todo” at the top, it takes me to my todo lists, not todo of the project I was just looking at.

#programming

threaded - newest

frankenswine@lemmy.world on 24 Jan 2025 11:01 next collapse

to connect sub-functionalities (like git and todos) i think one needs a top-level project. from the project you can navigate to all the connected apps/functionalites (or however they are called on sr.ht)

ambitiousslab@lemmy.ml on 24 Jan 2025 11:03 next collapse

I agree, it’s a great UI in terms of speed and no JS, but it’s not super intuitive and not helped by the way it’s been split into modules.

Basically, each subdomain (git.sr.ht, todo.sr.ht etc) doesn’t link to the others - the only one that links everywhere is the root “sr.ht”. You can think of sr.ht as a “hub” that links to the others. So - to take an example:

  • You can open “tickets” (todo.sr.ht) from sr.ht/~delthas/senpai/
  • But - if you click on “source” (git.sr.ht), the references to the other pages anymore (including back to the hub)

So, in your case, if you replace git.sr.ht with just sr.ht in the URL, it should take you back to the “hub” for that project. Then, if the tickets feature is enabled, you should see a link to “tickets” there.

verstra@programming.dev on 24 Jan 2025 12:39 collapse

Well, editing urls is not a convenient way of navigating a website.

I wish there would be at least a link from each of the modules back to the “hub” for that project.

Deckweiss@lemmy.world on 24 Jan 2025 12:13 next collapse

I don’t navigate the site at all.

I just use the commandline to push commits to repos.

For creating a new repo on sr.ht I have written a script that uses the GraphQL API (which is horribly documented in my opinion and required days of trial and error). It is not meant for general users and is specific to my needs, but anyone who is interesred can find it linked below.

If you want to use it, you have to run git init and do a commit first. Everything else should be explained in the help. The script does some other stuff that I wanted when migrating all my projects from github, which you should be able to easily modify.

clbin.com/EII4R

(unlicense)

paequ2@lemmy.today on 24 Jan 2025 19:56 next collapse

Create a new repo locally.

git init
git add .
git commit -m "Initial commit"

Then to create a new remote repo, you can do this.

git remote add origin git@git.sr.ht:~user/my-new-repo
git push origin main

You’ll get a message that says.

remote: 
remote:         NOTICE
remote: 
remote:         You have pushed to a repository which did not exist. ~user/my-new-repo
remote:         has been created automatically. You can re-configure or delete this
remote:         repository at the following URL:
remote: 
remote:         https://git.sr.ht/~user/my-new-repo/settings/info
Deckweiss@lemmy.world on 25 Jan 2025 13:08 collapse

You forgot a small detail.

Afaik you can not change repo visibility this way (without using the web UI or the GraphQL API). So if the goal is to avoid the web UI you’d have to add a step (which you can read up on in the script I shared).

Same for the repo description (but maybe there is a git native way, idk).

Great write up otherwise, thank you!

Aatube@kbin.melroy.org on 25 Jan 2025 02:16 collapse

but the question is about navigating to tickets

Deckweiss@lemmy.world on 25 Jan 2025 02:46 collapse

I would have known that if I had the attention span to read all that text from OP

Aatube@kbin.melroy.org on 25 Jan 2025 03:03 collapse

have you tried bionic reader?

FizzyOrange@programming.dev on 24 Jan 2025 20:42 next collapse

Yeah I just took a look at it. First thing I did was click on the “source” tab on a repo. That actually makes the source tab disappear? Clearly not designed by anyone who has any experience designing sane UI.

I think Gitlab and Forgejo are better options, and not run by a creep. Forgejo is similarly fast and actually has a sane UI. The tabs don’t disappear!

[deleted] on 25 Jan 2025 01:53 next collapse

.

Aatube@kbin.melroy.org on 25 Jan 2025 02:15 next collapse

What did DeVault do?

badmin@lemm.ee on 25 Jan 2025 05:22 collapse

sizeof.cat/project/the-devault-report/

paequ2@lemmy.today on 25 Jan 2025 07:53 next collapse

Well, that was disappointing. I guess that explains why he deleted his Mastadon account recently.

cd_slash_rmrf@programming.dev on 25 Jan 2025 18:04 collapse

was this taken down? website connection times out, and is “excluded” from the way back machine

edit: found it archived from here (I’m not really sure what to think about this response article tbh) blenderdumbass.org/…/Is_The_DeVault_Report_a_Spit…

archived report: dmpwn.info

paequ2@lemmy.today on 25 Jan 2025 07:48 collapse

Forgejo

I believe codeberg.org is a hosted Forgejo instance. It has a more familiar UI, similar to GitHub.

Although, they have restrictions on the types of projects they’re willing to host.

starshipwinepineapple@programming.dev on 28 Jan 2025 01:13 collapse

Notably codeberg is not a corporate owned like github/gitlab, and you can become a voting member of the nonprofit through donations. Pretty neat imo. I made an account there last year but just got around to creating a repo there for a smaller project. It was straightforward and familiar.

One thing that’s holding me back though is the CI is in closed testing but you can request access.

Aatube@kbin.melroy.org on 25 Jan 2025 01:58 collapse

https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3CCAJ8xHvVg2nRrystBjv8rLPCdMRijuaHQb8DsopiBtrW=1oF+BQ@mail.gmail.com%3E

https://todo.sr.ht/~sircmpwn/hub.sr.ht/15

This. It is a problem and it is prioritized.
—Drew DeVault, 3 years ago

As a fellow sr.ht fan, I strongly sympathize.