3cf4cc7f3f
feat: Implement audit trail system for dual-level validation workflow
...
This commit adds comprehensive audit logging for specimen requests and sample collection activities across all roles.
Changes Summary:
New Features:
- Added AUDIT_EVENTS table schema for tracking validation and sample collection events
- Created ApiRequestsAuditController with /api/requests/(:any)/audit endpoint to retrieve audit history
- Added dialog_audit.php view component for displaying audit trails in UI
- Integrated audit logging into validation workflow (VAL1, VAL2, UNVAL events)
Database:
- Created AUDIT_EVENTS table with columns: ACCESSNUMBER, EVENT_TYPE, USERID, EVENT_AT, REASON
- Supports tracking validation events and sample collection actions
Controllers:
- RequestsController: Now inserts audit records for all validation operations
- ApiRequestsAuditController: New API controller returning validation and sample collection history
Routes:
- Added GET /api/requests/(:any)/audit endpoint for retrieving audit trail
- Removed DELETE /api/samples/collect/(:any) endpoint (uncollect functionality)
Views Refactoring:
- Consolidated dashboard layouts into shared components:
- layout.php (from layout_dashboard.php)
- script_requests.php (from script_dashboard.php)
- script_validation.php (from script_validate.php)
- content_requests.php (from dashboard_table.php)
- content_validation.php (from dashboard_validate.php)
- Added content_validation_new.php for enhanced validation interface
2026-01-23 16:41:12 +07:00
33ccb976cc
Refactor: Consolidate duplicate dashboard views into shared components
...
- Created shared dashboard components in app/Views/shared/:
- dashboard_config.php, dashboard_table.php, dashboard_validate.php
- dialog_sample.php, dialog_val.php, script_dashboard.php, script_validate.php
- layout_dashboard.php
- Removed duplicate views from role-specific directories (admin, cs, lab, phlebo, superuser)
- Consolidated 575-line duplicate index.php files into shared components
- Updated controllers to use new shared view structure
- Added ApiValidateController for validation endpoints
- Reduced code duplication across 5 role-based dashboards
🤖 Generated with [Claude Code](https://claude.com/claude-code )
2026-01-22 18:32:53 +07:00
02762bb355
Fix Superuser User Management and Refactor Dashboard Layouts
...
- Refactor 'app/Views/superuser/users.php' to fix user creation/editing logic using Alpine.js.
- Ensure efficient form state management (userid, username, password handling) in user modal.
- Standardize dashboard layouts and script initialization (window.BASEURL) across 'admin', 'cs', 'lab', 'phlebo', and 'superuser' main views.
- Remove redundant 'app/Views/admin/users.php' to consolidate user management.
2026-01-21 17:00:05 +07:00
mikael-zakaria
13591da5b4
Update Tampilan Yang beda antara 1 role dengan yang lain
2026-01-21 13:32:37 +07:00
mikael-zakaria
207948aeb3
Update semua role pada tempatnya done
2026-01-20 10:53:11 +07:00
mikael-zakaria
ddb76d4570
Update Role User (superuser, admin, lab, phlebo, cs) dan pengelompokan controller dan views
2026-01-20 09:56:16 +07:00