Compare commits

...

4 Commits

Author SHA1 Message Date
Marco Lanzara
92ac90315a 🚀 Release v1.0.43
- Tipo: patch
- Database backup: database-backups/vigilanzaturni_v1.0.43_20251023_140453.sql.gz
- Data: 2025-10-23 14:05:10
2025-10-23 14:05:10 +00:00
marco370
1c70d1cdc9 Add database backup file for system version 1.0.43
Adds database backup file 'vigilanzaturni_v1.0.43_20251023_140453.sql' to the database-backups directory.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/HdlP8Fl
2025-10-23 14:04:57 +00:00
marco370
e9f1c1e136 Update geocoding API calls to correctly parse JSON responses
Correctly parse the JSON response from the `/api/geocode` endpoint in the Sites page component by calling `.json()` on the response object.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/HdlP8Fl
2025-10-23 14:03:38 +00:00
marco370
17b1969255 Ensure site address is always a string for editing
Update `sites.tsx` to default `site.address` to an empty string if null or undefined when editing a site.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/HdlP8Fl
2025-10-23 13:56:14 +00:00
5 changed files with 13 additions and 9 deletions

View File

@ -19,10 +19,6 @@ externalPort = 80
localPort = 33035
externalPort = 3001
[[ports]]
localPort = 33963
externalPort = 6000
[[ports]]
localPort = 41295
externalPort = 5173

View File

@ -144,11 +144,12 @@ export default function Sites() {
setIsGeocoding(true);
try {
const result: any = await apiRequest(
const response = await apiRequest(
"POST",
"/api/geocode",
{ address }
);
const result = await response.json();
form.setValue("latitude", result.latitude);
form.setValue("longitude", result.longitude);
@ -181,11 +182,12 @@ export default function Sites() {
setIsGeocodingEdit(true);
try {
const result: any = await apiRequest(
const response = await apiRequest(
"POST",
"/api/geocode",
{ address }
);
const result = await response.json();
editForm.setValue("latitude", result.latitude);
editForm.setValue("longitude", result.longitude);
@ -219,7 +221,7 @@ export default function Sites() {
setEditingSite(site);
editForm.reset({
name: site.name,
address: site.address,
address: site.address || "",
latitude: site.latitude || "",
longitude: site.longitude || "",
customerId: site.customerId ?? undefined,

View File

@ -1,7 +1,13 @@
{
"version": "1.0.42",
"lastUpdate": "2025-10-23T13:51:05.343Z",
"version": "1.0.43",
"lastUpdate": "2025-10-23T14:05:10.759Z",
"changelog": [
{
"version": "1.0.43",
"date": "2025-10-23",
"type": "patch",
"description": "Deployment automatico v1.0.43"
},
{
"version": "1.0.42",
"date": "2025-10-23",