Projects modernization: projects list with Active/Mine/Overdue/Due soon/Stalled/Over budget/Ready to close/Completed/Archived/All views, ticket and task progress bars, time logged against budget with unbilled hours, due badges, manager changed in place, manager/client/created filters, bulk set manager, set due date, complete, reopen, archive, restore and delete, CSV/PDF export; project page with header actions, attention banners, tickets/tasks/time/due stat cards, Tickets/Tasks/Activity tabs, scope, details and team with hours; project quick look; New/Edit Project with client contact, start date, budget hours and template that can assign its tickets to the manager; Add tickets by picking or by number; add a project template's tickets to an existing project; template ticket subjects fill in [Client], [Project], [Month], [Quarter] and [Year]; project templates admin rework with ordered ticket templates, multi-add, duplicate, archive and restore; projects on the ticket page, client overview, dashboard, calendar, global search and client actions menu; New Ticket offers internal projects; tickets only join a project of their own client or an internal one; completing a project is checked on the server and completed projects can be reopened; deleting a project keeps its tickets; deleting a client deletes its projects; bulk ticket creation limits project choices to matching clients; project template reordering limited to admins; new manager notifications; new functions/project.php; removed project_link_closed_ticket.php; DB 2.8.6 adds project_start, project_budget_hours, project_contact_id and a ticket_project_id index, and cleans up orphaned projects, ticket project links and template links

This commit is contained in:
johnnyq
2026-10-15 16:35:00 -04:00
parent 64d938db7f
commit bbb2456f0b
44 changed files with 3617 additions and 1550 deletions

View File

@@ -4874,3 +4874,67 @@ img.itflow-contact-avatar {
.itflow-ticket-glance-text p:last-child {
margin-bottom: 0;
}
/* Projects - agent/projects.php, agent/project.php and the project quick look
(functions/project.php). Progress and time are a slim bar with the figure
beside it; the project page leads with four stat cards. */
.itflow-project-progress {
display: flex;
align-items: center;
gap: .5rem;
}
.itflow-project-progress .progress {
flex: 0 0 3.5rem;
height: .4rem;
}
.itflow-project-progress-cell {
min-width: 7.5rem;
}
.itflow-project-main {
max-width: 20rem;
}
.itflow-project-list .itflow-ticket-who-cell > * {
max-width: 10.5rem;
}
@media (max-width: 1399.98px) {
.itflow-project-main {
max-width: 17rem;
}
}
.itflow-project-desc {
max-width: 20rem;
}
.itflow-project-icon {
--itflow-asset-tone: #5a61c9;
}
.itflow-project-icon.is-done {
--itflow-asset-tone: #2f8a57;
}
[data-bs-theme="dark"] .itflow-project-icon {
--itflow-asset-tone: #9ba1f2;
}
[data-bs-theme="dark"] .itflow-project-icon.is-done {
--itflow-asset-tone: #6fcf97;
}
.itflow-project-stat-label {
font-size: .75rem;
font-weight: 600;
letter-spacing: .02em;
text-transform: uppercase;
color: var(--bs-secondary-color);
}
.itflow-project-stat-value {
margin-top: .25rem;
font-size: 1.5rem;
font-weight: 600;
line-height: 1.2;
}
.itflow-project-stat .progress {
height: .45rem;
}
.itflow-project-scope {
overflow-wrap: anywhere;
}
.itflow-project-tasks li {
padding: .2rem 0;
}