architect-team / architect-cli

Command line interface for running Architect services locally
https://docs.architect.io
37 stars 13 forks source link

Local UI WIP #910

Open TylerAldrich opened 1 year ago

TylerAldrich commented 1 year ago

This uses the server that provides the overlay to also add a couple endpoints to view logs/restart a specific service. There's an extremely minimal UI as well available at the root route, and the overlay js was moved to /overlay.js.

Screenshot of the very awesome™ UI and the terminal running architect dev after clicking the restart button:

image

I also updated the overlay so the logs/restart buttons run the actions directly (logs will open a new window, restart will restart the service immediately).

This may not be the actual desired behavior, but that was my leaping off point - since this is just a draft I left it in for now, want to validate whether there's anything here we want to continue working on before going further. Lots of cleanup and improvements if we do want to go further, like making the server code not a mess, but it's functional for a proof-of-concept 😛

To test this: