Add date range filter with sidebar layout to audit log index#87
Draft
Copilot wants to merge 5 commits into
Draft
Add date range filter with sidebar layout to audit log index#87Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add date range filter to the application
Add date range filter with sidebar layout to audit log index
Jan 11, 2026
* chore: wip add snapshot json output Signed-off-by: Fred Carlsen <fred@sjelfull.no> * chore: add code analysis Signed-off-by: Fred Carlsen <fred@sjelfull.no> * chore: cleanup with ecs Signed-off-by: Fred Carlsen <fred@sjelfull.no> * chore: formatting + deps Signed-off-by: Fred Carlsen <fred@sjelfull.no> * refactor: misc fixes + refactoring Signed-off-by: Fred Carlsen <fred@sjelfull.no> * feat: add tests Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix: fix ecs issues Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix: fix phpstan issues Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix: param not null Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix: fix postgres incompat + add indexes fixes #70 Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fixup! fix: fix postgres incompat + add indexes Signed-off-by: Fred Carlsen <fred@sjelfull.no> * feat: new events Signed-off-by: Fred Carlsen <fred@sjelfull.no> * fix: PHPStan error and composer version for Craft 5 * fix: sort use statements alphabetically (ECS) * fix: remove version field from composer.json (strict validation) * fix: correct import ordering by namespace (ECS) * fix: update test fixture schema version to Craft 5.9 * fix: update tests to expect entry-specific event names * fix: update tests to expect *_CREATED events when isNew=true * fix: update field snapshot test to expect FIELD_CREATED event --------- Signed-off-by: Fred Carlsen <fred@sjelfull.no> Co-authored-by: mason <mason@craft-audit.dev>
Co-authored-by: sjelfull <10508+sjelfull@users.noreply.github.com>
Co-authored-by: sjelfull <10508+sjelfull@users.noreply.github.com>
Co-authored-by: sjelfull <10508+sjelfull@users.noreply.github.com>
- Change padding from 14px to 24px (Craft's --xl spacing) - Change field/button margins to 24px for consistency - Replace <nav> with <div> (semantic fix - it's a filter form, not navigation) Co-authored-by: mason
9faf330 to
2085be1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds start/end date filtering to the audit log index page using Craft CMS's standard element index layout pattern with filters in a left sidebar.
Changes
Controller (
DefaultController.php)startDateandendDatequery parametersTemplate (
index.twig)forms.dateField()macroJavaScript (
Index.js)CSS (
Index.css)Tests (
DateRangeFilterTest.php)Example Usage
Backward compatible - works without query parameters to show all logs.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
asset-packagist.org/usr/bin/php8.3 /usr/bin/php8.3 -n -c /tmp/lD8aGg /usr/bin/composer install --no-interaction(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.