summaryrefslogtreecommitdiff
path: root/internal/ui/helpers_test.go
AgeCommit message (Collapse)Author
2026-06-23Refactor status auto-clear helper for xq0Paul Buetow
2026-06-23Refactor due and age helpers for wq0Paul Buetow
2026-06-22Fix Taskwarrior date-only due labels (oq0)Paul Buetow
2026-04-08task i: remove reflect from helper testPaul Buetow
2026-04-08task b: protect regex cache with RWMutexPaul Buetow
2026-04-08Refactor UI input handlers for task 1Paul Buetow
2026-04-07Fix filter mode to handle all taskwarrior filter expressions correctlyPaul Buetow
Replace strings.Fields with shlex.Split in the filter input handler so that quoted attribute filters like description:"my task" are passed as a single argument rather than being split on whitespace. This makes proj:xxx, +tag, and any other valid taskwarrior filter expression work correctly when entered via the interactive f key in both traditional and ultra mode. Also propagate taskwarrior errors from reload() back to the user via the status bar instead of silently discarding them, so invalid filters produce visible feedback. On error the filter is rolled back to nil to avoid leaving the UI in a broken empty-list state. Extracts the filter-string parsing into a testable parseFilterInput helper in helpers.go and adds comprehensive tests in helpers_test.go. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2025-06-28fix: resolve test failures and improve code qualityPaul Buetow
- Fix file handle leak in SetDebugLog by tracking and closing previous files - Add stderr capture to all taskwarrior commands for better error messages - Fix timezone issues in date handling tests by normalizing to UTC - Change Update method to pointer receiver for consistency - Update all test type assertions to handle pointer receivers correctly - Remove unused imports and variables All tests now pass successfully. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>