Commit Graph

6030 Commits

Author SHA1 Message Date
Jokob @NetAlertX
bc4f419927 Enhance device MAC address handling in tests to ensure lowercase normalization and skip tests when web protection is disabled 2026-03-02 10:42:36 +00:00
Jokob @NetAlertX
3a73817048 Enhance device down event handling for sleeping devices and improve down alerts query 2026-03-02 10:05:37 +00:00
Hosted Weblate
67aa46f1cf Merge branch 'origin/main' into Weblate. 2026-03-02 10:54:18 +01:00
Massimo Pissarello
da63acb675 Translated using Weblate (Italian)
Currently translated at 100.0% (794 of 794 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/it/
2026-03-02 10:54:18 +01:00
jokob-sk
50125f0700 DOCS: statuses
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-03-02 20:54:09 +11:00
Jokob @NetAlertX
6724d250d4 Refactor network tree data structure and improve device status handling
- Updated the network tree data structure to use consistent naming conventions for device properties (e.g., devName, devMac).
- Enhanced the initTree function to utilize the new property names and improved the rendering of device nodes.
- Refactored the getStatusBadgeParts function to include additional parameters for archived and new device statuses.
- Introduced convenience functions (badgeFromDevice and badgeFromDataAttrs) to streamline badge generation from device objects and data attributes.
- Updated various language files to include new status labels and ensure consistency across translations.
- Modified the renderSmallBox function to allow for custom icon HTML, improving flexibility in UI components.
2026-03-02 09:35:42 +00:00
Jokob @NetAlertX
3e237bb452 Normalize MAC addresses in SQL queries and add devCanSleep column to device schema 2026-03-02 06:03:18 +00:00
Jokob @NetAlertX
15807b7ab9 Add unit and integration tests for device down event handling and sleeping suppression 2026-03-02 05:53:28 +00:00
Jokob @NetAlertX
0497c2891e Fix formatting issues in DATABASE.md for improved readability 2026-03-02 04:35:36 +00:00
Jokob @NetAlertX
8e6efc3008 sleeping devices status #1519 2026-03-02 04:35:07 +00:00
jokob-sk
deb0d16c3d LNG: PRAGMA_JOURNAL_SIZE_LIMIT
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-03-01 18:38:38 +11:00
jokob-sk
a94f3d7222 DOCS: PRAGMA_JOURNAL_SIZE_LIMIT
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-03-01 17:47:15 +11:00
Jokob @NetAlertX
d9608b4760 Add database performance tuning guidelines and user-configurable WAL size limit 2026-03-01 06:43:07 +00:00
Jokob @NetAlertX
584aba2c7b Set journal size limit to 10 MB for SQLite connections to prevent unbounded WAL growth 2026-03-01 06:19:39 +00:00
Jokob @NetAlertX
ea5585a8ef Add database cleanup for Sessions and optimize queries
- Implemented deletion of Sessions older than DAYS_TO_KEEP_EVENTS.
- Added index for Plugins_History to improve query performance.
- Introduced unit tests for Sessions trimming and database analysis.
2026-03-01 06:07:57 +00:00
Anonymous
c1adfd35f3 Translated using Weblate (Arabic)
Currently translated at 85.8% (680 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ar/
2026-03-01 05:09:57 +00:00
Anonymous
66532c54a1 Translated using Weblate (German)
Currently translated at 79.6% (631 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/de/
2026-03-01 05:09:55 +00:00
Anonymous
a6ce4174fe Translated using Weblate (Norwegian Bokmål)
Currently translated at 70.5% (559 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/nb_NO/
2026-03-01 05:09:54 +00:00
Anonymous
247a967e9b Translated using Weblate (Polish)
Currently translated at 85.6% (678 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pl/
2026-03-01 05:09:52 +00:00
Anonymous
dbe65b2a27 Translated using Weblate (Turkish)
Currently translated at 57.0% (452 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/tr/
2026-03-01 05:09:50 +00:00
Anonymous
563cb4ba20 Translated using Weblate (Portuguese (Brazil))
Currently translated at 51.3% (407 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pt_BR/
2026-03-01 05:09:49 +00:00
大王叫我来巡山
3d4aba4b39 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.3% (787 of 792 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/zh_Hans/
2026-03-01 05:09:47 +00:00
Jokob @NetAlertX
b96ace0447 Merge branch 'main' of https://github.com/netalertx/NetAlertX 2026-03-01 04:55:40 +00:00
Jokob @NetAlertX
e15c68d189 feat: enhance cacheStrings function to re-fetch plugin language strings on initialization 2026-03-01 04:55:35 +00:00
jokob-sk
f5e411d5d5 chore: jokob-sk->netalertx
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-28 16:00:37 +11:00
jokob-sk
f727580798 Merge branch 'main' of github.com:netalertx/NetAlertX 2026-02-28 15:58:52 +11:00
jokob-sk
11499a6890 chore: jokob-sk->netalertx
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-28 15:58:46 +11:00
Jokob @NetAlertX
85badb0760 Merge branch 'main' of https://github.com/netalertx/NetAlertX 2026-02-28 01:51:22 +00:00
Jokob @NetAlertX
814ba02d1c feat: implement languages endpoint and refactor language handling to use languages.json 2026-02-28 01:51:12 +00:00
Jokob @NetAlertX
e57fd2e81e fix: update body text color in dark theme and remove unnecessary console log 2026-02-28 01:02:21 +00:00
jokob-sk
4dc2a63ebb DOCS: flapping/unstable status addition
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-28 11:37:11 +11:00
jokob-sk
6b320877ec Merge branch 'main' of github.com:netalertx/NetAlertX 2026-02-28 11:30:24 +11:00
jokob-sk
43667a3bc4 DOCS: flapping/unstable status addition
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-28 11:30:13 +11:00
Jokob @NetAlertX
4d0b7c944f Merge branch 'main' of https://github.com/netalertx/NetAlertX 2026-02-28 00:24:37 +00:00
jokob-sk
9894009455 Merge branch 'main' of github.com:netalertx/NetAlertX 2026-02-28 11:24:08 +11:00
jokob-sk
0e18e34918 DOCS: flapping/unstable status addition
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-28 11:23:56 +11:00
Jokob @NetAlertX
d9c263d506 feat: Update cache handling to normalize legacy device data format and improve logging 2026-02-28 00:13:22 +00:00
Jokob @NetAlertX
58e32a5b43 feat: Refactor device column management and integrate new device-columns.js for centralized field definitions 2026-02-28 00:06:04 +00:00
jokob-sk
24e2036bde DOCS: flappin/usntable status addition
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-28 10:31:06 +11:00
Jokob @NetAlertX
b74b803d6c feat: Add devFlapping attribute to device management and update related UI components 2026-02-27 23:29:55 +00:00
Jokob @NetAlertX
173ffbe3b2 feat: Add cache clearing logic for imported settings in state update 2026-02-27 21:31:36 +00:00
Jokob @NetAlertX
d2ebe0d452 Merge branch 'main' of https://github.com/netalertx/NetAlertX 2026-02-27 10:08:56 +00:00
Jokob @NetAlertX
4c0d5c7376 refactor: Consolidate tab initialization logic using shared utility function 2026-02-27 10:07:55 +00:00
jokob-sk
686a713aa8 FE: lower case MAC issues #1538
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-27 14:35:35 +11:00
Jokob @NetAlertX
9d64665599 fix: Remove trailing whitespace and clean up formatting in version.php 2026-02-26 04:21:57 +00:00
Jokob @NetAlertX
63cef590d6 Refactor network API calls to use centralized authentication context and improve cache handling
- Removed redundant getApiToken function and replaced its usage with getAuthContext in network-api.js, network-events.js, and network-init.js.
- Updated cache handling in network-events.js and network-init.js to use CACHE_KEYS constants for better maintainability.
- Introduced cache.js for centralized cache management functions and constants, including cache initialization and retrieval.
- Added app-init.js for application lifecycle management, including cache orchestration and initialization checks.
- Created app_config.php to securely fetch API token and GraphQL port from configuration.
- Improved error handling and logging throughout the codebase for better debugging and maintenance.
2026-02-26 04:21:29 +00:00
Jokob @NetAlertX
00042ab594 refactor: Clean up whitespace and improve API token verification in network initialization 2026-02-25 21:59:51 +00:00
Jokob @NetAlertX
786cc5ee33 feat: Implement network topology management with API integration
- Added network-api.js for handling API calls related to network devices and nodes.
- Introduced network-events.js to manage event handlers for node interactions and window resizing.
- Created network-init.js for initializing network topology on page load and fetching device data.
- Developed network-tabs.js for rendering network tabs and managing tab content.
- Implemented network-tree.js for constructing and rendering the tree hierarchy of network devices.
- Enhanced error handling and user feedback for API calls and data loading processes.
- Included caching mechanisms for user preferences regarding device visibility.
2026-02-25 21:59:40 +00:00
大王叫我来巡山
0b32a06178 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 99.4% (787 of 791 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/zh_Hans/
2026-02-24 04:09:55 +01:00
anton garcias
1fa381429d Translated using Weblate (Catalan)
Currently translated at 100.0% (791 of 791 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ca/
2026-02-24 04:09:54 +01:00