Conversation
b52e1c5 to
bd68f40
Compare
Owner
Author
TODO
|
c0db88b to
d0d96de
Compare
Owner
Author
|
TODO
|
Contributor
There was a problem hiding this comment.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #2