kit icon indicating copy to clipboard operation
kit copied to clipboard

User interface

Open alexec opened this issue 1 year ago • 3 comments

I would like a user interface to make debugging failures easy:

  • View logs.
  • Run tasks.

alexec avatar Jul 14 '24 17:07 alexec

Just hacked a PoC together. UI needs the following

  • Endpoint to load the UI.
  • Endpoints to get initial state.
  • Endpoint to get a stream of events to update the UI, e.g. "log message created"

alexec avatar Jul 15 '24 18:07 alexec

As an alternative to a browser-based UI, I might suggest a terminal-based UI, like k9s or lazydocker, using gocui, tview, or similar tools.

That would also fit nicely within Kit's existing UX

agilgur5 avatar Jul 15 '24 23:07 agilgur5

Discovered mprocs, which is basically what I suggested above

agilgur5 avatar Jul 30 '24 04:07 agilgur5

What features does mprocs have compared to Kit?

alexec avatar Nov 14 '24 15:11 alexec

Interactive control:

  • Filter logs by task #56
  • Dynamically start, stop, restart any configured process
  • Interactively add, duplicate, or rename processes (I'm not sure the use-case of this, but it exists)
  • Other tmux specific things like scrollback, copy, page down/up, etc (these are not necessarily relevant depending on the interface)

See also the default keymap

Configuration:

  • Remote server mode (I don't think this is particularly useful, but it exists)
  • Add entries to $PATH per process (npm run style)
  • Configure stop signaling
  • OS-specific config per process
  • Custom keymappings

See also the config

agilgur5 avatar Nov 15 '24 02:11 agilgur5