Commit Graph

369 Commits

Author SHA1 Message Date
ISA
e9b49cf723 AddPoiModalWindow mit Bereich-Filter 2024-09-17 13:20:15 +02:00
ISA
132242e7d8 WIP: noch Design für POI hinzufügen 2024-09-17 12:35:52 +02:00
ISA
941ab2276b feat(poi): Implementiere und style react-select für Geräte- und POI-Typ-Felder in Add- und Update-POI-Modalen
- Integriere react-select für eine benutzerfreundlichere Auswahl der Geräte und POI-Typen.
- Anwende benutzerdefinierte Styles, um eine einheitliche und übersichtliche Darstellung der Dropdowns zu gewährleisten.
- Sicherstellung, dass Platzhalter ("Gerät auswählen..." und "Typ auswählen...") immer angezeigt werden.
- Bereinige das Layout für eine konsistente Benutzererfahrung in beiden Modalen.
2024-09-17 07:30:47 +02:00
ISA
867e683eab Filter Gerät und Typ in Add und Update POI 2024-09-16 15:48:04 +02:00
ISA
02f393f51a fix: POI Update Modal 2024-09-16 15:27:29 +02:00
ISA
1d6b3d6385 git commit -m "Implement react-select as a Combobox Dropdown Menu with consistent width for device selection" 2024-09-16 10:51:04 +02:00
ISA
8c85b2dbf3 git commit -m "Remove redundant ShowAddStationPopup.js as its functionality is duplicated by AddPoiModalWindow.js" 2024-09-16 10:30:49 +02:00
ISA
d367fbd25e .env.local auf 10.10.0.70 2024-09-16 10:24:52 +02:00
ISA
3a934bff26 sachen-anhalt: hat kein DAUZ Geräte, deswegen alle anzeigen, die IP in .env.local muss angepasst werden 2024-09-14 15:17:51 +02:00
ISA
465aa6d848 fix: TypeError: Cannot read properties of null (reading 'contextmenu')
- Korrigiert TypeError, der auftrat, wenn versucht wurde, auf `contextmenu` zuzugreifen, während es null war.
- Implementiert präzise Zeitmessung mithilfe von `Date.now()`, um das Schließen des Kontextmenüs nach genau 17 Sekunden sicherzustellen.
- Verbessert Benutzererfahrung durch zuverlässigere und stabilere Menüverwaltung.
2024-09-13 14:44:10 +02:00
ISA
84f2dafd17 fix: POI löschen in PoiUpdateModal.js hinzugefügt 2024-09-13 11:28:34 +02:00
ISA
864644c543 feat(PoiUpdateModal): Display correct POI type in dropdown on modal open
- Added logic to store the selected POI type in localStorage during POI selection.
- Updated PoiUpdateModal to pre-select the correct POI type from localStorage when opening the modal.
- Implemented fallback to fetch POI types if not found in localStorage.
- Ensured the selected device is also pre-filled in the dropdown.
2024-09-13 10:21:07 +02:00
ISA
56f4a585ae WIP: POI Update Modal, Beschreibung und Gerät funktioniert wie erweitet, Typ soll auch den gewählte POI Typ zuerst in dropdown angezeigt wird 2024-09-13 08:50:10 +02:00
ISA
5295dfec62 WIP: POI Update 2024-09-12 22:56:59 +02:00
ISA
b364d056f1 feat: Set default polyline visibility to true if not defined in localStorage
- Added logic to check if 'polylineVisible' exists in localStorage on page load.
- If not present, set the default value to 'true' to ensure polylines are displayed by default.
- Updated `setupPolylines` function to handle polyline visibility based on localStorage value.
2024-09-12 13:24:50 +02:00
ISA
da5e5a8b65 Kombination für 30, Linien ausblenden, und checkbox in localStorage mergen 2024-09-12 09:14:05 +02:00
ISA
0230600da9 Stützpunkte in Kontextmenü hinzufügen 2024-09-11 22:42:48 +02:00
ISA
f8a4b1f86b Kabelstrecken einblenden und ausblenden 2024-09-11 22:19:04 +02:00
ISA
633886b466 delete doppelte Bestätigung
POI wurde erfolgreich gelöscht.
2024-09-11 15:35:13 +02:00
ISA
8a01ca8814 fix: close context menu 2 seconds before API call to prevent errors
- Implemented logic to monitor the context menu state and ensure it closes 2 seconds before the 20-second interval API call
- Added functionality to log remaining time while the context menu is open for better debugging
- Refactored interval handling to reset remaining time and close the context menu properly
- Addressed runtime error related to null context menu handling
2024-09-11 14:53:13 +02:00
ISA
30f671e1c1 fix: adjust dropdown menu width and layout for better responsiveness
- Set fixed min-width (150px) and max-width (200px) for the dropdown menu to ensure it does not expand too much on smaller screens.
- Removed flex-grow from dropdown to prevent it from taking excess space.
- Improved flex layout between dropdown, EditModeToggle, and expand icon to ensure proper spacing and alignment.
2024-09-11 10:57:36 +02:00
ISA
a43fbff4f8 contexmenu handle in MapComponent wegen error contextmenu nicht vorhanden 2024-09-11 10:35:38 +02:00
ISA
fdd8f13a3a WebSocket client and server communication 2024-09-11 10:15:00 +02:00
ISA
f16d389dfd feat: Persist checkbox states in localStorage to retain settings after page reload
- Implemented logic to save the visibility states of POI and map layers in localStorage.
- Loaded saved checkbox states on component mount to retain user preferences.
- Updated `handleCheckboxChange` and `handlePoiCheckboxChange` to store changes in localStorage.
- Ensured that settings persist across page reloads for a better user experience.
2024-09-11 09:38:51 +02:00
ISA
f5e9de16f6 Ein einfacher externer WebSocket-Server und in useLineData.js testen 2024-09-11 08:58:01 +02:00
ISA
fb0e8b817d delete prioNameDisplay in Tooltip for polyline 2024-09-11 06:47:52 +02:00
ISA
2da00799dd Linien Tooltip offset auf 20, damit der Cursor nicht drüber steht 2024-09-10 20:55:42 +02:00
ISA
6167cbe5b2 feat: Display multiple messages with individual prioColor in line tooltips
- Added support for displaying multiple messages per module in tooltips
- Each message now correctly displays its respective prioColor
- Enhanced message rendering for better visual clarity, including colored indicators for each message
- Fixed sorting and filtering of messages based on level and status
2024-09-10 20:46:12 +02:00
ISA
d132ac000a Replace setInterval with recursive setTimeout for better control
In diesem Code wird setTimeout verwendet, um die Funktion fetchData rekursiv nach 20 Sekunden erneut aufzurufen. Dies ersetzt setInterval und bietet eine bessere Kontrolle über das Timing und das Cleanup, um sicherzustellen, dass der Code sauber bleibt, wenn die Komponente unmounted wird
2024-09-10 14:29:26 +02:00
ISA
77bc63f22e Connection: "close" in HTTP headers in fetchWebServiceMap in MapComponent.js 2024-09-10 14:04:39 +02:00
ISA
d57d86cf6c Tooltip für die Linien an Maus-Koordinaten positionieren 2024-09-10 13:06:03 +02:00
ISA
5676208265 .env.local für 30 2024-09-10 08:21:37 +02:00
ISA
3c78e387fa .env.local für 10.10.0.30 vorbereitet ohne Mock Dateien von useLineData.js 2024-09-10 07:33:02 +02:00
ISA
3f6760a783 npm install @reduxjs/toolkit weil 'createStore' is deprecated. in redux 2024-09-09 15:26:29 +02:00
ISA
aa38493f03 prepair redux 2024-09-09 15:20:00 +02:00
ISA
f0c61570a0 setInterval in useLineData um neue Änderungen zu zeichnen 2024-09-09 14:50:02 +02:00
ISA
e94ecd7279 feat(api): Add mock API routes for testing GIS lines and station names
- Created mock API route for fetching GIS lines data (/api/talas_v5_DB/gisLines/readGisLinesMock)
- Created mock API route for fetching station names data (/api/talas_v5_DB/station/getAllStationsNamesMock)
- Replaced original API calls in useLineData hook with mock routes for development and testing
2024-09-09 13:56:28 +02:00
ISA
ae803bdc50 Added tooltips to EditModeToggle icons and adjusted tooltip positioning using Material-UI 2024-09-09 12:09:03 +02:00
ISA
e1b51f6802 Kontextmenü Item "POI Bearbeiten", "POI hinzufügen" und "Stützpunkt hinzufügen" ausblenden wenn localStorage Variable "editMode" false ist 2024-09-09 11:48:43 +02:00
ISA
04e50c30f8 feat: Implementierung des Bearbeitungsmodus 2024-09-06 14:08:39 +02:00
ISA
af458ac270 Add editMode to poiUtils.js, setupPOIs.js and useMapContextMenu.js
editMode von localStorage lesen und Rechte vergeben oder entnehmen wenn die Schaltfläche "Bearbeitungsmodus aktivieren"
2024-09-06 11:25:32 +02:00
ISA
861c9ead3d Add counter for fetchWebServiceMap in MapComponent.js 2024-09-06 10:55:14 +02:00
ISA
6850fee16a WIP: Add basic structure for edit mode to DataSheet.js
Der Bearbeitungsmodus ist noch nicht vollständig, und es fehlen
einige Funktionalitäten. Reduzierung der Datenbankanfragen noch in Arbeit.
2024-09-06 10:41:47 +02:00
ISA
98e8bdf96e Version 1.0.1.6 mysqlPool.js configuration is better, but can be better, check MySQL Workbench Connections 2024-09-05 15:26:42 +02:00
ISA
094e27e147 Version 1.0.1.5 delete linsColorApi.js because was mock file 2024-09-05 11:53:21 +02:00
ISA
3d8ecb8287 Version 1.0.1.4 delete "api-Kopie" und "api back30" and delete link from device popup 2024-09-05 11:14:03 +02:00
ISA
7e100ff81b Version 1.0.1.3 API aufruf statt direkte Anfrgen an die MySQL Datenbank und WebServiceMap Mock Dateien und direkte MySQL Anfagen gelöscht 2024-09-05 10:42:36 +02:00
ISA
2623da410e Version 1.0.1.2 connection.release() in folder talas_v5_DB in all files 2024-09-05 09:59:49 +02:00
ISA
34449e3710 Version 1.0.1.1 release DB connection in /pages/api/talas_v5_DB/gisLines/readGisLines.js 2024-09-05 09:26:38 +02:00
ISA
42ea03677b Version 1.0.4.1 open Links in new Tab for polylines and devices work it without disablePolylineEvents(window.polylines); 2024-09-05 06:48:06 +02:00