100 Commits

Author SHA1 Message Date
01908bb002 feat: Implement status-based row coloring and enhance validation dialog
This commit implements a comprehensive status color system across the dashboard and validation interfaces, ensuring visual consistency between table rows and filter buttons.

Color System Changes:
- Updated statusRowBg mapping in script_requests.php with custom hex colors:
  * Pend: white (#ffffff) with black text
  * PartColl: pink (#ff99aa) with black text
  * Coll: red (#d63031) with white text
  * PartRecv: light blue (#a0c0d9) with black text
  * Recv: blue (#0984e3) with white text
  * Inc: yellow (#ffff00) with black text
  * Fin: green (#008000) with white text
- Added custom CSS button classes in layout.php matching row background colors
- Applied color backgrounds to table rows (Order through Tests columns)
- Removed hardcoded text-white classes, now using dynamic text colors from mapping

UI/UX Improvements:
- Table rows now have consistent color-coded backgrounds based on request status
- Filter button badges match their corresponding row background colors
- Yellow status uses black text for better readability
- Swapped Coll (yellow) and Inc (orange) colors as requested

Validation Dialog Enhancement:
- Updated dialog_val.php iframe to use dynamic URL generation
- Removed preview type selection (ID, EN, PDF options) - uses default only
- Added getPreviewUrl() method in script_validation.php
- Now uses same URL pattern as preview dialog: http://glenlis/spooler_db/main_dev.php?acc={accessnumber}

Documentation Updates:
- Added Serena MCP tool usage guidelines to AGENTS.md
- Renamed CHECKLIST.md to TODO.md
- Removed CLAUDE.md

Technical Details:
- Color mappings now include both background and text color classes
- Implemented using Tailwind arbitrary values for precise hex color matching
- Status buttons use btn-status-{status} and badge-status-{status} classes
- All 7 columns from Order through Tests have status-colored backgrounds
2026-02-02 14:27:12 +07:00
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
7ee5332edf add username edit to users page 2026-01-22 07:34:19 +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
a81a919d68 Update Merge p0_zaka dan Haris 2026-01-20 10:00:04 +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
ebc75097c1 fix: - add filterTable $watch to reset pagination - add click handler to table cells (SP_ACCESSNUMBER, HOSTORDERNUMBER, STATS) - change STATS from button to text cell 2026-01-20 09:53:56 +07:00
e7cacba1c3 feature :
- add table sort
- add sidebar menu
- remove IND, ENG on Preview
2026-01-19 16:46:05 +07:00
b29f807295 Refactor: Remove V2 namespace and consolidate role-based architecture
- Moved all V2 controllers (Lab, Requests, Samples, Users) to App\Controllers
- Removed deprecated role controllers (Admin, Doctor, Analyst, CustomerService)
- Simplified routes by removing /v2 prefix
- Added AGENTS.md with project conventions and TODO.md with task tracking
- Updated README.md with RBAC documentation
- Fixed hardcoded dates, status color mappings, and duplicate database calls
2026-01-19 10:55:10 +07:00
3b9c3dec10 add print dialog, add preview button, add print dropdown button 2025-12-16 16:44:25 +07:00
d3534e62a1 add change password per user 2025-12-10 16:37:51 +07:00
43c8823803 post to prod 2025-12-09 14:10:43 +07:00
d3703ab653 prework 2025-12-08 19:49:35 +07:00
315e2ce400 finish v2 2025-12-06 18:47:56 +07:00
656aef8f7c go go alpine ranger 2025-12-05 16:54:55 +07:00
5f6139b85d prework 2025-12-05 07:11:43 +07:00
cf1e4795b4 Merge branch 'main' of https://github.com/mikael-zakaria/gdc_cmod_v2 2025-12-04 16:54:33 +07:00
d4a835fe0b prework 2025-12-04 16:54:22 +07:00
mikael-zakaria
4b84f60a6a Pernaikan tampilan CS 2025-12-04 15:58:49 +07:00
mikael-zakaria
fff385d7c6 Update Print dan Eng Laporan 2025-12-04 15:40:54 +07:00
mikael-zakaria
1603a4fabd Merge branch 'main' of https://github.com/mikael-zakaria/gdc_cmod_v2 2025-12-04 15:28:46 +07:00
mikael-zakaria
754ac8d734 Update Alur Lengkap & UserRole 2025-12-04 15:28:38 +07:00
eb9b16b2ff gogo v2 2025-12-04 07:01:15 +07:00
a9a7e96357 gogo v2 2025-12-04 07:00:36 +07:00
e8849e20d0 prework x 2025-12-01 06:32:22 +07:00
c69043cfbf prework 1 2025-11-30 20:34:19 +07:00
53a9a8db53 go go alpine 2025-11-28 16:52:44 +07:00
46147de68b prework alpine 2025-11-28 06:51:50 +07:00
e486a06d78 starting v2 alpine 2025-11-27 16:50:40 +07:00
3adae4f3bf prework_v1 2025-11-27 15:46:22 +07:00
6dc1f24bb3 pre finish 2025-11-26 10:18:06 +07:00
346433bf6d prework 2025-11-26 06:49:30 +07:00
40d7754876 prework 2025-11-25 14:14:14 +07:00
05846f4344 prework 2025-11-25 08:53:52 +07:00
4f1d3e1097 prework 2025-11-24 13:56:21 +07:00
e68c88b600 prework 2025-11-24 11:13:25 +07:00
bb24ef6d49 prework 2025-11-19 13:57:23 +07:00
11111aeed3 add label creation 2025-11-18 16:20:31 +07:00
75062e00a5 add val counter 2025-11-18 14:15:41 +07:00
fdde6591e4 prework 2025-11-17 15:50:30 +07:00
c1a4c7bfbe prework 2025-11-14 16:51:05 +07:00
0ff46cc4c1 prework 2025-11-14 11:17:44 +07:00
5c81a67f18 prework 2025-11-13 16:42:43 +07:00
mikael-zakaria
2103ef609f Update mayor tampilan 2025-11-13 13:16:32 +07:00
mikael-zakaria
86b0722df6 Update Comments dan API DASHBOARD 2025-11-12 10:14:35 +07:00
mikael-zakaria
ad4512de62 Update Tampilan dashboard 2025-11-12 08:31:53 +07:00
mikael-zakaria
77f15bfc94 first commit 2025-11-11 09:14:25 +07:00