Compare commits
4 Commits
0f58cba38c
...
162deaa3b7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
162deaa3b7 | ||
|
|
b762edb113 | ||
|
|
e143aa3f60 | ||
|
|
37cbbfa768 |
4
.replit
4
.replit
@ -35,10 +35,6 @@ externalPort = 4200
|
||||
localPort = 42175
|
||||
externalPort = 3002
|
||||
|
||||
[[ports]]
|
||||
localPort = 42423
|
||||
externalPort = 5173
|
||||
|
||||
[[ports]]
|
||||
localPort = 43169
|
||||
externalPort = 5000
|
||||
|
||||
@ -49,6 +49,8 @@ export default function Sites() {
|
||||
defaultValues: {
|
||||
name: "",
|
||||
address: "",
|
||||
customerId: undefined,
|
||||
location: "roccapiemonte",
|
||||
shiftType: "fixed_post",
|
||||
minGuards: 1,
|
||||
requiresArmed: false,
|
||||
@ -67,6 +69,8 @@ export default function Sites() {
|
||||
defaultValues: {
|
||||
name: "",
|
||||
address: "",
|
||||
customerId: undefined,
|
||||
location: "roccapiemonte",
|
||||
shiftType: "fixed_post",
|
||||
minGuards: 1,
|
||||
requiresArmed: false,
|
||||
@ -139,6 +143,7 @@ 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,
|
||||
@ -237,15 +242,14 @@ export default function Sites() {
|
||||
name="customerId"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Cliente</FormLabel>
|
||||
<Select onValueChange={field.onChange} value={field.value || undefined}>
|
||||
<FormLabel>Cliente (opzionale)</FormLabel>
|
||||
<Select onValueChange={(value) => field.onChange(value || undefined)} value={field.value ?? undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-customer">
|
||||
<SelectValue placeholder="Seleziona cliente (opzionale)" />
|
||||
<SelectValue placeholder="Nessun cliente" />
|
||||
</SelectTrigger>
|
||||
</FormControl>
|
||||
<SelectContent>
|
||||
<SelectItem value="">Nessun cliente</SelectItem>
|
||||
{customers?.map((customer) => (
|
||||
<SelectItem key={customer.id} value={customer.id}>
|
||||
{customer.name}
|
||||
@ -345,7 +349,7 @@ export default function Sites() {
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Tipologia Servizio</FormLabel>
|
||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-shift-type">
|
||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||
@ -524,15 +528,14 @@ export default function Sites() {
|
||||
name="customerId"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Cliente</FormLabel>
|
||||
<Select onValueChange={field.onChange} value={field.value || undefined}>
|
||||
<FormLabel>Cliente (opzionale)</FormLabel>
|
||||
<Select onValueChange={(value) => field.onChange(value || undefined)} value={field.value ?? undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-edit-customer">
|
||||
<SelectValue placeholder="Seleziona cliente (opzionale)" />
|
||||
<SelectValue placeholder="Nessun cliente" />
|
||||
</SelectTrigger>
|
||||
</FormControl>
|
||||
<SelectContent>
|
||||
<SelectItem value="">Nessun cliente</SelectItem>
|
||||
{customers?.map((customer) => (
|
||||
<SelectItem key={customer.id} value={customer.id}>
|
||||
{customer.name}
|
||||
@ -632,7 +635,7 @@ export default function Sites() {
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Tipologia Servizio</FormLabel>
|
||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
||||
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||
<FormControl>
|
||||
<SelectTrigger data-testid="select-edit-shift-type">
|
||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||
|
||||
Binary file not shown.
BIN
database-backups/vigilanzaturni_v1.0.38_20251023_095257.sql.gz
Normal file
BIN
database-backups/vigilanzaturni_v1.0.38_20251023_095257.sql.gz
Normal file
Binary file not shown.
10
version.json
10
version.json
@ -1,7 +1,13 @@
|
||||
{
|
||||
"version": "1.0.37",
|
||||
"lastUpdate": "2025-10-23T09:23:28.990Z",
|
||||
"version": "1.0.38",
|
||||
"lastUpdate": "2025-10-23T09:53:14.636Z",
|
||||
"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