Add AI context item usage data and page
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3550034. -->
Reported by: [kristen pol](https://www.drupal.org/user/8389)
Related to !35
>>>
<p>--- AI TRACKER METADATA ---<br>
Update Summary: Add AI context item usage data and page<br>
Additional Collaborators: @kristen_pol<br>
AI Tracker found here: <a href="https://www.drupalstarforge.ai/">https://www.drupalstarforge.ai/</a><br>
--- END METADATA ---</p>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>In order to update entities later, we need to know what context was used when touching those entities.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Create usage data: id, date, context item id, agent machine name, entity id (if relevant)</p>
<ul>
<li>If the context is used for the agent and entity id pair, update the date</li>
<li>Add a Usage page that shows up to the left of the Settings page and has its own permission</li>
</ul>
<p>This mapping will be used when updating entities later when context changes</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<ul>
<li>Add schema and code</li>
<li>Test and review</li>
<li>Commit :)</li>
</ul>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>See example images added in comments</p>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>Has own database schema</p>
<h3 id="summary-ai-usage">AI usage</h3>
<p>The code associated with this issue was developed using AI tools.</p>
<p>A human worked with the AI tool to:</p>
<ul>
<li>Clarify the requirements</li>
<li>Spec out the plan and architecture</li>
<li>Create the code</li>
</ul>
<p>The human:</p>
<ul>
<li>Reviewed the code</li>
<li>Manually tested the functionality</li>
<li>Requested adjustments from AI</li>
<li>Adjust the code themselves when necessary</li>
</ul>
<p>Issue credit is still relevant for humans working with AI as they are using AI as a tool and not to do everything for them. It requires human expertise and oversight to utilize AI effectively and efficiently in addressing these issues.</p>
> Related issue: [Issue #3567803](https://www.drupal.org/node/3567803)
> Related issue: [Issue #3559379](https://www.drupal.org/node/3559379)
issue