add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
<?php
|
|
|
|
|
|
2026-03-04 15:56:58 +01:00
|
|
|
use MintyPHP\Service\Access\OperationsAuthorizationPolicy;
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
use MintyPHP\Support\Guard;
|
|
|
|
|
|
|
|
|
|
Guard::requireLogin();
|
2026-03-04 15:56:58 +01:00
|
|
|
Guard::requireAbilityOrForbidden(OperationsAuthorizationPolicy::ABILITY_ADMIN_API_AUDIT_VIEW);
|
|
|
|
|
gridRequireGetRequest();
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
2026-03-04 15:56:58 +01:00
|
|
|
$filters = gridParseFiltersFromSchemaFile(__DIR__ . '/filter-schema.php');
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
2026-03-04 15:56:58 +01:00
|
|
|
$result = app(\MintyPHP\Service\Audit\ApiAuditService::class)->listPaged($filters);
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
|
|
|
|
$rows = [];
|
|
|
|
|
foreach ($result['rows'] as $row) {
|
|
|
|
|
$statusCode = (int) ($row['status_code'] ?? 0);
|
2026-03-04 15:56:58 +01:00
|
|
|
$statusBadge = gridResolveBadgeVariant(
|
|
|
|
|
$statusCode >= 500 ? '5xx' : ($statusCode >= 400 ? '4xx' : ($statusCode >= 200 ? '2xx' : 'other')),
|
|
|
|
|
['2xx' => 'success', '4xx' => 'warning', '5xx' => 'danger']
|
|
|
|
|
);
|
add composer-unused, comprehensive docs, and project restructure
- Add icanhazstring/composer-unused as dev dependency for dependency hygiene checks
- Add German documentation (docs/) covering architecture, conventions, workflows, and developer checklists
- Add API layer (ApiAuth, ApiBootstrap, ApiResponse), audit, scheduler, custom fields, and SSO services
- Add Microsoft OIDC SSO, API token management, and user lifecycle features
- Add swagger-ui vendor integration and OpenAPI spec
- Add production Docker setup and bin/ scripts
- Update composer dependencies, config, templates, and frontend assets throughout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-22 15:27:35 +01:00
|
|
|
|
|
|
|
|
$userLabel = trim((string) ($row['user_display_name'] ?? ''));
|
|
|
|
|
$userEmail = trim((string) ($row['user_email'] ?? ''));
|
|
|
|
|
if ($userLabel === '') {
|
|
|
|
|
$userLabel = $userEmail !== '' ? $userEmail : '-';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$rows[] = [
|
|
|
|
|
'id' => (int) ($row['id'] ?? 0),
|
|
|
|
|
'request_id' => (string) ($row['request_id'] ?? ''),
|
|
|
|
|
'created_at' => dt((string) ($row['created_at'] ?? '')),
|
|
|
|
|
'method' => strtoupper((string) ($row['method'] ?? '')),
|
|
|
|
|
'path' => (string) ($row['path'] ?? ''),
|
|
|
|
|
'status_code' => $statusCode,
|
|
|
|
|
'status_badge' => $statusBadge,
|
|
|
|
|
'duration_ms' => (int) ($row['duration_ms'] ?? 0),
|
|
|
|
|
'error_code' => (string) ($row['error_code'] ?? ''),
|
|
|
|
|
'tenant_id' => (int) ($row['tenant_id'] ?? 0),
|
|
|
|
|
'tenant_label' => (string) ($row['tenant_description'] ?? ''),
|
|
|
|
|
'tenant_uuid' => (string) ($row['tenant_uuid'] ?? ''),
|
|
|
|
|
'user_id' => (int) ($row['user_id'] ?? 0),
|
|
|
|
|
'user_label' => $userLabel,
|
|
|
|
|
'user_uuid' => (string) ($row['user_uuid'] ?? ''),
|
|
|
|
|
'ip' => (string) ($row['ip'] ?? ''),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-04 15:56:58 +01:00
|
|
|
gridJsonDataResult($rows, (int) ($result['total'] ?? 0));
|