Skip to content

Conversation

@memowe
Copy link
Owner

@memowe memowe commented Oct 16, 2025

Replaces #2

@memowe memowe self-assigned this Oct 16, 2025
@memowe memowe force-pushed the ansi-tui branch 2 times, most recently from b52e1c5 to bd68f40 Compare October 22, 2025 12:20
@memowe
Copy link
Owner Author

memowe commented Oct 23, 2025

TODO

  • Show duration in current status
  • Show session duration after clock out
  • Completion for multiple tags in one line
    • Fix tests
  • Completion should show all entries when input is empty
  • Report integration

@memowe memowe force-pushed the ansi-tui branch 2 times, most recently from c0db88b to d0d96de Compare October 24, 2025 08:38
@memowe
Copy link
Owner Author

memowe commented Oct 24, 2025

TODO

  • Example in README

@memowe memowe requested a review from Copilot October 24, 2025 18:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a simple interactive terminal user interface (TUI) for the time tracking tool, replacing the previous brick-based approach with haskeline for a lighter-weight solution.

Key Changes:

  • Replaced the brick UI library with haskeline for terminal interactions
  • Added a new TUI executable (t5) with interactive prompts for clocking in/out and viewing reports
  • Enhanced the completion system with haskeline integration and case-insensitive matching

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
terminal-time-tracking-tool.cabal Replaced brick dependency with haskeline and added new t5 executable
t4-tui/TUI.hs New interactive TUI implementation using haskeline for user input and completion
lib/Completion.hs Added haskeline integration functions and made completion matching case-insensitive
lib/T4/Report.hs Extracted showDurMap function to format duration maps as strings
t4-commands/Commands.hs Simplified report command logic and moved formatting to T4.Report module
lib/Util.hs Added lastMaybe helper function for safe list operations
test/UtilSpec.hs Added tests for the new lastMaybe function
test/T4/ReportSpec.hs Added tests for showDurMap text report formatting
test/CompletionSpec.hs Updated tests for case-insensitive matching and added haskeline completion tests
README.md Added documentation for running the new t5 TUI

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@memowe memowe marked this pull request as ready for review October 24, 2025 19:14
@memowe memowe merged commit 9d9e07a into main Oct 27, 2025
2 checks passed
@memowe memowe deleted the ansi-tui branch October 27, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants