Two defects behind one report.
Navigation: "Pair agent" (and the agents page button) opened the Dashboard
behind a dialog, so asking to pair showed the whole overview, and the
dialog sat over a page it does not belong to. /?activateAgent=1 now
redirects to /pairing, the page that mints the code, and the sidebar has a
single pairing entry pointing there. The separate "Pairing" entry in the
clients group is gone, and so is the activate-agent nav key, which existed
only to mark the dashboard as active.
Blocking: the dialog was opened with an inline display: flex while the beta
sheet had already set .modal-overlay to display: none with opacity 0 for the
closed state. An inline display wins, so the overlay became a visible layer
that the sheet still painted transparent - every click landed on it and the
panel looked frozen. Both dashboard dialogs (pairing code and QR scanner) are
now toggled with the same class the rest of the console uses; no inline
display is left in dashboard.js.
Tests: the pairing UI suite now asserts the redirect, the class-based
toggle, and that no surface links to the old deep link. Its harness also
gained the locals the shell sidebar needs, which is why it failed on the
baseline before.
Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow); muopc (@muopc)
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)
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)