dispatchrun / dispatch

Entrypoint of the Dispatch ecosystem.
11 stars 1 forks source link

tui: add a status bar to function call view #38

Closed chriso closed 4 months ago

chriso commented 4 months ago

This PR adds a status bar to the function call view. For now, it just shows the total number of function calls, and the number of function calls still in-flight.

I've also tidied up the help bar, adding padding and removing the t tail help item unless the user is on the logs tab.

Screenshot from 2024-05-03 11-16-42

I initially tried to condense the status message and help into one line, but it looks weird. You either have to align the help to the right, which means you have to guess a fixed width, or use the terminal width and potentially have the help dangling way to the right. If you join the two with a separator but keep it aligned to the left it also looks weird because the help bar moves as the status message changes in size.