Compare commits

..

No commits in common. "162deaa3b7e789ed57f0ea3c67c28ae2dc0a66d6" and "0f58cba38c42f8c7722884453dbd3d535489e377" have entirely different histories.

5 changed files with 16 additions and 21 deletions

View File

@ -35,6 +35,10 @@ externalPort = 4200
localPort = 42175 localPort = 42175
externalPort = 3002 externalPort = 3002
[[ports]]
localPort = 42423
externalPort = 5173
[[ports]] [[ports]]
localPort = 43169 localPort = 43169
externalPort = 5000 externalPort = 5000

View File

@ -49,8 +49,6 @@ export default function Sites() {
defaultValues: { defaultValues: {
name: "", name: "",
address: "", address: "",
customerId: undefined,
location: "roccapiemonte",
shiftType: "fixed_post", shiftType: "fixed_post",
minGuards: 1, minGuards: 1,
requiresArmed: false, requiresArmed: false,
@ -69,8 +67,6 @@ export default function Sites() {
defaultValues: { defaultValues: {
name: "", name: "",
address: "", address: "",
customerId: undefined,
location: "roccapiemonte",
shiftType: "fixed_post", shiftType: "fixed_post",
minGuards: 1, minGuards: 1,
requiresArmed: false, requiresArmed: false,
@ -143,7 +139,6 @@ export default function Sites() {
editForm.reset({ editForm.reset({
name: site.name, name: site.name,
address: site.address, address: site.address,
customerId: site.customerId ?? undefined,
location: site.location, location: site.location,
shiftType: site.shiftType, shiftType: site.shiftType,
minGuards: site.minGuards, minGuards: site.minGuards,
@ -242,14 +237,15 @@ export default function Sites() {
name="customerId" name="customerId"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Cliente (opzionale)</FormLabel> <FormLabel>Cliente</FormLabel>
<Select onValueChange={(value) => field.onChange(value || undefined)} value={field.value ?? undefined}> <Select onValueChange={field.onChange} value={field.value || undefined}>
<FormControl> <FormControl>
<SelectTrigger data-testid="select-customer"> <SelectTrigger data-testid="select-customer">
<SelectValue placeholder="Nessun cliente" /> <SelectValue placeholder="Seleziona cliente (opzionale)" />
</SelectTrigger> </SelectTrigger>
</FormControl> </FormControl>
<SelectContent> <SelectContent>
<SelectItem value="">Nessun cliente</SelectItem>
{customers?.map((customer) => ( {customers?.map((customer) => (
<SelectItem key={customer.id} value={customer.id}> <SelectItem key={customer.id} value={customer.id}>
{customer.name} {customer.name}
@ -349,7 +345,7 @@ export default function Sites() {
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Tipologia Servizio</FormLabel> <FormLabel>Tipologia Servizio</FormLabel>
<Select onValueChange={field.onChange} value={field.value ?? undefined}> <Select onValueChange={field.onChange} defaultValue={field.value}>
<FormControl> <FormControl>
<SelectTrigger data-testid="select-shift-type"> <SelectTrigger data-testid="select-shift-type">
<SelectValue placeholder="Seleziona tipo servizio" /> <SelectValue placeholder="Seleziona tipo servizio" />
@ -528,14 +524,15 @@ export default function Sites() {
name="customerId" name="customerId"
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Cliente (opzionale)</FormLabel> <FormLabel>Cliente</FormLabel>
<Select onValueChange={(value) => field.onChange(value || undefined)} value={field.value ?? undefined}> <Select onValueChange={field.onChange} value={field.value || undefined}>
<FormControl> <FormControl>
<SelectTrigger data-testid="select-edit-customer"> <SelectTrigger data-testid="select-edit-customer">
<SelectValue placeholder="Nessun cliente" /> <SelectValue placeholder="Seleziona cliente (opzionale)" />
</SelectTrigger> </SelectTrigger>
</FormControl> </FormControl>
<SelectContent> <SelectContent>
<SelectItem value="">Nessun cliente</SelectItem>
{customers?.map((customer) => ( {customers?.map((customer) => (
<SelectItem key={customer.id} value={customer.id}> <SelectItem key={customer.id} value={customer.id}>
{customer.name} {customer.name}
@ -635,7 +632,7 @@ export default function Sites() {
render={({ field }) => ( render={({ field }) => (
<FormItem> <FormItem>
<FormLabel>Tipologia Servizio</FormLabel> <FormLabel>Tipologia Servizio</FormLabel>
<Select onValueChange={field.onChange} value={field.value ?? undefined}> <Select onValueChange={field.onChange} defaultValue={field.value}>
<FormControl> <FormControl>
<SelectTrigger data-testid="select-edit-shift-type"> <SelectTrigger data-testid="select-edit-shift-type">
<SelectValue placeholder="Seleziona tipo servizio" /> <SelectValue placeholder="Seleziona tipo servizio" />

View File

@ -1,13 +1,7 @@
{ {
"version": "1.0.38", "version": "1.0.37",
"lastUpdate": "2025-10-23T09:53:14.636Z", "lastUpdate": "2025-10-23T09:23:28.990Z",
"changelog": [ "changelog": [
{
"version": "1.0.38",
"date": "2025-10-23",
"type": "patch",
"description": "Deployment automatico v1.0.38"
},
{ {
"version": "1.0.37", "version": "1.0.37",
"date": "2025-10-23", "date": "2025-10-23",