Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

feat: migrate to blit ThemeStyles/StatsCollector/HTTPResource/Config for v0.7.5#19

Merged
moneycaringcoder merged 1 commit intomainfrom
feat/migrate-blit-v0.7.5
Apr 11, 2026
Merged

feat: migrate to blit ThemeStyles/StatsCollector/HTTPResource/Config for v0.7.5#19
moneycaringcoder merged 1 commit intomainfrom
feat/migrate-blit-v0.7.5

Conversation

@moneycaringcoder
Copy link
Copy Markdown
Owner

Summary

Migrates gitstream-tui to use the latest blit library features, removing ~290 lines of custom code that blit now provides as built-in.

Changes

  • Style system: Replace custom \Styles\ struct with \�lit.ThemeStyles()\ and \PanelStyles; replace \EventColor/\LabelColor\ with \Theme.SemanticColor()\ built-in defaults
  • Stats system: Replace \DebugLog\ stats tracking with \�lit.StatsCollector\ composition; replace manual
    enderStats()\ with \StatsCollector.View()\
  • HTTP polling: Replace \pollEvents/\ etchWithRetries/ETag cache with \�lit.HTTPResource; switch from \gh api\ CLI to direct HTTP + \gh auth token\ for auth
  • Config system: Replace manual \ConfigEditor\ fields with \�lit.Config[T].Editor()\ auto-generated from struct tags; add \�lit\ struct tags to \Config\
  • Header rendering: Replace
    enderHeader()\ with \�lit.ComponentHeader/\HealthDot/\StatusRateLimit\ helpers
  • Import cleanup: Remove direct \lipgloss/\�ubbletea\ imports from \main.go\ (use blit re-exports)
  • API update: Handle new \App.Run() -> (UpdateAction, error)\ return signature

Net change

-291 insertions, -581 deletions = -290 lines of custom code replaced by blit built-ins.

Bumps

  • \github.com/blitui/blit\ v0.1.2 → v0.2.24

After merge

Tag \�0.7.5\ will be created on main to trigger goreleaser.

…for v0.7.5

- Replace custom Styles struct with blit.ThemeStyles() and PanelStyles
- Replace EventColor/LabelColor with Theme.SemanticColor() built-in defaults
- Replace DebugLog stats tracking with blit.StatsCollector composition
- Replace manual renderStats() with StatsCollector.View()
- Replace pollEvents/fetchWithRetries/ETag cache with blit.HTTPResource
- Switch from gh CLI shelling out to direct HTTP + gh auth token
- Replace manual ConfigEditor fields with blit.Config[T].Editor()
- Add blit struct tags to Config for auto-generated config editing
- Replace renderHeader() with blit.ComponentHeader/HealthDot/StatusRateLimit
- Remove direct lipgloss/bubbletea imports from main.go (use blit re-exports)
- Handle new App.Run() (UpdateAction, error) return signature

Net: -290 lines of custom code replaced by blit built-ins
@moneycaringcoder moneycaringcoder merged commit 1e6ed90 into main Apr 11, 2026
1 check passed
@moneycaringcoder moneycaringcoder deleted the feat/migrate-blit-v0.7.5 branch April 11, 2026 22:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant