18 Commits

Author SHA1 Message Date
45b75eb9ef fix: align workflow behavior (Phase 1) + lucide icon-race mitigation
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m27s
Behavioral consistency across complaint/inquiry/observation (re-run: 0 FAIL):
- activation gate on complaints: complaint_send_to + send_to_department_form now
  reject status=open ("Activate this complaint before sending it to a department")
- observation resolve dead-end fixed: observation_change_status now allows
  hospital_admin (was triage_perm/px_admin only) + added a Resolve action on the
  observation detail page -> accepted dept responses can be resolved from the flow
- status validation: Observation.clean() rejects invalid statuses + a DB
  CheckConstraint (migration 0016 normalizes legacy "new"->"open" first)
- inquiry sent_to_department consistency: inquiry_transfer_to_department now also
  sets sent_to_department=True/At (matches observation/complaint for cross-module queries)

Lucide icon-race mitigation: added a defensive `window.lucide || {createIcons:noop}`
shim to the three base layouts + standalone CDN pages (login, select_hospital,
password reset) so the "lucide is not defined" ReferenceError can't throw during
navigation races. Audit listener classifies any residual occurrence as WARN (cosmetic).

Docs: docs/workflows.md records the intentional complaint vs inquiry/observation
differences (multi-dept join + manager review vs single-dept flat) + the field-name map.

Specs: champion spec now activates before send (matches the new gate).
2026-06-14 23:27:03 +03:00
7369d08012 feat: unified reference numbers + feedback modules QA audit
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m14s
Reference numbers (unified scheme PREFIX-YYYYMM-HOSP-NNNN, e.g. CMP-202606-HHN-0001):
- new ReferenceSequence model + generate_reference() helper (apps/core)
- Complaint/Inquiry/Observation/Appreciation/Suggestion emit unified refs via save()
- prefix-based auto-routing in public track API (CMP/INQ/OBS trackable; APR/SGT internal-only)
- removed legacy CMP-/INQ- generators in ui_views, integrations, px_sources
- migrations: core.0003_referencesequence, appreciation.0006, feedback.0008, observations.0012
- unit tests (format, sanitization, monthly reset, 40-thread concurrency)

QA audit:
- isolated E2E hospital sandbox mirroring HH-N + 10 role users (create_e2e_isolated_env)
- feedback-modules-audit.spec.ts + audit helper (headed, run-to-completion)
- reports/feedback-modules-qa-report.md

Also bundles accumulated in-progress work across complaints, observations,
organizations, templates, and other modules.
2026-06-14 14:29:23 +03:00
c5f76b3855 updates
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
2026-05-11 14:45:30 +03:00
e119312a9c clean up version 2026-04-19 10:53:12 +03:00
177a7e0f5f updates 2026-04-08 17:13:35 +03:00
c16e410fdd Remove hospital dropdowns from templates and fix JavaScript dependencies 2026-03-11 00:17:53 +03:00
72dd1e8e3c more updates in complaint and survey 2026-02-10 12:33:31 +03:00
42cf7bf8f1 update on the surevey 2026-01-24 15:27:30 +03:00
3ce62d80e1 small changes 2026-01-24 15:27:27 +03:00
1f9d8a7198 update on the complaint sla and staff hierarchy 2026-01-15 14:32:49 +03:00
350607d0cc update on the staff model 2026-01-12 12:19:19 +03:00
3a1910a617 temp commit 2026-01-12 12:08:18 +03:00
97de5919f2 add reference and standard 2026-01-08 09:50:46 +03:00
eb578d9f9b update complain and add ai and sentiment analysis 2026-01-06 18:23:04 +03:00
Marwan Alwali
4ed30c94c8 update-css 2026-01-06 17:33:52 +03:00
Marwan Alwali
cfe83f50e0 add-acknowledgments 2026-01-06 13:36:43 +03:00
Marwan Alwali
db60217012 update-command-center-dashboard 2026-01-05 19:40:24 +03:00
Marwan Alwali
2e15c5db7c first commit 2025-12-24 12:42:31 +03:00