Skip to content

create highway ctrl with Charm v2 #7

@plastikfan

Description

@plastikfan

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/v2@v2.0.0-alpha.2
go get github.com/charmbracelet/bubbles/v2@v2.0.0-alpha.2
go get github.com/charmbracelet/lipgloss/v2@v2.0.0-alpha.2

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions