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

feat: migrate to tuikit-go v0.5.0 components#7

Merged
moneycaringcoder merged 4 commits intomainfrom
feat/tuikit-migration
Apr 8, 2026
Merged

feat: migrate to tuikit-go v0.5.0 components#7
moneycaringcoder merged 4 commits intomainfrom
feat/tuikit-migration

Conversation

@moneycaringcoder
Copy link
Copy Markdown
Owner

Summary

  • Bump tuikit-go v0.4.0 → v0.5.0
  • Replace manual table rendering (~394 lines) with tuikit.Table + CellRenderer closure for domain-specific styling (sparklines, flash effects, correlation colors, watchlist stars)
  • Extract MarketPanel as standalone tuikit.Component (was embedded in CryptoView)
  • Wire DualPane layout + StatusBar in main.go (replaces manual lipgloss.JoinHorizontal and RenderFooter)
  • Replace browser.go with tuikit.OpenURL(), timeAgo with tuikit.RelativeTime()
  • Replace manual DeFi yields table with second tuikit.Table instance
  • Disable tab focus cycling (WithFocusCycleKey("")) to preserve tab/shift+tab sort column cycling

Test plan

  • go build ./... passes
  • go test ./... passes (3 packages)
  • go vet ./... passes
  • Manual smoke test: verify table rendering, sparklines, flash effects, panel toggle, sort cycling, search, DeFi overlay

Replace manual table rendering with tuikit.Table + CellRenderer.
Extract MarketPanel as standalone tuikit.Component. Wire DualPane
layout and StatusBar in main.go. Replace browser.go with
tuikit.OpenURL, timeAgo with tuikit.RelativeTime. Replace manual
DeFi table with second tuikit.Table instance. Disable tab focus
cycling to preserve tab/shift+tab sort column cycling.
- Remove double border from MarketPanel (DualPane provides separator)
- Remove double width subtraction in tableWidth() (DualPane handles split)
- Pad MarketPanel lines to full width for JoinHorizontal alignment
- Move flash/liq/cursor backgrounds from CellRenderer to RowStyler
- CellRenderer now returns foreground-only styling
- Add explicit HeaderStyle to fix invisible headers with zero theme
- Cap TREND column at 20 chars (MaxWidth) to match sparkline width
- Add news-to-footer separator line
- Implement CapturesInput() for search mode
- Increase FilterCount default from 20 to 100
- Reduce # column width with MaxWidth: 4
@moneycaringcoder moneycaringcoder merged commit 429f0dd into main Apr 8, 2026
1 check passed
@moneycaringcoder moneycaringcoder deleted the feat/tuikit-migration branch April 8, 2026 14:39
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