Tags: kriuchkov/tock
Tags
feat(weekly-activity): implement renderWeekBar for segmented project … …display and add related tests (#91) * feat(weekly-activity): implement renderWeekBar for segmented project display and add related tests * feat(tag-colors): add support for selective tag color usage in Timewarrior integration
feat(tag-colors): implement per-tag color support and update related … …configuration (#88) * feat(tag-colors): implement per-tag color support and update related configuration * feat(build): add Docker build command for the tock application * feat(format): enhance decimal hour formatting to support configurable precision * feat(tag-colors): enhance project rendering with tag color support in calendar view * feat(calendar): improve project tag color handling in viewport content update feat(timeutil): enhance decimal duration formatting with prefix support * feat(calendar): rename variable for clarity in viewport content update * feat(calendar): apply project tag colors in viewport content and update tests * feat(tag-colors): update tag color parsing to support new format and add tests * feat(tag-colors): refactor tag color handling to support foreground and background colors * feat(data-refresh): add script to shift test data dates and update configuration files * fixup! feat(data-refresh): add script to shift test data dates and update configuration files * feat: update dependencies and improve tag color parsing - Bump golangci-lint version to v2.12.2 in CI configuration. - Update Go version in go.mod to 1.26.3 and adjust dependencies. - Refactor tag color parsing to support explicit configuration paths. - Enhance test coverage for tag color parsing with explicit paths. - Improve activity handling in various repository adapters using slices. * feat(tag-colors): enhance tag color handling in sidebar rendering
feat(export): add --from and --to date range filtering (#84) * feat(export): add --from and --to date range filtering - Add --from flag to specify start date for export range - Add --to flag to specify end date for export range - Support filtering activities by date range - Add validation to prevent conflicting date flags - Update documentation with examples Example usage: tock export --from 2026-04-01 --to 2026-04-15 tock export --from 2026-04-01 --format json tock export --to 2026-04-15 --project Work * fix(export): fixing imports for integration pipeline * 🔥 Fix(validation): Fix parse and passing dates * 🔥 Fix(validation): Fix time parse using local timezone * 🔥 Update(refactor): Flatten activity filter logic * 📝 Add(tests): Adding validation tests for export flags * 🐛 Fix(import): Fixing timeutil import * 📝 Fix(import): apply linter
feat(add): support day parameter for time-only inputs and update docu… …mentation (#80) * feat(add): support day parameter for time-only inputs and update documentation * fixup! feat(add): support day parameter for time-only inputs and update documentation
refactoring: add activity sequence model and parsing functions (#72) * feat: add activity sequence model and parsing functions - Introduced ActivityReference struct for handling activity references with optional sequences. - Implemented ParseActivityReference and ParseActivityKey functions for parsing activity reference strings. - Added sorting and retrieval functions for activities based on their start times and sequences. - Created unit tests for the new functionality to ensure correctness. refactor: update mocks and interfaces to use models directly - Updated mock implementations of ActivityRepository and ActivityResolver to use models instead of dto. - Refactored service methods to accept models directly, improving type consistency across the codebase. - Adjusted tests to reflect changes in request types from dto to models. * Refactor and enhance various components - Update test cases in list_tui_test.go to return empty slices instead of nil for activity lists. - Modify localized_dates.go to ensure Sunday is correctly localized in both short and long formats. - Simplify output handling in remove.go by removing unnecessary error checks. - Refactor report.go to improve readability and maintainability, including breaking down large functions into smaller ones. - Clean up root.go by removing unused backend constants. - Update root_test.go to handle unexpected runtime load errors more gracefully. - Remove unnecessary comments in start.go to improve code clarity. - Enhance test_helpers_test.go to return specific errors for unconfigured stub methods. - Improve update.go to format update notifications more clearly. - Update watch.go to streamline output handling when no current activity exists. - Refactor insights analysis.go to use an accumulator pattern for better performance and readability. - Clean up localization.go by removing unnecessary synchronization for default localization. - Update checker_test.go to handle unexpected requests more robustly in tests. - Improve error handling in watching.go when pausing activities. - Clean up activity_sequence.go by removing unnecessary whitespace and improving sorting logic. * refactor: streamline localization initialization and testing * refactor: improve error handling and streamline update check logic * refactor: remove unused backendTimewarrior constant from root command
fix(cli): skip runtime init for version/completion, tighten update ch… …ecks (#71) * fix(version): read go build metadata for non-release builds * refactor(cli): simplify update check flow * refactor(cli): drop build metadata resolution, tighten update check Remove go build metadata resolution (resolveBuildMetadata, readBuildInfo, etc.) — revert to simple linker-set version variables. This reduces complexity without affecting release builds. Simplify update check: only notify when versions are semver-comparable and current is older; skip silently for unparseable versions instead of falling back to error-prone string comparison. Minor cleanups: simplify shouldSkipRuntimeContext to direct switch, fix govet shadow (ok → found), remove dead code and unused imports.
PreviousNext