mahdahar 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
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00
env
2026-01-19 11:01:46 +07:00
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00
2025-11-11 09:14:25 +07:00

CodeIgniter 4 Application Starter

What is CodeIgniter?

CodeIgniter is a PHP full-stack web framework that is light, fast, flexible and secure. More information can be found at the official site.

This repository holds a composer-installable app starter. It has been built from the development repository.

More information about the plans for version 4 can be found in CodeIgniter 4 on the forums.

You can read the user guide corresponding to the latest version of the framework.

Installation & updates

composer create-project codeigniter4/appstarter then composer update whenever there is a new release of the framework.

When updating, check the release notes to see if there are any changes you might need to apply to your app folder. The affected files can be copied or merged from vendor/codeigniter4/framework/app.

Setup

Copy env to .env and tailor for your app, specifically the baseURL and any database settings.

Role-Based Access Control

This application uses role-based access control with four user roles.

User Roles

Role Level Access
Admin 1 All functions
Lab 2 All functions
Phlebo 3 Specimen collection, Dashboard
CS 4 Dashboard

Feature Categories by Role

Admin

  • Dashboard - View all requests with status filters (Pend, Coll, Recv, Inc, Fin, Val)
  • User Management - Create, edit, delete users; assign roles
  • Request Management - View, validate, unvalidate all requests
  • Sample Management - Collect, receive, unreceive samples
  • Result Management - Preview and print results

Lab

  • Dashboard - View requests with status filters
  • Request Validation - Validate/unvalidate requests (2-level validation)
  • Sample Management - Collect samples, mark received
  • Result Preview - Preview and print results

Phlebo

  • Dashboard - View pending collections
  • Specimen Collection - Log collected specimens

CS (Customer Service)

  • Dashboard - View-only request tracking
  • Status Monitoring - Filter by request status
  • Patient Inquiry - View request details

Route Prefixes

  • Admin: /admin
  • Lab: /lab

Important Change with index.php

index.php is no longer in the root of the project! It has been moved inside the public folder, for better security and separation of components.

This means that you should configure your web server to "point" to your project's public folder, and not to the project root. A better practice would be to configure a virtual host to point there. A poor practice would be to point your web server to the project root and expect to enter public/..., as the rest of your logic and the framework are exposed.

Please read the user guide for a better explanation of how CI4 works!

Repository Management

We use GitHub issues, in our main repository, to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.

This repository is a "distribution" one, built by our release preparation script. Problems with it can be raised on our forum, or as issues in the main repository.

Server Requirements

PHP version 8.1 or higher is required, with the following extensions installed:

Warning

  • The end of life date for PHP 7.4 was November 28, 2022.
  • The end of life date for PHP 8.0 was November 26, 2023.
  • If you are still using PHP 7.4 or 8.0, you should upgrade immediately.
  • The end of life date for PHP 8.1 will be December 31, 2025.

Additionally, make sure that the following extensions are enabled in your PHP:

  • json (enabled by default - don't turn it off)
  • mysqlnd if you plan to use MySQL
  • libcurl if you plan to use the HTTP\CURLRequest library
Description
No description provided
Readme MIT 1.9 MiB
Languages
PHP 92.1%
Hack 2.9%
JavaScript 2.6%
CSS 1.8%
PowerShell 0.4%
Other 0.2%