Commit Graph

51 Commits

Author SHA1 Message Date
sebingel
998c38f519 Fix multiEditCore.php: align isOrdeable → isOrderable with JS return value
The rename of the elementOptions key from "ordeable" to "orderable" (part of
#1584) updated handleElementOptions() in settings_utils.js to return the
property as isOrderable. However, multiEditCore.php still destructured the
old name isOrdeable from that return value (line 139). Because JavaScript
object destructuring resolves properties by name, isOrdeable would silently
evaluate to undefined — no runtime error, just a broken binding.

The bug was masked because isOrdeable is not referenced after destructuring
in the current code of multiEditCore.php. The incorrect binding would become
a functional regression as soon as that code path is extended to actually
consume the orderable flag (e.g. to conditionally apply select2 sorting in
the multi-edit form).

Changes:
- front/multiEditCore.php:139 — isOrdeable → isOrderable
  Aligns the destructured property name with the renamed return key of
  handleElementOptions() so the binding resolves to the correct boolean
  value instead of undefined.

All 35 previously updated files already use the correct spelling; this was
the single remaining inconsistency. After this commit, grep for "isOrdeable"
and "ordeable" across front/ and server/ returns zero results.
2026-04-03 19:00:43 +00:00
Jokob @NetAlertX
c7399215ec Refactor event and session column names to camelCase
- Updated test cases to reflect new column names (eve_MAC -> eveMac, eve_DateTime -> eveDateTime, etc.) across various test files.
- Modified SQL table definitions in the database cleanup and migration tests to use camelCase naming conventions.
- Implemented migration tests to ensure legacy column names are correctly renamed to camelCase equivalents.
- Ensured that existing data is preserved during the migration process and that views referencing old column names are dropped before renaming.
- Verified that the migration function is idempotent, allowing for safe re-execution without data loss.
2026-03-16 10:11:22 +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-sk
81202ce07e name resolution config clean up, authoritative fields fixes for none values, css fixes
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-03 20:40:11 +11:00
jokob-sk
b45804f177 FE: add clear sources functionality in multi-edit
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-02-02 15:59:53 +11:00
jokob-sk
96e4909bf0 feat: authoritative plugin fields
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-01-25 11:40:29 +11:00
jokob-sk
a1a90daf19 FE: better Device fields docs, fix comments field input in multi-edit
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-01-11 11:49:00 +11:00
Jokob @NetAlertX
d849583dd5 refactor UI backend calls to python endpoints 2026-01-10 03:06:02 +00:00
jokob-sk
b9d3f430fe FE: regex validation for cron run schedules
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2025-11-27 12:10:33 +11:00
jokob-sk
fe018fb3c3 FE: prevent error on no devices selected #1219
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2025-10-10 14:28:08 +11:00
jokob-sk
6e24d9b5f7 Better multiEdit logs
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2025-10-06 08:59:48 +11:00
jokob-sk
9502ee0cd0 UNIFIAPI v0.2, not ofund mac handling #1132 2025-08-10 20:08:09 +10:00
jokob-sk
a111ed929b nnetwork and link tweaks 2025-07-24 12:53:24 +10:00
jokob-sk
698ad8e45d refactor ui init 2025-07-16 22:00:55 +10:00
jokob-sk
61de54bc34 net refactor 2025-07-14 11:01:16 +10:00
jokob-sk
10e8c08ce3 initCheck #1065 2025-06-05 13:38:43 +10:00
jokob-sk
415394fce2 reverse proxy fixes 2025-06-01 14:54:49 +10:00
jokob-sk
dd2b872712 Cron Schedule validation 2025-02-08 10:53:43 +11:00
jokob-sk
9625c36d12 devStaticIp to multi edit #947 2025-01-10 07:48:35 +11:00
jokob-sk
0cc87e3cfc cleanup, docs, devSyncHubNode #931 2025-01-07 21:03:20 +11:00
jokob-sk
bd198587cd docs + freebox parsing issue #927 2025-01-03 22:20:45 +11:00
jokob-sk
0f474fb884 Custom Device Properties v0.1 #876 2024-12-27 12:42:15 +11:00
jokob-sk
f7160f0843 Move of API folder from /app/front/api to app/api 2024-12-08 19:17:10 +11:00
jokob-sk
afaac3277d Device Edit Rebuild + New Dummy Device 2024-11-30 23:34:20 +11:00
jokob-sk
f1f40021ee chore:Settings DB table refactor 2024-11-23 09:28:40 +11:00
jokob-sk
0bc8b39cec 🔺GraphQL v0.1 + Devices table rebuild + removal of backend compatible scripts 2024-11-10 21:22:45 +11:00
jokob-sk
97a5cb6737 HomeAssistant docs + Delete listed Plugin Obj #813 2024-10-02 08:53:29 +10:00
jokob-sk
b544734209 NEWDEV_dev_Icon preview #789
Some checks are pending
docker / docker_dev (push) Waiting to run
2024-09-21 17:40:41 +10:00
jokob-sk
43aa40efbb ⚙ Settings #779 2024-09-06 07:59:35 +10:00
jokob-sk
e0dd3ab53e 📚 Docs + Readme 2024-08-24 08:10:00 +10:00
jokob-sk
1f7a38593d 🔄Cache + Settings work 2024-08-03 21:07:12 +10:00
jokob-sk
cac33fde2b ⚙ Settings rework 2 2024-07-09 20:27:48 +10:00
jokob-sk
6ea3d14480 ⚙ Settings rework 2024-07-07 23:11:30 +10:00
jokob-sk
e2d0914334 📃More logging + updated default plugins to load
Some checks are pending
docker / docker_dev (push) Waiting to run
2024-06-29 23:42:51 +10:00
jokob-sk
8a0b8b8a10 🔔 User Notifications v0.6 2024-06-03 07:39:27 +10:00
jokob-sk
df071c0835 🆕 db locked icon #685 2024-05-26 15:28:37 +10:00
jokob-sk
645a4e68f0 Multi-edit urlencode #660 2024-05-09 07:53:43 +10:00
jokob-sk
ef725103aa Loading cleanup in Maintenance + case insensitive vendor MAC matching #618 🔄 2024-05-02 08:39:16 +10:00
jokob-sk
1dcca191d9 Loading cleanup #660 🔄 2024-05-01 20:47:54 +10:00
jokob-sk
584fdb7734 Add version to JS files to flush cache #659 2024-05-01 18:25:48 +10:00
jokob-sk
f600398353 Seelct all / Remove all in multi-edit 2024-04-23 20:15:20 +10:00
jokob-sk
8e7e437b4c More icons work 🔨 2024-04-14 12:34:14 +10:00
Jokob-sk
1367649554 UI auto-refresh #614 Schedule for undiscoverable devices to mark ONLINE work #617 2024-04-03 23:01:36 +11:00
Jokob-sk
8d4d985fba path debug output #593, docs #598, Unassign network node #601 2024-03-22 11:37:17 +11:00
Jokob-sk
0615611a49 UI tweaks 🩹 2024-03-17 09:41:16 +11:00
Jokob-sk
fb1e73d7d2 cleanup + drpdown fixes 2024-03-11 23:15:15 +11:00
Jokob-sk
4f9e8c5ecd cleanup + fixes 2024-03-10 23:06:43 +11:00
Jokob-sk
e38d2f9055 dynamic dropdown support in FE - core app feature 💠 2024-03-10 21:50:04 +11:00
Jokob-sk
3c38909b57 Multi edit CSS 2024-02-29 21:41:45 +11:00
Jokob-sk
9685784452 Docs, Mass-delete 📚 2024-02-28 21:03:27 +11:00