[openstreetmap/openstreetmap-website] Calendar heatmap of user contributions on user profile (Issue #5373)

Emin Kocan notifications at github.com
Tue Dec 3 10:56:46 UTC 2024


### Problem

The current user profile page provides a detailed summary of contributions but lacks a visual representation of activity trends. A calendar heatmap, similar to GitHub's user contribution calendar, would make it easier to understand user engagement over time at a glance.

### Description

I have implemented a working calendar heatmap locally for changesets using the [cal-heatmap-rails library](https://rubygems.org/gems/cal-heatmap-rails/versions/3.6.2?locale=en) for display, querying changesets directly from the database. The heatmap visually displays daily contributions, with color intensity representing the number of changes for the changset on the given date.

**Additional Ideas:**
- Not sure if we should count changsets only in initial version or add diary entries and note creations/comments as well.

- Since we have dark mode on OSM plan is for that to be reflected on the heatmap as well.

**Next Steps:**  
I’ll open a PR after refining the implementation. In the meantime, I’d love to hear your thoughts and suggestions on this feature and the proposed contribution types.


### Screenshots

<img width="631" alt="Screenshot 2024-12-03 at 11 55 46" src="https://github.com/user-attachments/assets/dcb68c4f-f82f-4faa-b87b-d42ee29e3389">


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5373
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/5373 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241203/41902f74/attachment-0001.htm>


More information about the rails-dev mailing list