Compare commits

..

No commits in common. "0ab1a804ebb92d21b810264f2f08f087cce916c3" and "54d0048d5d4d32fdb9fa400a03fcfb0806dc9ab7" have entirely different histories.

6 changed files with 11 additions and 16 deletions

View File

@ -19,10 +19,6 @@ externalPort = 80
localPort = 33035
externalPort = 3001
[[ports]]
localPort = 37125
externalPort = 4200
[[ports]]
localPort = 41343
externalPort = 3000

View File

@ -184,7 +184,7 @@ export default function Sites() {
Aggiungi Sito
</Button>
</DialogTrigger>
<DialogContent className="max-w-2xl max-h-[90vh] overflow-y-auto">
<DialogContent className="max-w-2xl">
<DialogHeader>
<DialogTitle>Nuovo Sito</DialogTitle>
<DialogDescription>
@ -422,7 +422,7 @@ export default function Sites() {
{/* Edit Site Dialog */}
<Dialog open={!!editingSite} onOpenChange={(open) => !open && setEditingSite(null)}>
<DialogContent className="max-w-2xl max-h-[90vh] overflow-y-auto">
<DialogContent className="max-w-2xl">
<DialogHeader>
<DialogTitle>Modifica Sito</DialogTitle>
<DialogDescription>

View File

@ -659,6 +659,10 @@ export async function registerRoutes(app: Express): Promise<Server> {
try {
const dateStr = req.query.date as string || format(new Date(), "yyyy-MM-dd");
// Imposta inizio e fine giornata in UTC
const startOfDay = new Date(dateStr + "T00:00:00.000Z");
const endOfDay = new Date(dateStr + "T23:59:59.999Z");
// Ottieni tutti i siti attivi
const allSites = await db
.select()
@ -686,7 +690,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
return selectedDate >= contractStart && selectedDate <= contractEnd;
});
// Ottieni turni del giorno con assegnazioni (usando SQL date comparison)
// Ottieni turni del giorno con assegnazioni
const dayShifts = await db
.select({
shift: shifts,
@ -696,7 +700,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
.leftJoin(shiftAssignments, eq(shifts.id, shiftAssignments.shiftId))
.where(
and(
sql`DATE(${shifts.startTime}) = ${dateStr}`,
gte(shifts.startTime, startOfDay),
lte(shifts.startTime, endOfDay),
ne(shifts.status, "cancelled")
)
)

View File

@ -1,13 +1,7 @@
{
"version": "1.0.18",
"lastUpdate": "2025-10-17T15:56:56.628Z",
"version": "1.0.17",
"lastUpdate": "2025-10-17T15:41:26.844Z",
"changelog": [
{
"version": "1.0.18",
"date": "2025-10-17",
"type": "patch",
"description": "Deployment automatico v1.0.18"
},
{
"version": "1.0.17",
"date": "2025-10-17",