All checks were successful
Build and Push Docker Image / build (push) Successful in 2m41s
Fixed 3 gaps in the QI Projects module: Gap 1 (critical): team members couldn't manage their own tasks — the toggle checkbox/edit/delete were gated behind admin-only can_edit. Now: - _can_manage_task() helper: admins OR the task assignee OR project team members - task_toggle_status + htmx_task_toggle_status use the new helper - task_row.html shows the toggle for assignees (task.assigned_to.user_id check) Gap 2: no "My QI Tasks" view — added /projects/my-tasks/ showing tasks assigned to the current user across all projects, with toggle links + stats. Sidebar link. Gap 3: no notification on task assignment — added apps/projects/signals.py (post_save on QIProjectTask → create_in_app_notification). apps.py ready() wired. Tested (headed, 11 PASS / 1 FAIL): - Cross-department team members (Contact Center + different dept) can VIEW the project AND toggle their assigned tasks (both PASS) - My Tasks view loads for team members - Excel export returns 500 (real bug, reported) - Project close via edit form needs correct hospital UUID (test harness issue) Also bundles accumulated in-progress work across complaints, observations, organizations, templates, and other modules. Harness: seed_e2e_project + get_e2e_project_state CLI + qi-projects-workflow.spec.ts
36 lines
1.8 KiB
HTML
36 lines
1.8 KiB
HTML
{% load i18n %}
|
|
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="{{ LANGUAGE_CODE|default:'en' }}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% trans "Investigation In Progress" %} - PX360</title>
|
|
<link rel="stylesheet" href="{% static 'dist/css/tailwind.css' %}">
|
|
<style>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
body { font-family: 'Inter', sans-serif; }
|
|
</style>
|
|
</head>
|
|
<body class="bg-gray-50 min-h-screen flex items-center py-8 px-4">
|
|
<div class="w-full max-w-xl mx-auto">
|
|
<div class="bg-white rounded-2xl shadow-lg border border-gray-200 p-8 text-center">
|
|
<div class="w-20 h-20 mx-auto bg-blue-100 rounded-full flex items-center justify-center mb-6">
|
|
<svg class="w-10 h-10 text-navy" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path>
|
|
</svg>
|
|
</div>
|
|
<h1 class="text-2xl font-bold text-gray-800 mb-2">{% trans "Investigation Already Started" %}</h1>
|
|
<p class="text-gray-500 mb-4">{% trans "You have already started an investigation for this complaint. You will be notified when all staff members respond." %}</p>
|
|
{% if complaint %}
|
|
<div class="text-left bg-gray-50 rounded-xl p-4">
|
|
<p class="text-sm text-gray-500">{% trans "Complaint Reference" %}</p>
|
|
<p class="font-bold text-gray-800">#{{ complaint.reference_number }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<p class="text-center text-gray-400 text-xs mt-6">{% trans "PX360 Complaint Management System" %}</p>
|
|
</div>
|
|
</body>
|
|
</html>
|