Skip to content

refactor(desktop/js): replace var with const/let in admin and editing modules#3322

Open
limad wants to merge 1 commit into
jeedom:developfrom
limad:refactor/var-to-const-desktop-admin
Open

refactor(desktop/js): replace var with const/let in admin and editing modules#3322
limad wants to merge 1 commit into
jeedom:developfrom
limad:refactor/var-to-const-desktop-admin

Conversation

@limad
Copy link
Copy Markdown
Contributor

@limad limad commented May 7, 2026

Summary

Replace var with const/let in administration and editing desktop/js modules.

Modules: administration, update, user, massedit, replace

Changes

  • All var declarations → const (not reassigned) or let (reassigned)
  • for (var x in/of ...)for (const x in/of ...)
  • for (var i = 0; ...)for (let i = 0; ...)

No functional changes. Bug fixes for these files are tracked separately in #3318 (Lot 1) and #3319 (Lot 2).

Type of change

  • Refactor (no functional change)
  • Bug fix
  • New feature
  • Breaking change

Suggested changelog entry

- refactor(desktop/js): replace var with const/let in admin and editing modules (administration, update, user, massedit, replace)

Test plan

  • Open Administration page, confirm config search works
  • Open Update page, confirm update list loads and log refresh works
  • Open User management page, confirm user list and edit work
  • Open Mass Edit page, confirm filter/edit actions work
  • Open Replace page, confirm equipment search (by name and id) works correctly

Known risks

  • Minimal: block scoping verified, no hoisting dependencies found

… modules

Modules: administration, update, user, massedit, replace

- Replace all `var` declarations with `const` (not reassigned) or `let` (reassigned)
- Convert `for (var x in/of ...)` to `for (const x in/of ...)`
- Convert `for (var i = 0; ...)` to `for (let i = 0; ...)`

No functional changes. Bug fixes for these files are tracked separately in PR jeedom#3318 and jeedom#3319.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant