Update site management for better shift type selection
Modify sites.tsx to set a default location and ensure proper value binding for the shift type select component. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/IcLh7if
This commit is contained in:
parent
37cbbfa768
commit
e143aa3f60
4
.replit
4
.replit
@ -19,10 +19,6 @@ externalPort = 80
|
|||||||
localPort = 33035
|
localPort = 33035
|
||||||
externalPort = 3001
|
externalPort = 3001
|
||||||
|
|
||||||
[[ports]]
|
|
||||||
localPort = 37459
|
|
||||||
externalPort = 5173
|
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41295
|
localPort = 41295
|
||||||
externalPort = 6000
|
externalPort = 6000
|
||||||
|
|||||||
@ -50,6 +50,7 @@ export default function Sites() {
|
|||||||
name: "",
|
name: "",
|
||||||
address: "",
|
address: "",
|
||||||
customerId: undefined,
|
customerId: undefined,
|
||||||
|
location: "roccapiemonte",
|
||||||
shiftType: "fixed_post",
|
shiftType: "fixed_post",
|
||||||
minGuards: 1,
|
minGuards: 1,
|
||||||
requiresArmed: false,
|
requiresArmed: false,
|
||||||
@ -69,6 +70,7 @@ export default function Sites() {
|
|||||||
name: "",
|
name: "",
|
||||||
address: "",
|
address: "",
|
||||||
customerId: undefined,
|
customerId: undefined,
|
||||||
|
location: "roccapiemonte",
|
||||||
shiftType: "fixed_post",
|
shiftType: "fixed_post",
|
||||||
minGuards: 1,
|
minGuards: 1,
|
||||||
requiresArmed: false,
|
requiresArmed: false,
|
||||||
@ -347,7 +349,7 @@ export default function Sites() {
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Tipologia Servizio</FormLabel>
|
<FormLabel>Tipologia Servizio</FormLabel>
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<SelectTrigger data-testid="select-shift-type">
|
<SelectTrigger data-testid="select-shift-type">
|
||||||
<SelectValue placeholder="Seleziona tipo servizio" />
|
<SelectValue placeholder="Seleziona tipo servizio" />
|
||||||
@ -633,7 +635,7 @@ export default function Sites() {
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Tipologia Servizio</FormLabel>
|
<FormLabel>Tipologia Servizio</FormLabel>
|
||||||
<Select onValueChange={field.onChange} defaultValue={field.value}>
|
<Select onValueChange={field.onChange} value={field.value ?? undefined}>
|
||||||
<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" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user