Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create highway ctrl with Charm v2 #7

Open
plastikfan opened this issue Dec 9, 2024 · 2 comments
Open

create highway ctrl with Charm v2 #7

plastikfan opened this issue Dec 9, 2024 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@plastikfan
Copy link
Contributor

plastikfan commented Dec 9, 2024

see: bubbletea v2

Create a highway control, that allows a multiple threads to be represented each by a lane of execution. The highway gets updated to grow and shrink as the pool size changes. This control is only suitable for pools of small size, so that it can be easily rendered on a screen; probably should define a hard limit, perhaps 24?

Or to make it more scalable, we remove the limit and define a window over the highway. The window shows how wide the higway is in terms of lanes, then let the client define which lanes are visbile in the window, perhaps by last updated time.

Should be created as a bubble to aid in re-use. Actually, once complete, tyro probably is not the best place to host this highway bubble. So in order for the history of it development to not be lost, we should probably come up with an appropriate location. Perhaps we have another snvilised bubbles module.

to use v2:

go get github.com/charmbracelet/bubbletea/[email protected]
go get github.com/charmbracelet/bubbles/[email protected]
go get github.com/charmbracelet/lipgloss/[email protected]
@plastikfan plastikfan self-assigned this Dec 9, 2024
@plastikfan plastikfan added the feature New feature or request label Dec 9, 2024
@plastikfan plastikfan changed the title define ui with Charm v2 create highway ctrl with Charm v2 Dec 9, 2024
@plastikfan
Copy link
Contributor Author

plastikfan commented Dec 10, 2024

bubbletea examples:

  • chat (vertical bar): this is just this char: "┃ ", used as the prompt of a textarea bubble
  • composable-views (box)
  • glamour (big box)
  • package-manager (progress)
  • paginator (dots, activity progress)
  • progress-animated
  • spinner/spinners
  • table
  • tui-daemon-combo (architect of this is of most interest to the highway)

@plastikfan
Copy link
Contributor Author

plastikfan commented Dec 20, 2024

  • viewport: The viewport bubble (eg chat) will be useful when the highway contains more lanes than can easily be rendered at a single time. It will provide the user with the ability to use the scroll wheel to move the lanes up and down inside the visible portion of the highway.

  • paginator: an example in bubbletea, which provides a way of repesenting multiple pages of content. Multiple lanes that overflow a single page could use this scheme to allow for viewing multiple pages of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant