Compare commits
No commits in common. "162deaa3b7e789ed57f0ea3c67c28ae2dc0a66d6" and "0f58cba38c42f8c7722884453dbd3d535489e377" have entirely different histories.
162deaa3b7
...
0f58cba38c
4
.replit
4
.replit
@ -35,6 +35,10 @@ externalPort = 4200
|
||||
localPort = 42175
|
||||
externalPort = 3002
|
||||
|
||||
[[ports]]
|
||||
localPort = 42423
|
||||
externalPort = 5173
|
||||
|
||||
[[ports]]
|
||||
localPort = 43169
|
||||
externalPort = 5000
|
||||
|
||||
@ -49,8 +49,6 @@ export default function Sites() {
|
||||
defaultValues: {
|
||||
name: "",
|
||||
address: "",
|
||||
customerId: undefined,
|
||||
location: "roccapiemonte",
|
||||
shiftType: "fixed_post",
|
||||
minGuards: 1,
|
||||
requiresArmed: false,
|
||||
@ -69,8 +67,6 @@ export default function Sites() {
|
||||
defaultValues: {
|
||||
name: "",
|
||||
address: "",
|
||||
customerId: undefined,
|
||||
location: "roccapiemonte",
|
||||
shiftType: "fixed_post",
|
||||
minGuards: 1,
|
||||
requiresArmed: false,
|
||||
@ -143,7 +139,6 @@ export default function Sites() {
|
||||
editForm.reset({
|
||||
name: site.name,
|
||||
address: site.address,
|
||||
customerId: site.customerId ?? undefined,
|
||||
location: site.location,
|
||||
shiftType: site.shiftType,
|
||||
minGuards: site.minGuards,
|
||||
@ -242,14 +237,15 @@ export default function Sites() {
|
||||
name="customerId"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Cliente (opzionale)</FormLabel>
|
||||
<Select onValueChange={(value) => field.onChange(value || undefined)} value={field.value ?? undefined}>
|
||||
<FormLabel>Cliente</FormLabel>
|
||||
<Select onValueChange={field.onChange} value={field.value || undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-customer">
|
||||
<SelectValue placeholder="Nessun cliente" />
|
||||
<SelectValue placeholder="Seleziona cliente (opzionale)" />
|
||||
</SelectTrigger>
|
||||
</FormControl>
|
||||
<SelectContent>
|
||||
<SelectItem value="">Nessun cliente</SelectItem>
|
||||
{customers?.map((customer) => (
|
||||
<SelectItem key={customer.id} value={customer.id}>
|
||||
{customer.name}
|
||||
@ -349,7 +345,7 @@ export default function Sites() {
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Tipologia Servizio</FormLabel>
|
||||
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-shift-type">
|
||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||
@ -528,14 +524,15 @@ export default function Sites() {
|
||||
name="customerId"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Cliente (opzionale)</FormLabel>
|
||||
<Select onValueChange={(value) => field.onChange(value || undefined)} value={field.value ?? undefined}>
|
||||
<FormLabel>Cliente</FormLabel>
|
||||
<Select onValueChange={field.onChange} value={field.value || undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-edit-customer">
|
||||
<SelectValue placeholder="Nessun cliente" />
|
||||
<SelectValue placeholder="Seleziona cliente (opzionale)" />
|
||||
</SelectTrigger>
|
||||
</FormControl>
|
||||
<SelectContent>
|
||||
<SelectItem value="">Nessun cliente</SelectItem>
|
||||
{customers?.map((customer) => (
|
||||
<SelectItem key={customer.id} value={customer.id}>
|
||||
{customer.name}
|
||||
@ -635,7 +632,7 @@ export default function Sites() {
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Tipologia Servizio</FormLabel>
|
||||
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-edit-shift-type">
|
||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||
|
||||
BIN
database-backups/vigilanzaturni_v1.0.28_20251021_165619.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.28_20251021_165619.sql.gz
Normal file
Binary file not shown.
Binary file not shown.
10
version.json
10
version.json
@ -1,13 +1,7 @@
|
||||
{
|
||||
"version": "1.0.38",
|
||||
"lastUpdate": "2025-10-23T09:53:14.636Z",
|
||||
"version": "1.0.37",
|
||||
"lastUpdate": "2025-10-23T09:23:28.990Z",
|
||||
"changelog": [
|
||||
{
|
||||
"version": "1.0.38",
|
||||
"date": "2025-10-23",
|
||||
"type": "patch",
|
||||
"description": "Deployment automatico v1.0.38"
|
||||
},
|
||||
{
|
||||
"version": "1.0.37",
|
||||
"date": "2025-10-23",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user