1
1
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-07 12:51:38 +01:00
gitea/models/activities
silverwind d6be18e870
Load heatmap data asynchronously (#36622)
Fixes: https://github.com/go-gitea/gitea/issues/21045

- Move heatmap data loading from synchronous server-side rendering to
async client-side fetch via dedicated JSON endpoints
- Dashboard and user profile pages no longer block on the expensive
heatmap DB query during HTML generation
- Use compact `[[timestamp,count]]` JSON format instead of
`[{"timestamp":N,"contributions":N}]` to reduce payload size
- Public API (`/api/v1/users/{username}/heatmap`) remains unchanged
- Heatmap rendering is unchanged, still shows a spinner as before, which
will now spin a litte bit longer.

Signed-off-by: silverwind <me@silverwind.io>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2026-02-17 14:03:55 +00:00
..
action_list.go Enable nilnil linter for new code (#36591) 2026-02-16 09:57:18 +00:00
action_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
action.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
notification_list.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
notification_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
notification.go Fix incorrect pull request counter (#35819) 2025-11-03 20:52:13 +00:00
repo_activity.go Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
statistic.go Refactor FindOrgOptions to use enum instead of bool, fix membership visibility (#34629) 2025-06-09 03:30:34 +00:00
user_heatmap_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
user_heatmap.go Load heatmap data asynchronously (#36622) 2026-02-17 14:03:55 +00:00