Skip to content

feat: user upload heatmap - #28593

Merged
jrasm91 merged 25 commits into
immich-app:mainfrom
bondeabhijeet:feat-heatmap
Jun 4, 2026
Merged

jrasm91 merged 25 commits into
immich-app:mainfrom
bondeabhijeet:feat-heatmap

Conversation

@bondeabhijeet

Copy link
Copy Markdown
Contributor

Description

Adds a GitHub-style upload heatmap to Account Settings -> Usage Statistics -> Upload activity.

The backend exposes daily upload counts for the current user through GET /users/me/stats/uploads. Query parameters are validated through a DTO, date range defaults live in the service, and the repository performs a single UTC grouped SQL query by upload day.

The web usage statistics page fetches the last 52 weeks of upload counts and renders a responsive heatmap.

Fixes # (issue)

How Has This Been Tested?

  • Ran pnpm --dir server check
  • Ran pnpm --dir web check:svelte

Screenshots (if appropriate)

image

Added GET /users/me/stats/uploads?from=YYYY-MM-DD&to=YYYY-MM-DD

Response:

{
  "userId": "uuid",
  "from": "2025-05-25",
  "to": "2026-05-24",
  "series": [{ "date": "2026-05-24", "count": 3 }],
  "summary": { "totalCount": 3 }
}

Checklist:

  • I have carefully read CONTRIBUTING.md
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Please describe to which degree, if any, an LLM was used in creating this pull request.

To understand the codebase, LLM was used. The changes were made by me, and to further top it off, LLM was used to write this description.
...

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants