Compare commits

..

No commits in common. "c8fa396c8fb75b0a2ff3451e29663a771a5c87ab" and "bb50965ebaa9d4ab0c2032483e550fadb59ebc2f" have entirely different histories.

5 changed files with 17 additions and 17 deletions

View File

@ -140,7 +140,7 @@ export default function ServicePlanning() {
{/* Header */}
<div className="flex items-center justify-between">
<div>
<h1 className="text-3xl font-bold">Planning di Servizio</h1>
<h1 className="text-3xl font-bold">Visione Servizi</h1>
<p className="text-muted-foreground">
Visualizza orari e dotazioni per agente fisso, agente mobile o per sito
</p>

View File

@ -1501,7 +1501,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
.select()
.from(guards)
.where(eq(guards.location, location as any))
.orderBy(guards.firstName, guards.lastName);
.orderBy(guards.fullName);
// Ottieni tutti i turni della settimana
const allWeekShifts = await db
@ -1579,7 +1579,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
return {
guardId: guard.id,
guardName: `${guard.firstName} ${guard.lastName}`,
guardName: guard.fullName,
badgeNumber: guard.badgeNumber,
shifts,
totalHours,
@ -1616,7 +1616,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
.select()
.from(guards)
.where(eq(guards.location, location as any))
.orderBy(guards.firstName, guards.lastName);
.orderBy(guards.fullName);
// Ottieni tutte le patrol routes della settimana per la sede
const weekRoutes = await db
@ -1646,7 +1646,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
})
.from(patrolRouteStops)
.innerJoin(sites, eq(patrolRouteStops.siteId, sites.id))
.where(eq(patrolRouteStops.patrolRouteId, routeData.route.id))
.where(eq(patrolRouteStops.routeId, routeData.route.id))
.orderBy(asc(patrolRouteStops.sequenceOrder));
return {
@ -1680,7 +1680,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
return {
guardId: guard.id,
guardName: `${guard.firstName} ${guard.lastName}`,
guardName: guard.fullName,
badgeNumber: guard.badgeNumber,
routes: guardRoutes,
totalRoutes,
@ -1723,7 +1723,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
.select()
.from(guards)
.where(eq(guards.location, location as any))
.orderBy(guards.firstName, guards.lastName);
.orderBy(guards.fullName);
// Ottieni tutti i turni della settimana per la sede (con JOIN su sites per filtrare location)
const weekShifts = await db
@ -1792,7 +1792,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
return {
guardId: guard.id,
guardName: `${guard.firstName} ${guard.lastName}`,
guardName: guard.fullName,
badgeNumber: guard.badgeNumber,
shifts,
totalHours,
@ -1961,7 +1961,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
.select()
.from(guards)
.where(eq(guards.location, location as any))
.orderBy(guards.firstName, guards.lastName);
.orderBy(guards.fullName);
// Ottieni tutti i turni del mese per la sede
const monthShifts = await db

View File

@ -1,13 +1,7 @@
{
"version": "1.0.50",
"lastUpdate": "2025-10-24T10:26:29.152Z",
"version": "1.0.49",
"lastUpdate": "2025-10-23T17:04:52.044Z",
"changelog": [
{
"version": "1.0.50",
"date": "2025-10-24",
"type": "patch",
"description": "Deployment automatico v1.0.50"
},
{
"version": "1.0.49",
"date": "2025-10-23",
@ -301,6 +295,12 @@
"date": "2025-10-17",
"type": "patch",
"description": "Deployment automatico v1.0.1"
},
{
"version": "1.0.0",
"date": "2025-01-17",
"type": "initial",
"description": "Versione iniziale VigilanzaTurni - Sistema completo gestione turni vigilanza"
}
]
}