<h3 dir="auto">Description</h3>
<p dir="auto">Adds a new UserActivities module that provides structured access to a user's activity history as part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2626322073" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5298" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/5298/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/5298">#5298</a>. The module fetches and organizes activities (changesets, diary entries, comments, GPX uploads) by day and type using SQL queries.</p>
<p dir="auto">Key features:</p>
<ul dir="auto">
<li>Groups activities hierarchically by day and type</li>
<li>Supports pagination</li>
<li>Handles visibility flags</li>
</ul>
<p dir="auto">This provides a foundation for displaying user activity history in a structured timeline view.</p>
<h3 dir="auto">How has this been tested?</h3>
<p dir="auto">Added test suite in <code class="notranslate">test/lib/user_activities_test.rb</code></p>
<p dir="auto">For the context this is the UI which integrates this changes later and which is planned as part of the next PR:</p>
<a href="https://github.com/user-attachments/assets/b631b2c1-6380-448b-a60e-1ae2cf2130a9">Screenshot.2025-03-07.at.08.11.22.png (view on web)</a>

<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/5761'>https://github.com/openstreetmap/openstreetmap-website/pull/5761</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5761/commits/044b494a64cfa43faeb508ebc8bd3edd22202923" class="commit-link">044b494</a>  Add UserActivities module for structured user activity history</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5761/commits/e072c16cfe7cdcaeb4a94d525b5a58281ed9c379" class="commit-link">e072c16</a>  Add tests for UserActivities module</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5761/files">2 files</a>)</p>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5761/files#diff-4dcce50263da1d60d9d059a1dae7afc930e12b194b74e16df526741b0d0af07d">lib/user_activities.rb</a>
    (194)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5761/files#diff-c67416e5a28055e5f3d42e9253bc94833e106866c25abfba75cce499dbdcd1f5">test/lib/user_activities_test.rb</a>
    (112)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5761.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5761.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5761.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5761.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/5761">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKDSHKCCP4MVF5EJBD2TFB5ZAVCNFSM6AAAAABYQQXBLGVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEYDEMRSGA2TEOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNLPRWKDVHHIAHQFBD2TFB5ZA5CNFSM6AAAAABYQQXBLGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKZ7C66A.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/5761</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/5761",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5761",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>