Commit Graph

3349 Commits

Author SHA1 Message Date
Eduard Gert
db2ea7554f remove mdm test scripts and other markdown files 2026-06-17 11:43:07 +02:00
Zoltán Papp
3a283f813f ui: extract applyMDMRestrictions to reduce cognitive complexity
Splits the MDM field-mapping block out of GetRestrictions into its own
helper to bring the function's cognitive complexity below the S3776 limit.
2026-06-17 11:32:36 +02:00
Zoltán Papp
bd924431ec ui: move dock_other no-op comment inside function body 2026-06-17 11:31:22 +02:00
Eduard Gert
855ef2465f refresh restrictions also on status changes 2026-06-17 10:25:20 +02:00
Eduard Gert
3e1dc1f023 microsoft windows only: open application on left click and tray menu on right click 2026-06-17 09:55:00 +02:00
Pascal Fischer
0c21aefc7f Left-click support for linux (#6410) 2026-06-16 17:46:48 +02:00
Zoltán Papp
1f69cd189e ui: elevate Windows debug-bundle reveal to bypass SystemTemp ACL
The daemon runs as SYSTEM and writes the bundle into C:\Windows\SystemTemp,
whose ACL denies the logged-in user, so a plain 'explorer /select' could not
open it. The Windows reveal now elevates via ShellExecuteW with the runas verb,
falling back to an unelevated reveal of the parent dir on decline.
2026-06-16 15:34:09 +02:00
Eduard Gert
44709983f7 fix focus on windows windows 2026-06-16 15:03:51 +02:00
Eduard Gert
e4918e0277 update main toggle switch 2026-06-16 14:03:13 +02:00
Eduard Gert
192c3109c0 add more ui logs and fix sonarqube lint 2026-06-16 13:45:54 +02:00
Eduard Gert
b16bdf5e8f refetch restrictions on window visibility change 2026-06-16 13:30:17 +02:00
Eduard Gert
4ae37919c0 keep general settings tab visible when update settings are locked 2026-06-16 12:24:06 +02:00
Eduard Gert
951e08e35c add mdm helper (windows) (can be deleted later) 2026-06-16 12:11:47 +02:00
Eduard Gert
64c9551a4d remove "Loading..." from profile dropdown and show skeleton 2026-06-16 12:09:49 +02:00
Eduard Gert
44156b6256 mdm test script (can be deleted later) 2026-06-16 11:33:10 +02:00
Eduard Gert
ebaaddc14b show macos dock icon when any window is visible 2026-06-16 11:32:04 +02:00
Eduard Gert
28d85ecae3 adjust offset on macos 2026-06-15 16:27:44 +02:00
Eduard Gert
c37f24d1b0 adjust vertical offset on macos 2026-06-15 16:13:03 +02:00
Eduard Gert
c7a338c006 update config on config changed event 2026-06-15 16:13:03 +02:00
braginini
8f200e8489 Change browser login wording 2026-06-15 15:46:33 +02:00
Eduard Gert
780296a7db force disable spellcheck for inputs 2026-06-15 14:53:37 +02:00
Eduard Gert
91cbae8910 fix session expired dialog 2026-06-15 14:15:39 +02:00
Eduard Gert
4f72be6a42 fix mdm advanced view 2026-06-15 14:00:05 +02:00
Eduard Gert
83c9e5b0d1 fix allowserverssh mdm 2026-06-15 13:54:07 +02:00
Eduard Gert
47efdd839c Merge remote-tracking branch 'origin/ui-refactor' into ui-refactor 2026-06-15 13:20:34 +02:00
Eduard Gert
90be56788a fix mdm allowserverssh 2026-06-15 13:20:16 +02:00
Zoltán Papp
715a2b0943 docs(contributing): update UI build guidelines for Wails v3
The UI client migrated from Fyne to Wails v3 + React. Update the
Requirements and Build sections accordingly, fix the Windows installer
UI build command to use the task runner, bump the Go version to 1.25,
and drop the now-redundant client/ui/README.md.
2026-06-15 13:19:45 +02:00
Zoltán Papp
b6246e7c02 refactor(ui): extract critical severity into a constant
The critical-event gate compared against a bare "critical" literal while
the matching string is produced from the proto SystemEvent_CRITICAL enum in
systemEventFromProto. Add services.SeverityCritical next to the Status*
constants so the two sides share one definition.
2026-06-15 12:31:23 +02:00
Zoltán Papp
37eb150535 fix(ui): match severity gate case-insensitively
The critical-event gate used a case-sensitive == "critical" where every
other status/severity compare in the UI uses strings.EqualFold, so a
daemon-side reword to a different case would silently drop the bypass.
2026-06-15 12:29:50 +02:00
Zoltán Papp
6c15e8b51c fix(ui): close session bus when XEmbed host fails to start
newXembedHost failure left the private session bus open, leaking an fd
per RegisterStatusNotifierItem on systems without an XEmbed tray. Add a
closeBus helper that logs on close failure and use it at every back-off
path instead of discarding the error.
2026-06-15 12:27:46 +02:00
Zoltán Papp
b0f08645c3 fix(ui): install X11 error handler so tray races don't kill the UI
Xlib's default protocol-error handler calls exit() on any async X error,
so a tray race (tray manager window dying between find and dock, XMoveWindow
on a popup the WM already destroyed) would take the whole UI process down.

Install process-global logging no-op handlers via XSetErrorHandler/
XSetIOErrorHandler after every XOpenDisplay. Since the handler slot is
process-global and GDK init can clobber it, additionally wrap the popup
code's raw Xlib calls on GDK's Display in gdk_x11_display_error_trap_push/
pop_ignored, which is independent of the global handler.
2026-06-15 12:26:53 +02:00
Eduard Gert
2089b79630 show profiles also when mdm update setting is active 2026-06-15 12:20:28 +02:00
Zoltan Papp
c68bb8f99f fix(ui): resolve active profile before GetConfig in GetRestrictions
GetRestrictions called the daemon GetConfig with an empty
GetConfigRequest, which the daemon has rejected since multi-profile
support landed ("active profile name is empty") because it reads the
profile name from the request. Resolve the active profile via
GetActiveProfile first and pass its name/username, mirroring the
working Settings.GetConfig path. GetActiveProfile self-heals to the
default profile, so a valid name is always supplied; the
profile-switch-disabled MDM flag is orthogonal and unaffected.
2026-06-15 12:04:50 +02:00
Zoltan Papp
9e5bcb26eb fix(ui): include error name and message in forwarded logs
WebKit (macOS WKWebView) omits the "Name: message" header from
Error.stack, so forwarding only the stack hid the real cause of
failures. Prepend the error name, message and optional cause before
the stack so daemon RPC errors surface in gui-client.log.
2026-06-15 11:57:34 +02:00
Zoltan Papp
c9aed1a7c4 Merge branch 'main' into ui-refactor 2026-06-15 11:49:35 +02:00
Zoltan Papp
2959979f37 chore(ui): bump wails/v3 to v3.0.0-alpha.102 2026-06-15 11:44:44 +02:00
Zoltán Papp
7b08e750d5 feat(ui): hide macOS Dock icon, run as tray-only accessory app 2026-06-15 11:26:57 +02:00
Bethuel Mmbaga
cd777395f2 [management] Skip JWT group evaluation for embedded-IdP local users (#6422)
When JWT group sync is enabled with a restrictive JWTAllowGroups list, the local owner of an embedded-IdP (Dex) deployment can get locked out. The allow-groups check runs account-wide but local password users do not receive
external IdP group claims, so they can't satisfy the allowed list.

This skips JWT group evaluation for local Dex users so the restriction and JWT group sync continue to apply to external-IdP users as intended.
2026-06-15 12:01:54 +03:00
Eduard Gert
79e0a05f52 fix psk behaviour and allow to clear psk 2026-06-15 10:43:48 +02:00
Zoltan Papp
ec366163e3 ci(codespell): skip translated locale dirs and TRANSLATING.md
Non-English UI translations and the foreign-language examples in
TRANSLATING.md trip codespell on real foreign words. Extend the skip
list to cover es, fr, it, pt, ru, zh-CN locale dirs and the
TRANSLATING.md doc, keeping en/common.json as the source of truth.
2026-06-13 02:24:22 +02:00
Zoltan Papp
2d54c7f088 routeselector: remove duplicate IsDeselectAllActive
IsDeselectAllActive was identical to IsDeselectAll (both return the
deselectAll flag under a read lock). The two were introduced in parallel
on separate branches for the same fix - guarding against management route
sync overriding a user's explicit deselect-all - and ended up coexisting
after the branches merged.

Drop IsDeselectAllActive, keep the canonical IsDeselectAll from main, and
move its richer doc comment over. Update callers accordingly.
2026-06-13 00:50:42 +02:00
Zoltan Papp
a1a24bd777 Add in-body comment to startStatusNotifierWatcher no-op stub 2026-06-13 00:42:42 +02:00
Zoltan Papp
f0ac331fdc [client/server] fix connect retry test for PermissionDenied short-circuit
Commit 8841b950a made connectWithRetryRuns stop after a single login
attempt on PermissionDenied, but TestConnectWithRetryRuns still asserted
the loop retries 3+ times, so it failed with counter=1.

Repurpose the test (now TestConnectStopsRetryOnPermissionDenied) to
verify the loop stops after exactly one login on PermissionDenied,
keeping the fast retry env config that would otherwise drive several
attempts. Also redirect profile paths to a temp dir so it runs without
root.
2026-06-13 00:39:59 +02:00
Zoltan Papp
ae3f5b1088 Reorder UI service files to follow member-ordering convention
Group all type declarations at the top, keep each type's methods with it,
move package-level helpers and static functions to the end of the file.

- connection.go: ClientError methods sit directly under the struct; the
  classifyDaemonError / translateShort helpers move to the file end.
- windowmanager.go: the title / retitleAll / hideOtherWindowsLocked /
  restoreHiddenWindowsLocked / getScreenBasedOnCursorPosition helpers and the
  errorDialogURL / u32ptr static functions move to the file end; u32ptr no
  longer splits the const/var block.
2026-06-13 00:37:00 +02:00
Zoltan Papp
edf7e2d04d Tighten verbose comments in Wails UI Go code
Shorten over-long godoc/inline comments across the client/ui tray and
services code: drop narrative restatement, legacy-Fyne tangents, and text
already evident from signatures and names. Keep only the non-obvious why
(concurrency/lock ordering, platform quirks, ordering constraints, the
profile-switch state table). No code changes.
2026-06-13 00:22:27 +02:00
Eduard Gert
c2b43b9cf0 localize installer unknown-error fallback and abort debug bundle on unmount 2026-06-12 18:06:58 +02:00
Eduard Gert
8f2429c637 move debounced save out of SettingsContext setState updater 2026-06-12 18:06:38 +02:00
Eduard Gert
6cc6d68b37 add mdm 2026-06-12 18:00:28 +02:00
riccardom
c4d4208ea6 Template alignment 2026-06-12 16:13:23 +02:00
riccardom
aae6a924e2 Adds DisableAdvancedView optional MDM flag 2026-06-12 16:07:12 +02:00