[PR #1266] [MERGED] Feat/tui browse #6097

Closed
opened 2026-04-21 07:13:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/veggiemonk/awesome-docker/pull/1266
Author: @veggiemonk
Created: 3/10/2026
Status: Merged
Merged: 3/10/2026
Merged by: @veggiemonk

Base: masterHead: feat/tui-browse


📝 Commits (2)

  • 86aa439 Add interactive TUI browser command using Bubbletea v2
  • e4c4cff Add TUI pagination, scrolloff, and fix visual overflow

📊 Changes

12 files changed (+2555 additions, -645 deletions)

View changed files

📝 Makefile (+3 -0)
📝 cmd/awesome-docker/main.go (+59 -6)
📝 config/health_cache.yaml (+1509 -621)
📝 go.mod (+17 -0)
📝 go.sum (+40 -0)
📝 internal/cache/cache.go (+5 -3)
📝 internal/scorer/scorer.go (+19 -15)
internal/tui/model.go (+603 -0)
internal/tui/styles.go (+59 -0)
internal/tui/tree.go (+118 -0)
internal/tui/tree_test.go (+109 -0)
internal/tui/tui.go (+14 -0)

📄 Description

Summary

  • Add browse command that launches an interactive TUI for exploring awesome-docker entries, built with Bubbletea v2
  • Tree panel (left) shows categories with expand/collapse; list panel (right) shows entries with stats, URL, description, and health status
  • Vim-style navigation (j/k, h/l), pagination (Ctrl+D/Ctrl+U, PgDn/PgUp), jump-to-top/bottom (g/G), panel switching (Tab), filtering (/), and URL opening (Enter)
  • Scrolloff keeps context visible around the cursor; safe-width rendering prevents Unicode character overflow

Test plan

  • go build ./cmd/awesome-docker/ compiles without errors
  • go test ./internal/tui/ passes
  • ./awesome-docker browse launches the TUI
  • Navigate categories with j/k, expand/collapse with Enter
  • Switch to list panel with Tab, scroll with PgDn/PgUp and g/G
  • Filter with /, open URLs with Enter
  • Footer help text stays visible at all scroll positions
  • Selection highlight is clearly visible in both panels

🤖 Generated with Claude Code

Screenshot 2026-03-10 at 16 20 11

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/veggiemonk/awesome-docker/pull/1266 **Author:** [@veggiemonk](https://github.com/veggiemonk) **Created:** 3/10/2026 **Status:** ✅ Merged **Merged:** 3/10/2026 **Merged by:** [@veggiemonk](https://github.com/veggiemonk) **Base:** `master` ← **Head:** `feat/tui-browse` --- ### 📝 Commits (2) - [`86aa439`](https://github.com/veggiemonk/awesome-docker/commit/86aa439fb0d2d2001ec408c3bbebda3ea327c754) Add interactive TUI browser command using Bubbletea v2 - [`e4c4cff`](https://github.com/veggiemonk/awesome-docker/commit/e4c4cff75b64c2fe4ec182efa263dd0b5568ef0a) Add TUI pagination, scrolloff, and fix visual overflow ### 📊 Changes **12 files changed** (+2555 additions, -645 deletions) <details> <summary>View changed files</summary> 📝 `Makefile` (+3 -0) 📝 `cmd/awesome-docker/main.go` (+59 -6) 📝 `config/health_cache.yaml` (+1509 -621) 📝 `go.mod` (+17 -0) 📝 `go.sum` (+40 -0) 📝 `internal/cache/cache.go` (+5 -3) 📝 `internal/scorer/scorer.go` (+19 -15) ➕ `internal/tui/model.go` (+603 -0) ➕ `internal/tui/styles.go` (+59 -0) ➕ `internal/tui/tree.go` (+118 -0) ➕ `internal/tui/tree_test.go` (+109 -0) ➕ `internal/tui/tui.go` (+14 -0) </details> ### 📄 Description ## Summary - Add `browse` command that launches an interactive TUI for exploring awesome-docker entries, built with Bubbletea v2 - Tree panel (left) shows categories with expand/collapse; list panel (right) shows entries with stats, URL, description, and health status - Vim-style navigation (`j`/`k`, `h`/`l`), pagination (`Ctrl+D`/`Ctrl+U`, `PgDn`/`PgUp`), jump-to-top/bottom (`g`/`G`), panel switching (`Tab`), filtering (`/`), and URL opening (`Enter`) - Scrolloff keeps context visible around the cursor; safe-width rendering prevents Unicode character overflow ## Test plan - [ ] `go build ./cmd/awesome-docker/` compiles without errors - [ ] `go test ./internal/tui/` passes - [ ] `./awesome-docker browse` launches the TUI - [ ] Navigate categories with `j`/`k`, expand/collapse with `Enter` - [ ] Switch to list panel with `Tab`, scroll with `PgDn`/`PgUp` and `g`/`G` - [ ] Filter with `/`, open URLs with `Enter` - [ ] Footer help text stays visible at all scroll positions - [ ] Selection highlight is clearly visible in both panels 🤖 Generated with [Claude Code](https://claude.com/claude-code) <img width="1721" height="1036" alt="Screenshot 2026-03-10 at 16 20 11" src="https://github.com/user-attachments/assets/ffc92a20-8d8a-4c3c-aba1-b7d6aed97783" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-21 07:13:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-docker#6097