Commit graph

122 commits

Author SHA1 Message Date
661a0ce230 chore(deps): update rust crate toml to v1.1.2
Some checks failed
Continuous Integration / Build Package (push) Has been cancelled
Continuous Integration / Lint, Check & Test (push) Has been cancelled
2026-04-03 02:09:50 +02:00
2398bee8d9 chore(deps): update rust crate indexmap to v2.13.1
Some checks failed
Continuous Integration / Lint, Check & Test (push) Has been cancelled
Continuous Integration / Build Package (push) Has been cancelled
2026-04-03 00:06:27 +00:00
aa8f83e321
fix: replace vec! with array to satisfy clippy useless_vec lint
All checks were successful
Continuous Integration / Build Package (push) Successful in 26s
Continuous Integration / Lint, Check & Test (push) Successful in 42s
2026-04-02 18:36:10 +02:00
926a239d7e
docs: add todo edit/done and --show-future documentation
Some checks failed
Continuous Integration / Lint, Check & Test (push) Failing after 51s
Continuous Integration / Build Package (push) Successful in 1m46s
Document the new todo command features:
- Numbered task display
- `streamd todo N edit` for editing tasks
- `streamd todo N done` for marking tasks done
- `--show-future` flag for including future tasks
- Add R21 specification for todo command behavior
2026-04-02 18:29:02 +02:00
e05e9cfd90
test(todo): add comprehensive unit tests for todo features
Add tests for:
- @Done insertion at various line positions
- Future task filtering with show_future flag
- Task sorting by moment ascending
- Error message formatting for all new error variants
- Trailing newline preservation
2026-04-02 18:28:13 +02:00
124a5b7e2a
feat(todo): add numbered tasks, edit, done, and future filtering
Implement smoother todo editing with the following features:
- Display numbered tasks [1], [2], etc. in `streamd todo`
- Add `streamd todo N edit` to open editor at task line
- Add `streamd todo N done` to insert @Done after @Task
- Add `--show-future` flag to include future tasks (hidden by default)
2026-04-02 18:27:19 +02:00
a8c41ec833
refactor: use chrono for month names
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m20s
Continuous Integration / Build Package (push) Successful in 1m40s
2026-04-02 18:18:48 +02:00
d11a35c157
refactor(timesheet): use repeat() for separator lines and sort points before grouping
All checks were successful
Continuous Integration / Build Package (push) Successful in 25s
Continuous Integration / Lint, Check & Test (push) Successful in 41s
2026-04-02 17:07:36 +02:00
b51fb511ac
fix(timesheet): display zero hours as positive instead of negative zero 2026-04-02 17:07:06 +02:00
7bee32886f
feat(timesheet): sort months ascending so newest is at bottom 2026-04-02 17:06:28 +02:00
070a47e241
docs: add timesheet management documentation
Update README.md with:
- Repository configuration section for .streamd.toml
- Timesheet periods configuration example
- Description of timesheet report features

Update REQUIREMENTS.md with:
- R18a: Timesheet report configuration format
- R18b: Day type rules for expected/actual hours calculation
- R18c: Timesheet report warning types
- Updated R20 command description
2026-04-02 16:22:28 +02:00
ca43106486
feat(timesheet): add formatted report output to CLI
Replace CSV output with formatted table display showing:
- Monthly breakdown with expected/actual hours per day
- Day types (Regular, Sick Leave, Vacation, Holiday, Flex Day, etc.)
- Warning indicators for missing days and overlapping timecards
- Monthly summaries with total expected/actual hours
- Cumulative balance across all months
- Detailed warnings section at the end

Shows helpful message when no .streamd.toml configuration is found.
2026-04-02 16:22:27 +02:00
1a716f6d0e
feat(timesheet): add report generation logic
Implement the core report generation that:
- Loads .streamd.toml configuration
- Calculates expected hours based on periods and day types
- Calculates actual hours following day type rules:
  - Sick leave: max(expected, worked)
  - Vacation: expected + worked
  - Flex day: 0
  - Holiday: 0 expected
- Generates warnings for missing days, overlapping timecards,
  and work outside configured periods
- Calculates monthly and cumulative balances
- Sorts months in descending order
2026-04-02 16:22:26 +02:00
e0ba2cddf3
feat(timesheet): add overlap detection for timecards
Add find_overlapping_timecards function to detect overlapping time
ranges on the same day. This is used to generate warnings in the
timesheet report.
2026-04-02 16:22:25 +02:00
92ca364e55
feat(timesheet): add report data structures
Add DayReport, DayType, DayWarning, MonthReport, and TimesheetReport
structs for generating timesheet reports. These support:
- Day types (Regular, SickLeave, Vacation, Holiday, FlexDay, Weekend, Missing, OutsidePeriod)
- Warnings for missing days, overlapping timecards, and outside-period work
- Monthly and cumulative calculations
2026-04-02 16:22:24 +02:00
92c8e9712a
feat(timesheet): add configuration model with period validation
Add TimesheetConfig and Period structs for configuring timesheet
periods with expected working hours per week. Include RepositoryConfig
for loading .streamd.toml with timezone and timesheet configuration.

Validation ensures:
- No overlapping periods
- Valid date ranges (start <= end)

Also adds chrono-tz dependency for timezone support.
2026-04-02 16:22:21 +02:00
38597e9fbb fix(deps): update rust crate directories to v6
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 3m2s
Continuous Integration / Build Package (push) Successful in 3m32s
2026-04-02 16:19:34 +02:00
55d55ffb25 fix(deps): update rust crate toml to v1
Some checks failed
Continuous Integration / Lint, Check & Test (push) Has been cancelled
Continuous Integration / Build Package (push) Has been cancelled
2026-03-31 00:08:52 +00:00
d548842fbb fix(deps): update rust crate toml to 0.9
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 2m18s
Continuous Integration / Build Package (push) Successful in 2m25s
2026-03-30 02:18:22 +02:00
3b2d8c7e63 fix(deps): update rust crate pulldown-cmark to 0.13
Some checks are pending
Continuous Integration / Lint, Check & Test (push) Waiting to run
Continuous Integration / Build Package (push) Waiting to run
2026-03-30 02:18:10 +02:00
a7579a7083 fix(deps): update rust crate itertools to 0.14
Some checks are pending
Continuous Integration / Lint, Check & Test (push) Waiting to run
Continuous Integration / Build Package (push) Waiting to run
2026-03-30 02:15:24 +02:00
f29840313d chore(deps): pin dependencies
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 2m48s
Continuous Integration / Build Package (push) Successful in 3m9s
2026-03-30 00:06:20 +00:00
8d07a86fc4
chore: switch from yaml to toml
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m47s
Continuous Integration / Build Package (push) Successful in 2m20s
2026-03-29 19:14:51 +02:00
ed493cff29
refactor: rewrite in rust
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m38s
Continuous Integration / Build Package (push) Successful in 1m54s
2026-03-29 18:28:03 +02:00
20a3e8b437
feat: add streamd logo
All checks were successful
Continuous Integration / Build Package (push) Successful in 31s
Continuous Integration / Lint, Check & Test (push) Successful in 47s
2026-02-15 17:40:17 +01:00
d89ad8b131
build: add /result to .gitignore
All checks were successful
Continuous Integration / Build Package (push) Successful in 1m11s
Continuous Integration / Lint, Check & Test (push) Successful in 1m24s
2026-02-15 17:33:27 +01:00
ca6b5bbd4d
fix: include dev deps in basedpyright check environment
Use workspace.deps.all instead of workspace.deps.default so that
basedpyright can resolve test dependencies like faker.
2026-02-15 17:33:26 +01:00
ce5e476b23
ci: split workflow into check and build jobs 2026-02-15 17:33:25 +01:00
b4848bb661
build: migrate to devenv
- Add devenv.nix with Python/uv setup and git-hooks
- Add devenv.yaml and devenv.lock
- Refactor flake.nix to use devenv integration
- Update .envrc from flake to devenv
- Add devenv artifacts to .gitignore
2026-02-15 17:33:24 +01:00
f9ed0463f7
refactor: rename test/ to tests/ 2026-02-15 17:33:23 +01:00
af2debc19b
refactor!: rename package from streamer to streamd
- Rename src/streamer/ to src/streamd/
- Update all internal imports
- Update pyproject.toml project name and entry point
- Update README branding (Streamer -> Strea.md)
- Switch from pyright to basedpyright
- Bump requires-python to >=3.13
2026-02-15 17:33:22 +01:00
49cd9bcfa0
fix: resolve all basedpyright warnings
- Use collections.abc.Generator/Iterable instead of deprecated typing imports
- Replace Optional with union syntax (X | None)
- Add explicit type annotations to eliminate reportUnknownVariableType
- Use typing.cast for untyped mistletoe attributes (content, level, line_number)
- Replace mutable default arguments with None defaults (reportCallInDefaultInitializer)
- Add ClassVar annotation for model_config (reportIncompatibleVariableOverride)
- Add @override decorator for settings_customise_sources (reportImplicitOverride)
- Annotate class attributes in Tag (reportUnannotatedClassAttribute)
- Add parameter type annotations in test (reportMissingParameterType)
- Assign unused call result to _ (reportUnusedCallResult)
2026-02-15 17:33:21 +01:00
1e203d9db3 fix(deps): update dependency typer to v0.23.1
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 44s
2026-02-15 01:07:42 +01:00
2298bdaa8f chore(deps): update dependency ruff to v0.15.1
Some checks failed
Continuous Integration / Lint, Check & Test (push) Has been cancelled
2026-02-15 00:06:41 +00:00
646241f355
feat: add home-manager module output
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m19s
2026-02-14 18:00:42 +01:00
c0911307fd
docs: expand README with project overview, concepts, and usage 2026-02-14 18:00:41 +01:00
34ba9869d1 fix(deps): update dependency typer to v0.23.0
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 42s
2026-02-12 00:06:12 +00:00
82796c37df fix(deps): update dependency typer to v0.21.2
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m12s
2026-02-11 00:06:23 +00:00
13c4186ca5 chore(deps): update dependency faker to v40.4.0
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 43s
2026-02-07 00:06:13 +00:00
e0c3079ace chore(deps): update python docker tag to v3.14.3
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 41s
2026-02-05 00:04:08 +00:00
1212bf9ba1 chore(deps): update https://git.konstantinfickel.de/actions/checkout digest to de0fac2
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 42s
2026-02-03 22:10:23 +01:00
278340ce9b chore(deps): update dependency ruff to v0.15.0
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 44s
2026-02-03 21:09:32 +00:00
ecf2f091d0 chore(deps): lock file maintenance (#32)
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 1m8s
Co-authored-by: Renovate Bot <renovate@konstantinfickel.de>
Co-committed-by: Renovate Bot <renovate@konstantinfickel.de>
2026-02-02 11:47:42 +01:00
42a378f7f7 fix(deps): update dependency rich to v14.3.2
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 56s
2026-02-02 00:04:00 +00:00
0a554aae14
feat: implement basic timesheet command
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 44s
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
2026-02-01 21:56:20 +01:00
22630773ab
feat: add timecard extraction
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 45s
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
2026-02-01 17:45:56 +01:00
260400fa34
feat: add overwrite configuration
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
2026-02-01 12:09:38 +01:00
a088057b17
ci: remove type testing from pipeline
All checks were successful
Continuous Integration / Lint, Check & Test (push) Successful in 45s
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
2026-02-01 10:32:34 +01:00
eaca24b8ae
feat: implement edit-command
Some checks failed
Continuous Integration / Lint, Check & Test (push) Failing after 47s
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
2026-02-01 10:01:40 +01:00
a662077831
test: implement tests for find
Signed-off-by: Konstantin Fickel <mail@konstantinfickel.de>
2026-02-01 10:01:27 +01:00