Skip to content

Log AI settings clearup into activity log#4449

Merged
nelsonkopliku merged 2 commits into
mainfrom
log-ai-settings-clears
Jul 3, 2026
Merged

Log AI settings clearup into activity log#4449
nelsonkopliku merged 2 commits into
mainfrom
log-ai-settings-clears

Conversation

@nelsonkopliku

Copy link
Copy Markdown
Member

Description

This PR makes sure that clearing up AI settings is tracked in the activity log.

Follow up:

  • UI changes
  • e2e tests

How was this tested?

Automated and IRL.

image image

@nelsonkopliku nelsonkopliku self-assigned this Jul 2, 2026
@nelsonkopliku nelsonkopliku added the enhancement New feature or request label Jul 2, 2026
@nelsonkopliku nelsonkopliku added this to the 3.2.0 milestone Jul 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the activity logging system to track “clearing” a user’s AI configuration as a new activity type, wiring it through the backend activity catalog, activity log type allowlist, and frontend activity-type configuration/tests.

Changes:

  • Add a new activity type (ai_configuration_deletion) to represent clearing AI configuration and include it in user-management activity type lists.
  • Map AIConfigurationController.clear_ai_configuration (204) to the new activity type in the backend activity catalog.
  • Add frontend activity-type constant/config and update related JS/Elixir tests to include the new type.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/trento/activity_logging/activity_catalog_test.exs Extends activity catalog expectations and adds a scenario for detecting clear-AI-config activity.
test/trento/activity_log_test.exs Updates inclusion/exclusion tests to account for the new activity type.
test/trento_web/controllers/v1/activity_log_controller_test.exs Updates the user-management activity type list used by controller tests.
lib/trento/activity_logging/activity_catalog.ex Adds connection activity mapping for clear_ai_configuration:ai_configuration_deletion (204).
lib/trento/activity_log.ex Adds "ai_configuration_deletion" to the user-management log type exclusion list.
assets/js/lib/model/activityLog.test.js Updates frontend model tests to include the new activity type.
assets/js/lib/model/activityLog.js Adds frontend constant and UI config entry for ai_configuration_deletion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/trento/activity_logging/activity_catalog_test.exs Outdated
Base automatically changed from clear-ai-settings-action to main July 3, 2026 07:20
nelsonkopliku and others added 2 commits July 3, 2026 09:24
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@nelsonkopliku nelsonkopliku force-pushed the log-ai-settings-clears branch from 05e6cde to 2694ff9 Compare July 3, 2026 07:24
@nelsonkopliku nelsonkopliku merged commit 3acb586 into main Jul 3, 2026
7 checks passed
@nelsonkopliku nelsonkopliku deleted the log-ai-settings-clears branch July 3, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

3 participants