Monorepo for Tangled tangled.org

knotmirror: add manual resync/cancel #1166

deleted opened by boltless.me targeting master from sl/knotmirror
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:xasnlahkri4ewmbuzly2rlc5/sh.tangled.repo.pull/3mh3qbj6ypn22
Interdiff #0 #1
knotmirror/adminpage.go

This file has not been changed.

knotmirror/knotmirror.go

This file has not been changed.

knotmirror/models/models.go

This file has not been changed.

knotmirror/resyncer.go

This file has not been changed.

knotmirror/templates/base.html

This file has not been changed.

knotmirror/templates/repos.html

This file has not been changed.

History

2 rounds 3 comments
sign up or login to add to the discussion
1 commit
expand
knotmirror: add manual resync/cancel
expand 3 comments

knotmirror/adminpage.go:45

I think it would be nicest to build all our UI through the main tangled appview UI to build on top of the auth. internal-tool-ui from scratch for one-off things like this turn into a bag full of not-documented random UIs that nobody ever knows or visits, ask me how I know

@lewis.moe Seems like I forgot to remove temporary comment again... 😅
Few design choices I made for internal admin page:

  • I'm using htmx from external CDN to make knotmirror build step simpler
  • Those endpoints are used through htmx based web interface so I can safely remove that comment.

I personally think vibe-coded admin page backed by JSON based API would fit better (just like indigo/relay/relay-admin-ui) but I didn't want to deal with LLM or whole npm business so I ended up writing basic html templates for the admin page. If someone could submit a JS slop version, I'd prefer it tbh. It's just an admin page intended to be interactive as much as possible and we won't touch it often. It's pretty basic so we can rewrite everything whenever we want to.

Also we can easily hide the admin page with basic password authentication if frontend is hosted separately from api.

But for this time, I found simple dedicated templates hosted through tailscale network was faster & simplest solution. Do you think we should reuse some bits from appview UI and introduce whole session management stuffs?

yeah no need to re-invent the wheel, what you have already is good

This pull has been deleted (possibly by jj abandon or jj squash)
1 commit
expand
knotmirror: add manual resync/cancel
expand 0 comments