Skip to content

Conversation

@Peeja
Copy link
Member

@Peeja Peeja commented Dec 8, 2025

PR Dependency Tree

This tree was auto-generated by Charcoal

@Peeja
Copy link
Member Author

Peeja commented Dec 8, 2025

Okay: ticker.go should be the start here. The issue is that each spinner ticks by itself, which is absurd when you have this many at a time. (Granted, we should also have fewer, because it should only be the ones actively uploading, but still, having each one tick is silly.) This code is adapted from Bubble Tea's spinner code, but just updates its state, exposing an incrementing integer. Then, you can plug that one time value into animation code to pick a frame to render. For a spinner, that's just frames[t % len(frames)]. That doesn't even have to be a whole component/bubble/model (the terminology is still a little weird in this library); it can just be a function of t returning a string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants