Commit Graph

5 Commits

Author SHA1 Message Date
66b7f808f7 fix(test): make TestPrecheck_Unit skip gracefully when player (mpv) is not installed (as in minimal CI runners); prevents os.Exit(1) from failing go test -short for the root package
Some checks failed
CI / Test (push) Successful in 55s
CI / Build (push) Failing after 18s
2026-06-06 08:12:56 +01:00
dd34a5b21c chore(release): prepare v2.0 infrastructure (Makefile, release.sh, Gitea release workflow, installers, modern versioning) 2026-06-05 23:39:40 +01:00
e0f45bdd5e feat: add favorites management (CLI + TUI) and in-filter server search
Some checks failed
gobuild / build (push) Failing after 5s
- New `gostations fav` subcommand with `list`, `add`, `del` (supports index, URL, or search flags)
- TUI favorites toggle via `f` key; favorites auto-detected on load for "Your Favorites" title
- Pressing ENTER while filtering performs a server-side search and refreshes the list
- Default TUI now loads favorites if present, otherwise falls back to broad station lookup
- Added `sortedForDisplay` for stable fav list ordering and index-based deletion
- Tests for favorites title heuristic, sorted display, and fav del-by-index integration
2026-06-05 22:30:50 +01:00
ec5db53b8e feat(cli): default to bubbles TUI, add find/play subcmds + JSON favorites
Some checks failed
gobuild / build (push) Failing after 4s
- implement internal/ui with bubbles list + ★ fav markers, filter, enter stub
- add data/favorites (JSON roundtrip, Add/Remove, XDG), config tests
- wire subcommands: `find -j`, `play [url|search]`
- gate legacy wmenu behind --legacy; keep old flags for seeding
- fix inverted -short guards, format string, go.mod deps
- add unit tests for radio prune, player IsInstalled, ui keys, etc.
2026-06-05 21:23:11 +01:00
5bbeb66afb test: add unit and integration tests for core functionality
All checks were successful
gobuild / build (push) Successful in 21s
Added comprehensive unit and live integration tests in new files:
- commander_test.go: Covers isInstalled and subExecute functions
- filer_test.go: Covers createIniFile with various scenarios
- radiomenu_test.go: Covers Short, Quit, and RadioMenu
- stations_test.go: Covers showVersion and precheck

These tests ensure reliability across happy paths, edge cases, and live environments.
2026-03-03 19:21:24 +00:00