From 40cde1634b9517fbdd46641f3f261cf613df81e2 Mon Sep 17 00:00:00 2001 From: marco370 <48531002-marco370@users.noreply.replit.com> Date: Wed, 29 Oct 2025 08:52:43 +0000 Subject: [PATCH] Improve link testing by normalizing URL slugs in sidebar Update `data-testid` attributes in `AppSidebar` component to use a normalized slug representation of menu item titles, ensuring more robust end-to-end testing by replacing spaces with hyphens. Also, add a new section describing the "Guardie Settimanale" feature in the `replit.md` documentation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e0b5b11c-5b75-4389-8ea9-5f3cd9332f88 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e0b5b11c-5b75-4389-8ea9-5f3cd9332f88/EoraZGH --- .replit | 4 ---- client/src/components/app-sidebar.tsx | 4 ++-- replit.md | 6 ++++++ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.replit b/.replit index 53baf59..bc23a6a 100644 --- a/.replit +++ b/.replit @@ -19,10 +19,6 @@ externalPort = 80 localPort = 33035 externalPort = 3001 -[[ports]] -localPort = 39861 -externalPort = 6000 - [[ports]] localPort = 40417 externalPort = 8000 diff --git a/client/src/components/app-sidebar.tsx b/client/src/components/app-sidebar.tsx index 7ccab1b..1d53be3 100644 --- a/client/src/components/app-sidebar.tsx +++ b/client/src/components/app-sidebar.tsx @@ -224,7 +224,7 @@ export function AppSidebar() { @@ -246,7 +246,7 @@ export function AppSidebar() { diff --git a/replit.md b/replit.md index 2ebce6f..2c40442 100644 --- a/replit.md +++ b/replit.md @@ -52,6 +52,12 @@ The database supports managing users, guards, certifications, sites, shifts, shi - **Shift Duplication Features**: - **Weekly Copy (Planning Fissi)**: POST /api/shift-assignments/copy-week endpoint duplicates all shifts and assignments from selected week to next week (+7 days) with atomic transaction. Frontend includes confirmation dialog with week details and success feedback. - **Patrol Sequence Duplication (Planning Mobili)**: POST /api/patrol-routes/duplicate endpoint with dual behavior: UPDATE when target date = source date (modifies guard), CREATE when different date (duplicates route with all stops). Frontend shows daily sequence list with duplication dialog (date picker defaulting to next day, guard selector pre-filled but changeable). +- **Guardie Settimanale**: Compact weekly schedule view showing all guards' assignments across the week in a grid format. Features include: + - **Weekly Grid View**: Guard names in first column, 7 daily columns (Mon-Sun) with compact cell display + - **Multi-Source Aggregation**: GET /api/weekly-guards-schedule endpoint aggregates fixed shifts, patrol routes, and absences by location and week + - **Compact Cell Format**: Fixed posts show "Site Name HH:mm-HH:mm", mobile patrols show "Pattuglia HH:mm-HH:mm", absences show status (Ferie/Malattia/Permesso/Riposo) + - **Read-Only Dialogs**: Clicking cells opens appropriate dialog (fixed shift details or mobile patrol info) with navigation links to Planning Fissi/Mobile for edits + - **Location and Week Filters**: Dropdown for branch selection, week navigation with prev/next buttons displaying "Settimana dal DD MMM al DD MMM YYYY" ### User Roles - **Admin**: Full access.