Commit Graph

1134 Commits

Author SHA1 Message Date
UNITRONIX 71f7bb2dfd feat(console): finish the UX 3.6 port - search, More rows, page rhythm
Global search (Ctrl+K, or "/" when no field has focus) searches pages,
devices and people from one dialog. Pages come from a server-built index
filtered by panel access and RBAC, so it never lists a page the role cannot
open; devices and people load only when the session may read them.

Long sidebar sections keep their daily pages and fold the rest into a
section-level "More" row with a count, remembered per browser. The menu
filter exists in the beta sidebar too, matches inside those rows and opens
them. Width, collapsed groups, "More" rows and scroll position are restored
before the first paint, so the menu never jumps.

The rest of the console keeps its markup and takes the same rhythm: one
content column, ruled sections instead of floating cards, stat numbers in
one ruled row, page tabs as a ruled row, hairline tables. Chat and Remote
stay full-bleed workspaces. Settings search now names another topic when
the typed words match one.

The shell scroll chain is fixed: the beta declared min-height only while
body.app-page clips overflow, so a long list (Devices) could not scroll and
the floating horizontal bar sat at the bottom of the list instead of the
screen. The content column is the single scrollport again, as in UX 3.5.

nav.more / nav.fewer / search.* / settings.ui.search_topic exist in all 26
locales; the icon subset gains more_horiz; tokens.css gains --radius-full.

Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-11 15:35:11 +01:00
github-actions[bot] f8784f0604 chore: bump version to 3.5.224 [version-bump] 2026-11-10 00:11:48 +00:00
UNITRONIX ce91201d53 fix(console): let operator custom colours win over the UX 3.6 palette
palette.css is now skipped when branding.themeMode is custom, so an operator who tuned their own colours keeps them in the beta shell. Light and dark still come from the contributor's scale.

Refs #493
Refs #495
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 01:11:20 +01:00
UNITRONIX 6e5f7af78a feat(console): port the UX 3.6 design system instead of recolouring UX 3.5
The first beta was only a thin layer over the UX 3.5 sheets: it copied a few layout ideas but kept the old palette, the system font stack and the old component styling, so pages looked almost unchanged and the beta read as fragments of the design.

This ports the contributor's actual design system into web-nodejs/public/css/ux36/ and loads it last for the beta shell only:

- palette.css - his neutral dark scale (#141616...) and white-based light theme, rather than the GitHub blue-black we had.
- tokens.css, base.css, components.css, shell.css - his token set, IBM Plex Sans/Mono typography, component styles (.btn, .form-input, tables, menus, tags, notices) and shell layout, taken from web-nodejs/public/css/ui/ at d710bdb.
- pages.css - this console's page classes mapped onto his page rhythm: ruled rows instead of floating cards, stats as one ruled strip, Devices as a 210px folder rail beside the table, Settings as a ruled topic row, device details as a side sheet.
- legacy-bridge.css - his token names mapped onto the v2 names the remaining page sheets use, so no page mixes two type or spacing scales.
- shared-chrome.css - the switch and its BETA badge, needed in both shells.

The top bar and sidebar are their own partials now (ux36-topbar.ejs, ux36-sidebar.ejs) using his structure: logo column sized to the sidebar, breadcrumb from the section model, sections as <ul> lists with icons and group labels.

IBM Plex fonts ship with their SIL OFL licence. ux35-shell.js no longer writes the UX 3.5 palette inline while the beta shell is active, because those inline vars would beat palette.css on a theme toggle.

UX 3.5 is untouched: same sheets, same markup, same palette. Custom operator colours still win - the beta palette is scoped to data-ui-shell=ux36 and light/dark only.

Refs #493
Refs #495
Reported-by: @rathlinus
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 01:11:20 +01:00
github-actions[bot] 04bf6b6fa7 chore: bump version to 3.5.223 [version-bump] 2026-11-09 23:55:36 +00:00
UNITRONIX d09015ca46 feat(console): move the UX 3.6 switch into the top bar and credit its designer
The shell switch now sits with the theme / refresh / language controls, so the beta is one click away from every page. In UX 3.5 the button carries a small BETA badge and opens UX 3.6; in UX 3.6 the same button returns to UX 3.5, and the sidebar footer repeats it as a labelled 'Switch back to UX 3.5' entry.

Move the request logic to public/js/ui-shell.js because the toggle renders in both shells (ux36-shell.js now only owns beta-only layout behaviour). The Settings card stays as the descriptive entry point.

Attribution: README gains a Credits section naming Linus Rath (@rathlinus) as the designer of the redesign that UX 3.6 is modelled on, and the Settings card links the contributor profile plus issue #493 and PR #495 next to the existing credit line. CONTRIBUTOR-ATTRIBUTIONS.md and .cursor/rules/ux36-attribution.mdc already require the 'Based-on: @rathlinus UX redesign (Refs #493, #495)' trailer on every port commit.

Refs #493
Refs #495
Reported-by: @rathlinus
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 00:55:13 +01:00
github-actions[bot] 0045dc6d59 chore: bump version to 3.5.222 [version-bump] 2026-11-09 23:54:03 +00:00
UNITRONIX 602fa36573 feat(console): add opt-in UX 3.6 beta shell in the current EJS stack
Adds an alternative console layout modelled on the community redesign by
@rathlinus and rebuilt on the existing EJS/JavaScript/CSS stack -- the
svelte-rewrite branch stays a design reference and is not merged.

What ships:

- lib/uiShell.js resolves the shell once (query, then cookie, then default)
  so SSR markup, asset includes and window.BetterDesk.uiShell cannot
  disagree. UX 3.5 remains the default and the fallback; unknown values
  (including the removed `classic`) are ignored instead of erroring.
- routes/ui-shell.routes.js exposes GET/POST /api/ui-shell (auth + CSRF) and
  persists the choice per browser in the bd_ui_shell cookie. No database
  migration, no effect on other operators.
- lib/consoleNav.js groups the existing pages into Devices, Support, People,
  Activity and Settings. Every entry keeps its route, RBAC permission and
  panel-access section, so a role sees exactly the pages it could open
  before; the grouping is presentation only.
- views/partials/ux36-sidebar.ejs renders that model with proper
  aria-current/aria-expanded state and no duplicate navigation markup.
- public/css/ux36.css layers the new chrome on top of ux35.css without
  forking the --ux35-* token contract, so branding, wallpapers, fonts and
  light/dark/custom themes keep working in both shells.
- public/js/ux36-shell.js adds the one-open-group default, filter sync and
  the Settings switch; ux35-shell.js keeps owning drawer, resize and theme.
- Settings -> General gains a "Console interface" card so operators can opt
  in and out without a URL; ?ui=ux36 works as a support deep link.
- Settings deep links now accept ?tab=<topic> in addition to #topic.
- New nav.* and ux36.* keys in all 26 locales (real translations).
- Docs: CHANGELOG, UX wiki page, Web-Console wiki page, README, contributor
  attributions, and .cursor/rules/ux36-attribution.mdc so future UX 3.6
  commits keep the credit.

Tests: tests/ux36-shell.test.js, tests/ux36-pages.render.test.js and
tests/ux36-ui-shell.routes.test.js; ux35-ui-contract.test.js updated to
assert both shells. Full web-nodejs suite: 986 passed; the three failing
suites (users.routes, devices.routes, dashboardPairingUi) fail identically
on the untouched branch.

Refs #493
Refs #495
Reported-by: @rathlinus
Based-on: @rathlinus UX redesign (Refs #493, #495)

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-10 00:53:29 +01:00
github-actions[bot] 94757a1958 chore: bump version to 3.5.221 [version-bump] 2026-11-08 23:24:27 +00:00
UNITRONIX 34825e6fd1 feat(console): add panel access policies with group inheritance
Give users and groups none/read/write section access and client feature toggles, rebuild the users page matrix UI, and harden settings restart completion.
2026-11-09 00:24:03 +01:00
github-actions[bot] 4644935052 chore: bump version to 3.5.220 [version-bump] 2026-11-08 20:00:16 +00:00
UNITRONIX a426bf1a65 fix(console): dashboard agent pairing issues a one-time code, not the QR scanner
Główne asked operators to scan a QR while the product moved to short-code pairing, so the dashboard button and the /?activateAgent=1 deep link opened the wrong flow.

- Client-config card button and the sidebar entry (nav.pair_agent) open a pairing-code dialog: server address prefilled from the resolved client address, optional label, code generation, 10-minute countdown, copy.

- Codes are minted via the existing POST /api/panel/pairing/codes behind enrollment.approve; plaintext shown once, never logged. No new endpoint.

- The QR scanner stays reachable from the dialog (Scan agent QR) and from /pairing; the scanner modal title now names itself instead of reusing the old Activate agent label.

- New keys nav.pair_agent, dashboard.pair_with_code, pairing.scan_qr_agent, pairing.generating in all 26 locales; agents.* step 3 / button / body no longer present QR as the primary path.

- Test: web-nodejs/tests/dashboardPairingUi.test.js renders the view and asserts the code dialog wiring and the deep-link target.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 20:59:57 +01:00
github-actions[bot] ac44b7c169 chore: bump version to 3.5.219 [version-bump] 2026-11-08 14:48:04 +00:00
UNITRONIX 850c0f42a0 fix(update): build the Go server with the version from its own source tree
applyUpdate() writes the root VERSION file only AFTER buildGoServer() runs, so
at build time the root VERSION still held the previous release. That value went
into `-X main.Version=`, producing a freshly compiled server that reported the
old version on /api/health while the panel showed the new one (e.g. panel
3.5.218, server 3.5.214).

betterdesk-server/internal/productversion/VERSION is the file `//go:embed`
actually ships in the binary, and ensureServerSource() already refreshes it as
part of the 287-file server tree sync that happens before the build. Read it
first via readEmbeddedServerVersion(), falling back to the previous logic when
absent or malformed.

Covers the ordering bug with tests that pin the stale-root-VERSION scenario.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:47:35 +01:00
github-actions[bot] e3289feb77 chore: bump version to 3.5.218 [version-bump] 2026-11-08 14:41:14 +00:00
UNITRONIX f1e75683a9 test(console): resolve lazy route paths without executing modules
The integrity test required every routes/*.js module directly. Requiring a
route module starts its dependencies' timers (e.g. fileTransferService's
setInterval), which Jest reported as a leaked open handle and which made the
suite flaky in CI.

Scan routes/index.js for `lazyRoute('./x')` string paths instead: those are
invisible to a plain require() scan and are never loaded at boot, which is the
exact gap this guard exists to close.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:40:58 +01:00
github-actions[bot] 40db9da5e9 chore: bump version to 3.5.217 [version-bump] 2026-11-08 14:39:22 +00:00
UNITRONIX 819e1d2d21 fix(console): pairing route requires the real database module
routes/pairing.routes.js shipped `require('../db')`. That module has never
existed in this repository, so the post-update integrity scan resolved it to
`db.js`, asked GitHub for `web-nodejs/db.js`, got a 404, and classified the
download as a CRITICAL failure. The updater then rolled back the entire console
update to the previous SHA - every panel that tried to install 3.5.215/3.5.216
stayed stranded below the new release.

Use `require('../services/database')`, the same import as every other route
module, and add tests/consoleRequireIntegrity.test.js: a static scan that fails
when any relative require() in the deployable console tree points at a missing
file, plus a smoke require of every lazily loaded routes/*.js. `node --check`
only parses and lazy routes are not loaded at boot, which is why no existing
gate caught this.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:39:03 +01:00
github-actions[bot] 726bec3821 chore: bump version to 3.5.216 [version-bump] 2026-11-08 14:23:10 +00:00
github-actions[bot] 28fbfd344b chore: bump version to 3.5.215 [version-bump] 2026-11-08 14:05:08 +00:00
UNITRONIX 6b87f53943 feat(console): pairing page, public route allowlist and locale keys
The panel side of short-code pairing.

- New `/pairing` page (`views/pairing.ejs` + `public/js/pairing.js`) next to the existing
  QR activation flow: mint a code with an optional label, see the countdown, copy it, and
  revoke active codes. The plaintext code is shown once, because only its hash is stored.
- `routes/pairing.routes.js` proxies mint/list/revoke to Go behind `requireAuth` and
  `enrollment.approve`; the client redeems directly against Go, so no code is ever handled
  by the panel's public API.
- `wanSecurity.js` allows `/api/pairing/redeem` and `/api/pairing/config` on :21121 as POST
  only. Minting and listing stay off the public client API: a GET could spend somebody
  else's code via a link preview, and listing would expose code metadata.
- `betterdeskApi` gains `createPairingCode`, `listPairingCodes`, `revokePairingCode`.
- 28 new keys plus a `nav.pairing` entry in all 26 locale files. `scripts/check-pairing-i18n.js`
  enforces parity and runs in CI.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 15:04:34 +01:00
github-actions[bot] 4610f366d7 chore: bump version to 3.5.214 [version-bump] 2026-11-08 09:46:31 +00:00
github-actions[bot] 9aaa7618c5 chore: bump version to 3.5.213 [version-bump] 2026-11-08 09:45:04 +00:00
UNITRONIX f2a406fbfd fix(i18n): restore EN/PL key parity and stop the gate hiding regressions
The audit reported a real defect alongside a large backlog:

- en.json was missing commercialization.packages.select_org and
  commercialization.packages.select_org_placeholder, which pl.json had. EN is
  the source of truth, so the keys are now present in EN. Parity is 0/0 and the
  keys stay available to that dialog.

The gate then failed on ~700 untranslated strings per locale. That made it
permanently red, which is how a genuine parity break went unnoticed. Severity
is now split:

- blocking: EN/PL parity, parse errors, missing keys, empty values - anything
  that makes the UI render a raw key.
- reported as a warning: values still falling back to English, i.e. tracked
  translation work.

Verified both directions: the audit passes at the current baseline and fails
when a key is removed from a locale. The duplicate trailing "passed" line that
printed after the result is gone.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 10:43:25 +01:00
github-actions[bot] d0ef757244 chore: bump version to 3.5.212 [version-bump] 2026-11-08 09:43:21 +00:00
Mahdi Hedhli 77b543407b fix(console): restrict currentUser WAN methods 2026-11-08 10:42:06 +01:00
github-actions[bot] 2077842ab6 chore: bump version to 3.5.211 [version-bump] 2026-11-08 09:41:36 +00:00
UNITRONIX f84700ceb2 chore(deps): apply patch/minor npm updates, defer majors
Patch and minor only, keeping every semver-major out of this change because
those touch CSRF, sessions, OTP and rate limiting:

  axios 1.20.0 -> 1.21.0        express 4.22.2 -> 4.22.3
  nodemailer 10.2.1 -> 10.4.0   pg 8.22.0 -> 8.23.1
  ws 8.21.2 -> 8.22.1           protobufjs 7.6.5 -> 7.6.6
  supertest 7.2.2 -> 7.3.2

The protobufjs override had to move with the dependency or npm fails with
EOVERRIDE.

Deferred deliberately: express 5, helmet 8, csrf-csrf 4, express-rate-limit 8,
otplib 13, protobufjs 8, jest 30, protobufjs-cli 2.

Verified: bcrypt and better-sqlite3 native modules still load, the console
suite passes, and npm audit --omit=dev reports zero production findings.

The 6 remaining low findings are deepmerge, reached only through
jest -> @jest/core -> jest-config in devDependencies. deepmerge has no patched
release (4.3.1 is both latest and affected), so an override cannot clear it and
the only npm-suggested "fix" is downgrading to jest 25. Left as-is; it is not
part of the shipped runtime.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 10:40:18 +01:00
UNITRONIX f20a6be46f fix(portal,toolchain): explain empty installer list and keep Flutter checksum
Two user-visible gaps from the backlog:

- /api/portal/installers returned an empty array with no explanation when no
  Support Agent release had been imported, so the public page looked broken
  (#439, #475). It now reports no_release_imported, release_cache_incomplete or
  cache_unreadable, and the page renders a specific sentence for each. Covered
  by tests/portalInstallers.test.js. No new public surface is added.

- scripts/install-build-toolchain.sh fetched ${url}.sha256, a path Flutter does
  not publish, so the optional toolchain install always failed at the checksum
  step (#466). The hash is now resolved from Flutter's releases_linux.json and
  a missing hash aborts instead of skipping verification; FLUTTER_ARCHIVE_SHA256
  overrides it. Verified against the live manifest for 3.24.5.

Also adds the drive-root regression for Web Remote parent navigation (#467).

Refs #439, #466, #467, #475

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-08 10:37:57 +01:00
github-actions[bot] 52d95ee10f chore: bump version to 3.5.210 [version-bump] 2026-11-08 09:36:54 +00:00
UNITRONIX 02e4bfe1e6 Merge branch 'pr-490' into review/pr490 2026-11-08 10:36:34 +01:00
github-actions[bot] 91c03f7506 chore: bump version to 3.5.209 [version-bump] 2026-11-08 09:22:19 +00:00
da3dsoul d2c75b9794 feat(auth): make panel sessions per account configurable
Add SESSION_MAX_PER_USER to control how many concurrent panel sessions an
account may hold. A new login ends only the least recently active sessions
beyond the limit.

- 1 (default): unchanged single-session behaviour
- N: keep the N most recently active sessions
- 0: unlimited

The Docker compose files now pass SESSION_IDLE_TIMEOUT, SESSION_MAX_AGE,
SESSION_IDLE_WARN_MS and SESSION_MAX_PER_USER through to the container;
previously the session policy could not be changed in Docker deployments.
The security-audit hardening checklist reports the configured limit.
2026-11-07 20:48:18 -05:00
github-actions[bot] 7b6021e3f4 chore: bump version to 3.5.208 [version-bump] 2026-11-03 12:09:33 +00:00
UNITRONIX 76e1427a12 feat(rdclient): type-text keystrokes and Shift+symbol keyboard fixes
Add toolbar Type Text (KeyEvent.seq) for Winlogon/passwords where clipboard paste fails, and harden dead-key/Shift desync so symbols like ^ inject correctly.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-03 13:09:13 +01:00
github-actions[bot] bd00c9b5dc chore: bump version to 3.5.207 [version-bump] 2026-11-01 19:23:41 +00:00
UNITRONIX 5d6c214cb3 fix(deps): remove vulnerable production dependency chains
Upgrade the patched redirect, password hashing, and template dependencies. Add security version floors and document the clean production dependency audit.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-11-01 20:23:18 +01:00
github-actions[bot] 57ee88b5cf chore: bump version to 3.5.206 [version-bump] 2026-11-01 19:08:28 +00:00
github-actions[bot] 89413d8367 chore: bump version to 3.5.205 [version-bump] 2026-10-31 20:28:22 +00:00
github-actions[bot] 59b16234d0 chore: bump version to 3.5.204 [version-bump] 2026-10-31 09:06:56 +00:00
UNITRONIX dd239934f4 fix(web): fall back after AV1 software decode failure
Stop rebuilding the same AV1 decoder after the software retry also fails. Request the negotiated VP9/H.264 fallback instead.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-31 10:06:39 +01:00
github-actions[bot] 6388ad2779 chore: bump version to 3.5.203 [version-bump] 2026-10-31 09:02:43 +00:00
UNITRONIX b54eeb012a fix(web): harden remote media and compression fallbacks
Harden the CSP-safe protobuf runtime, reject unavailable zstd instead of returning compressed bytes, and resynchronise AV1 keyframes from OBU metadata.

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-31 10:02:19 +01:00
github-actions[bot] 837b234fa7 chore: bump version to 3.5.202 [version-bump] 2026-10-31 08:33:26 +00:00
github-actions[bot] d0ec36f154 chore: bump version to 3.5.201 [version-bump] 2026-10-30 15:43:14 +00:00
github-actions[bot] 4d23f92ad1 chore: release version 3.5.200 [version-bump] 2026-10-30 15:38:55 +00:00
github-actions[bot] 1f3fd43d4c chore: bump version to 3.5.199 [version-bump] 2026-10-30 15:29:14 +00:00
github-actions[bot] 8efeeaf858 chore: bump version to 3.5.198 [version-bump] 2026-10-30 15:25:23 +00:00
UNITRONIX 23dc40c958 fix(security): harden panel and supply chain
Refs #477

Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
2026-10-30 16:25:01 +01:00
github-actions[bot] 4bd739d5cb chore: bump version to 3.5.197 [version-bump] 2026-10-30 07:28:23 +00:00