Skip to content

Conversation

@lucafuser
Copy link

@lucafuser lucafuser commented Dec 14, 2025

image image

List of changes:
- Introduced `ITEM_PATH` constant in `ActivityInterface` to define the new property.
- Added `getItemPath()` and `setItemPath()` methods to `Activity` model for retrieving and setting `item_path`.
- Updated `ActivityInterface` with declarations for the `item_path` getter and setter methods.
List of changes:
- Updated `db_schema.xml` to include a new nullable `item_path` column in the admin activity log table.
- Modified `db_schema_whitelist.json` to allow the `item_path` field.
- Added relevant comments to describe the new `item_path` column purpose.
…in Activity Log

List of changes:
- Added `Structure`, `Section`, and `Group` dependencies to `SystemConfig` for handling configuration structure.
- Introduced `getHumanReadablePath` method in `SystemConfig` to generate a user-friendly path for system configuration fields.
- Injected `SystemConfig` into `Processor` to leverage the new path functionality.
- Updated `Processor` to populate `item_path` with the human-readable configuration path for system configuration logs.
- Enhanced logging to differentiate `item_name` and `item_path` for better clarity.
List of changes:
- Updated `admin_activity_listing.xml` to include a new `item_path` column with `Path` label.
- Configured the `item_path` column with text filtering and validation for required entry.
- Adjusted column comments for improved clarity.
List of changes:
- Reorganized constructor parameters in `ActivityLogListing` to include optional `JsonHelper` and `DirectoryHelper`.
- Added type hints and return types (`?array`, `array<string, string>`) to methods for improved type safety.
- Refactored `getAdminDetails` to use array shorthand, enhancing code readability.
- Updated docblocks to align with new method signatures and type annotations.
- Introduced `path` key in `getAdminDetails` output to include the `item_path` property for logs.
List of changes:
- Updated `log_listing.phtml` to include a new row displaying the `Path` detail from `adminDetails`.
- Applied consistent styling to match existing rows for `Path`, including font size and weight adjustments.
- Removed an unnecessary blank line before variable declarations for better readability.
List of changes:
- Introduced `ActivityLogListingTest` to test the core functionality of the `ActivityLogListing` block.
- Added `testGetLogListingActivityFound`, `testGetLogListingActivityNotFound`, and `testGetLogListingActivityNullableId` to validate `getLogListing` logic for various scenarios.
- Implemented `testGetAdminDetails` for verifying correct output of admin details, including username, module, and human-readable path.
- Created `testGetActivityRepository` to ensure the correct instance is returned for activity repository.
- Mocked required dependencies, such as `Activity`, `Collection`, `Browser`, and repository interfaces, to simulate realistic behavior.
List of changes:
- Updated `log_listing.phtml` to include new rows for `Scope` and `Store` details from `adminDetails`.
- Enhanced `getAdminDetails` in `ActivityLogListing` block to provide `scope` and `store_name` values.
- Added logic in `getAdminDetails` to format the `store_name` as a human-readable string, including website, group, and store names.
- Included `NoSuchEntityException` handling in case of invalid store references.
- Applied consistent styling for `Scope` and `Store` details in the UI table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant