<p dir="auto">Make the heatmap data generation more modular for yearly contribution calendars and address some points from the post merge discussion of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3054031396" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5998" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5998/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5998">#5998</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6018'>https://github.com/openstreetmap/openstreetmap-website/pull/6018</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/commits/761e7611f60a1519f585d0f77c9ee93785a5ef59" class="commit-link">761e761</a>  Improve heatmap colors</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/commits/71e667b31e9482d3ad08f0c7ce202c75e8782cbb" class="commit-link">71e667b</a>  Improve heatmap data caching</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/commits/3f7fe6412d499e63d06ab0a0b1c8e290e333136d" class="commit-link">3f7fe64</a>  Extract heatmap data assembly into helper</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files">6 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files#diff-cfdccd0a9d5df5a43aaad2a35d36ebbe187c52ad5fdc9846fa189d04537adb6e">app/controllers/users_controller.rb</a>
    (36)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files#diff-a1493e4121d5bcff3f9f49b9178600e4bfa59cb3910eb6da9c2458a8db976c1d">app/helpers/heatmap_helper.rb</a>
    (25)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files#diff-30386519d94a1bf458b97c4310745cdb496249f57eb59d4200feadb4fbf4fa86">app/views/users/_heatmap.html.erb</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files#diff-78ff736409d758722403cce31873ba803b3fb526d37398ca21caa557b54dfd95">app/views/users/show.html.erb</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018/files#diff-2719d3c650da3c587f727ca3c105e6bc93a7113f85717bb15983543cf4f85ae5">test/controllers/users_controller_test.rb</a>
    (16)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6018.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6018.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6018.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6018.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6018">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJSLRIACHG7U36VES326ZYCNAVCNFSM6AAAAAB5J3PW6OVHI2DSMVQWIX3LMV43ASLTON2WKOZTGA3TAMBUHA4DONA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMMTV2ZTPORWBN4XZD26ZYCNA5CNFSM6AAAAAB5J3PW6OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLN7J2NI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6018</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6018",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6018",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>