From 9e374103fa65062fc7b08f97660fb1fecbb9c293 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Thu, 12 Feb 2026 13:02:31 +0700 Subject: [PATCH] feat: auto-generate PDF after second validation - Trigger PDF generation via /report/{accessnumber}/pdf endpoint after VAL2 - Add preview dialog for admin/lab/superuser roles - Update role configs with previewEnabled flag --- TODO.md | 12 ++++-- UAT_GDC_CMOD_Checklist.html | 13 ++++++- app/Views/admin/index.php | 1 + app/Views/lab/index.php | 1 + app/Views/shared/config.php | 5 +++ app/Views/shared/content_requests.php | 32 +++++++++++++++ app/Views/shared/dialog_preview.php | 41 +++++++++++++++++++ app/Views/shared/script_requests.php | 54 ++++++++++++++++++++++++++ app/Views/shared/script_validation.php | 10 +++++ app/Views/superuser/index.php | 7 +++- writable/debugbar/index.html | 11 ------ 11 files changed, 170 insertions(+), 17 deletions(-) create mode 100644 app/Views/shared/dialog_preview.php delete mode 100644 writable/debugbar/index.html diff --git a/TODO.md b/TODO.md index 9f3d6ac..59e96e7 100644 --- a/TODO.md +++ b/TODO.md @@ -1,9 +1,13 @@ # Project Checklist: Glen RME & Lab Management System -**Last Updated:** 20260205 +**Last Updated:** 20260212 Pending: -- Test and fix Reprint label +- preview result for validate for su adm lab +- auto generate pdf after 2 val +- add datetime val1 val2 +- sample other for MCU is annoying +- report2 go to cmod Completed: - Update User Role levels (Standardize roles: Superuser, Admin, Lab, Phlebo, CS) @@ -35,4 +39,6 @@ Completed: - Reprint Label (Add functionality to reprint labels) - Create Eng Result UI UX on request dashboard - Test and fix PDF Generation -- Print Result Audit (Track when result reports are printed/exported, log user and timestamp) \ No newline at end of file +- Print Result Audit (Track when result reports are printed/exported, log user and timestamp) +- Test and fix Reprint label +- fasten the load of val page \ No newline at end of file diff --git a/UAT_GDC_CMOD_Checklist.html b/UAT_GDC_CMOD_Checklist.html index a62f929..a9a4490 100644 --- a/UAT_GDC_CMOD_Checklist.html +++ b/UAT_GDC_CMOD_Checklist.html @@ -234,8 +234,17 @@
| ID | Judul Test Case | Langkah Utama | Expected Result | Role | Hasil | Issue/Jawaban |
|---|---|---|---|---|---|---|
| NP-001 | Collect Sample ๐งช | Buka dialog sample โ Collect | STATUS=1, COLLECTIONDATE & USERID diset โ | SU, ADM, LAB | โ
โ | |
| NP-002 | Un-Collect Sample โฉ๏ธ | Buka dialog sample โ Un-Collect | STATUS di-reset, audit log tercatat ๐ | SU, ADM, LAB | โ
โ | |
| NP-004 | Sample Collection Buttons Enabled โ | Buka dialog sample | Tombol Collect/Un-Coll/Un-Recv enabled ๐ | ADMIN | โ
โ |