Commit Graph
134 Commits
Author SHA1 Message Date
haylan ab481bfc10 Merge pull request 'chore(deps): update symfony packages' (#19) from renovate/symfony into main
Tests / build-dev (push) Successful in 3m32s
Tests / build-prod (push) Successful in 3m57s
Reviewed-on: #19
2026-08-20 04:12:09 +00:00
renovate-bot e118844864 chore(deps): update symfony packages
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 7m46s
Tests / build-prod (pull_request) Successful in 3m56s
2026-08-07 18:06:33 +00:00
haylan 5cd8f5ce19 Merge pull request 'chore(deps): update phpstan packages' (#18) from renovate/phpstan-packages into main
Tests / build-dev (push) Successful in 1m27s
Tests / build-prod (push) Successful in 1m7s
Reviewed-on: #18
2026-07-31 16:25:10 +00:00
renovate-bot 96dc1b7d09 chore(deps): update phpstan packages
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m43s
Tests / build-prod (pull_request) Successful in 3m1s
2026-07-31 14:02:44 +00:00
haylan cfde2ed798 Merge pull request 'feat(release): add workflow for creating release tags and update CHANGELOG.md' (#22) from patch-2-gitea-registry into main
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Reviewed-on: #22
0.2.1
2026-07-31 12:58:05 +00:00
haylan a24bace57a Merge branch 'main' into patch-2-gitea-registry
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m14s
Tests / build-prod (pull_request) Successful in 1m59s
2026-07-31 12:53:38 +00:00
haylan 4d479f0166 feat(release): add workflow for creating release tags and update CHANGELOG.md
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 2m14s
Tests / build-prod (pull_request) Successful in 1m59s
2026-07-31 14:52:35 +02:00
haylan b3fa891b89 Merge pull request 'fix(ci): remove local image build step for Trivy scanning' (#21) from patch-2-gitea-registry into main
Tests / build-dev (push) Successful in 1m15s
Tests / build-prod (push) Successful in 1m10s
Reviewed-on: #21
2026-07-31 12:37:47 +00:00
haylan 98bbb7017f fix(ci): remove local image build step for Trivy scanning
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m16s
Tests / build-prod (pull_request) Successful in 1m8s
2026-07-31 14:34:43 +02:00
haylan 3b1e78ebf5 Merge pull request 'feat(ci): add GitHub Actions workflow for testing and Docker builds' (#20) from patch-2-gitea-registry into main
Tests / build-dev (push) Successful in 1m11s
Tests / build-prod (push) Successful in 1m7s
Reviewed-on: #20
2026-07-31 12:22:23 +00:00
haylan a8f5680e6e fix(ci): update dev image build process and run tests in the same job
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / build-dev (pull_request) Successful in 1m14s
Tests / build-prod (pull_request) Successful in 3m20s
2026-07-31 14:17:39 +02:00
haylan 658892a639 fix(ci): remove redundant DEV_IMAGE variable and use REGISTRY directly for image tags 2026-07-31 14:07:07 +02:00
haylan 06fc829ff1 fix(ci): update dev image build process and simplify test execution
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 48s
Tests / test (pull_request) Failing after 1s
Tests / build-prod (pull_request) Successful in 3m38s
2026-07-31 14:02:51 +02:00
haylan 30a2439914 feat(ci): enhance debugging in test workflow with workspace information
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 1m10s
Tests / test (pull_request) Failing after 29s
Tests / build-prod (pull_request) Successful in 3m23s
2026-07-31 13:46:34 +02:00
haylan 222c8aaa85 fix(ci): correct indentation for loading dev image in test workflow
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 2m56s
Tests / test (pull_request) Failing after 52s
Tests / build-prod (pull_request) Successful in 3m38s
2026-07-31 10:54:50 +02:00
haylan 47d9a62db7 refactor(ci): streamline test workflow by consolidating test commands and removing unnecessary comments 2026-07-31 08:36:29 +02:00
haylan 0b1fed2f93 fix(ci): add volume mounts for PHPUnit and PHPStan runs in test workflow
Tests / build-dev (push) Skipped
Tests / build-prod (push) Skipped
Tests / test (push) Skipped
Tests / build-dev (pull_request) Successful in 3m1s
Tests / test (pull_request) Failing after 44s
Tests / build-prod (pull_request) Successful in 3m45s
2026-07-30 07:04:53 +02:00
haylan f3491ef4a6 fix(ci): downgrade actions/upload-artifact and actions/download-artifact to v3 for compatibility
Tests / build-dev (pull_request) Successful in 1m14s
Tests / test (pull_request) Failing after 38s
Tests / build-prod (pull_request) Successful in 4m2s
2026-07-17 12:41:35 +02:00
haylan d6a4f7c41f feat(ci): update Gitea workflow to include registry login and cache handling adjustments
Tests / build-dev (pull_request) Failing after 2m40s
Tests / build-prod (pull_request) Has been skipped
Tests / test (pull_request) Has been skipped
2026-07-17 12:37:12 +02:00
haylan 211edc4538 refactor(ci): reorganize test workflow to streamline Docker image handling
Tests / build-dev (pull_request) Failing after 3m28s
Tests / build-prod (pull_request) Has been skipped
Tests / test (pull_request) Has been skipped
2026-07-17 12:27:41 +02:00
haylan 14b325b3bf refactor(ci): migrate PHP setup to Docker for testing workflow
Tests / test (pull_request) Has been cancelled
Tests / docker-build (pull_request) Has been cancelled
2026-07-17 12:19:39 +02:00
haylan d15e25abf3 Merge branch 'main' into patch-2-gitea-registry
Tests / test (pull_request) Has been cancelled
Tests / docker-build (pull_request) Has been cancelled
2026-07-17 10:09:04 +00:00
haylan 53186e9a35 feat(ci): add GitHub Actions workflow for testing and Docker builds
Tests / test (pull_request) Has been cancelled
Tests / docker-build (pull_request) Has been cancelled
2026-07-17 12:07:31 +02:00
haylan 7688fd77c9 Merge pull request 'chore(docker): remove redundant composer dump-env command in build stage' (#16) from patch-2-gitea-registry into main
Reviewed-on: #16
2026-07-13 10:23:14 +00:00
haylan 6e79337a60 chore(docker): remove redundant composer dump-env command in build stage 2026-07-13 12:19:06 +02:00
haylan 68424aa28b Merge pull request 'chore(ci/cd): replaced registry url.' (#15) from patch-2-gitea-registry into main
Reviewed-on: #15
2026-07-13 10:11:00 +00:00
haylan fdc7fa700d chore(ci/cd): replaced registry url. 2026-07-13 12:10:38 +02:00
haylan fb8f25d5ff Merge pull request 'Delete TODO.md' (#14) from haylan-patch-1 into main
Reviewed-on: #14
0.2.0
2026-07-12 21:53:01 +00:00
haylan 34e558d31c Delete TODO.md 2026-07-12 21:52:51 +00:00
haylan c4dffb1dc6 Merge pull request 'Save to database' (#13) from save-to-database into main
Reviewed-on: #13
2026-07-12 21:51:57 +00:00
haylan 4825c45a7c chore(update): changelog 0.2.0 2026-07-12 23:51:19 +02:00
haylan ac515400e0 chore(phpstan): remove PHP-Stan-Errors.md
All findings it catalogued are resolved; drop the file rather than
keep a stale error log around.
2026-07-12 23:44:32 +02:00
haylan be6146d5ad chore(todo): mark completed roadmap items
Check off the incremental-fetch/store wiring, refetch command, phpstan
setup, and CLAUDE.md update items now that all are done.
2026-07-12 23:44:09 +02:00
haylan 20e943a2b5 docs(claude): document SQLite store, refetch command, and phpstan script
Update the architecture diagram and env var table to reflect the
ContributionStore tier and incremental fetch, document the
graph:contributions:refetch command, and note composer phpstan next to
the existing test commands.
2026-07-12 23:44:04 +02:00
haylan cf7bd8d70c docs(readme): correct outdated deploy docs and docker-compose examples
README had drifted from the codebase: wrong test path, a stale /health
sample response, a docker-compose volume mount pointing at a path the
image never writes to (with no SQLite data volume at all), a missing
CONTRIBUTIONS_RETENTION_DAYS example, and an architecture diagram
predating the SQLite store/refetch command. Also fixes
docker-compose.prod.yml, which was missing the data volume and
CONTRIBUTIONS_RETENTION_DAYS env var present in docker-compose.yml —
without it, a prod deployment on this file loses contribution history
on every container recreate.
2026-07-12 23:43:59 +02:00
haylan de831beaaa chore(phpstan): raise analyser memory limit and record resolved findings
Add --memory-limit=512M to the phpstan composer script — the default
128M crashed the level-8 run under parallel workers. Update
PHP-Stan-Errors.md to note all 22 catalogued findings are now resolved.
2026-07-12 23:43:52 +02:00
haylan 9c028aaf5e docs(phpdoc): document public methods across src/
Add professional PHPDoc (summary + @param/@return) to the remaining
public methods that had none or only partial coverage: GraphController's
actions, ContributionStore's accessors, SvgRenderer's render() and
private helpers (with concrete array-shape annotations), ProbeTrait,
ProviderHealthChecker, ProviderStatus, and the Contribution entity.
Also adds the matching @return shapes on SvgRendererTest's data
providers.
2026-07-12 23:43:31 +02:00
haylan 8e349c961b fix(entity): re-index ContributionCollection constructor arguments
array_map() over the variadic constructor can produce non-sequential or
string keys, which doesn't match the array<int, Contribution> property
type; re-index with array_values(). Also documents the iterator/count
accessors.
2026-07-12 23:43:01 +02:00
haylan 14ea788522 fix(renderer): coerce strtotime() result to int before formatting dates
date() expects int|null, but strtotime() returns int|false; cast to make
the type explicit for PHPStan level 8 (the date strings are always
well-formed here, so strtotime() never actually returns false).
2026-07-12 23:42:50 +02:00
haylan 4ff45b7c46 feat(store): fetch contributions incrementally and persist history in SQLite
Bound each provider's startFetch()/resolveFetch() to an optional
since/until window, wire a SQLite-backed ContributionStore into
ContributionAggregator (fetch only the trailing window past the last
stored date, merge into the store, prune by CONTRIBUTIONS_RETENTION_DAYS),
and add a graph:contributions:refetch command to force a full or ranged
re-fetch in <=365-day chunks. This is the root fix for the full
365-day-refetch timeout that used to hit on every cache miss.
2026-07-12 23:42:41 +02:00
haylan 41e88144a4 chore(namespace): rewirtten namspeace from app to GitContributionGraph. 2026-07-12 22:47:34 +02:00
haylan 91bda21f89 feat(phpstan): added php stan 2026-07-12 12:43:54 +02:00
haylan 0d7cf68771 chore(todo): checked php stan instalation and configuration. added document php stan erros as well to update readme docs 2026-07-12 12:43:33 +02:00
haylan e7f14dfd35 chore(doc): documentet all public methods 2026-07-12 12:27:42 +02:00
haylan 095f3e0253 feat(db): wired databas into services config 2026-07-12 12:25:00 +02:00
haylan e2a324b74a chore(todo): expanded todo to fix a live bug 2026-07-12 12:23:31 +02:00
haylan a76ed6efc8 chore(todo): mark completed tasks and expand step 3 detail 2026-07-11 16:46:50 +02:00
haylan bce564d68b docs(readme): fix phpunit command paths
There is no bin/phpunit (only bin/console) — the binary lives at
vendor/bin/phpunit, matching CLAUDE.md's documented commands.
2026-07-11 16:46:47 +02:00
haylan b3dc7a2298 fix(docker): target the dev stage when building for local development
docker-compose.override.yml only overrode the dockerfile, so it kept
inheriting target: final from docker-compose.yml — but Dockerfile.dev
is single-stage and has no final stage, so the dev build failed. Name
the stage in Dockerfile.dev and target it explicitly from the
override.
2026-07-11 16:46:29 +02:00
haylan 9087f91855 feat(store): finish ContributionStore and add typed entities
- Fix add()'s upsert SQL (was invalid SQL from typos) and use it for
  the new merge() as well.
- Fix remove()'s missing FROM keyword and drop the unindexed LIKE scan
  in favor of an exact match.
- Add latestDate(), all() with optional sinceDays filtering, and
  prune() with a retention-day cutoff.
- Add Contribution (immutable value object) and ContributionCollection
  (IteratorAggregate + Countable) so all() returns something typed
  instead of a raw date => count array.
- Cover all of the above with unit tests against an in-memory SQLite
  database.
2026-07-11 16:46:21 +02:00