Go to file
google-labs-jules[bot] a96d3a0ece feat: Implement trending works feature and add API documentation
This commit introduces a new trending works feature to the application and adds documentation for the new API endpoint.

The feature includes:
- A new `Trending` domain model to store ranked works.
- An `UpdateTrending` method in the `AnalyticsService` that calculates a trending score for each work based on views, likes, and comments.
- A background job that runs hourly to update the trending works.
- A new `trendingWorks` query in the GraphQL API to expose the trending works.
- New tests for the trending feature, and fixes for existing tests.

This commit also includes a refactoring of the analytics repository to use a more generic `IncrementWorkCounter` method, and enhancements to the `WorkStats` and `TranslationStats` models with new metrics like `readingTime`, `complexity`, and `sentiment`.

Finally, this commit adds a new `api/README.md` file with documentation for the `trendingWorks` query.
2025-09-07 20:53:59 +00:00
.github/workflows Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
api feat: Implement trending works feature and add API documentation 2025-09-07 20:53:59 +00:00
cmd feat(analytics): Enhance analytics capabilities 2025-09-07 19:26:51 +00:00
deploy I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
internal feat: Implement trending works feature 2025-09-07 20:40:35 +00:00
ops I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
pkg/linguistics I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
test I have refactored the background jobs by moving all related logic from the syncjob/, linguistics/, and internal/enrich directories into the new internal/jobs/sync and internal/jobs/linguistics packages. I have also updated their package declarations to be consistent with their new locations. 2025-09-02 15:02:04 +00:00
.air.toml Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
.gitignore wip 2025-09-01 00:43:59 +02:00
.tool-versions wip 2025-09-01 00:43:59 +02:00
create_repo_interfaces.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
docker-compose.yml Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
Dockerfile Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
Dockerfile.dev Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
fix_domain_repos.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
fix_sql_imports.go Fix build issues and refactor for maintainability 2025-09-05 21:37:42 +00:00
go.mod feat: Implement trending works feature 2025-09-07 20:40:35 +00:00
go.sum feat: Implement trending works feature 2025-09-07 20:40:35 +00:00
gqlgen.yml feat: Refactor GORM relations and implement mutations 2025-09-06 12:45:44 +00:00
refactor.md Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
report.md docs: Update markdown files to reflect current project state 2025-09-07 12:01:11 +00:00
requirements.txt Initial commit: Tercul Go project with comprehensive architecture 2025-08-13 07:42:32 +02:00
TODO.md docs: Update markdown files to reflect current project state 2025-09-07 12:01:11 +00:00
tools.go feat: Implement analytics features 2025-09-07 16:43:15 +00:00