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)