mirror of
https://github.com/sol1/rustguac.git
synced 2026-09-10 09:35:45 +00:00
e791383375
Feature #103: single-entry auto-connect - New `auto_open_if_singleton: Option<bool>` on AddressBookEntry and EntryInfo. Admin ticks it per entry in the Connections modal; importer initialises to None. - After the /api/addressbook batch resolves on the Connections page, if the user sees exactly one entry and it has the flag set, the page fetches /connect and navigates the current tab to the new session. Same-tab navigation (not a popup) because browsers block window.open after an async fetch without a user gesture. - A sessionStorage flag gates the auto-open to once per browser session — an accidental refresh of Connections doesn't re-spawn sessions. Logout clears the flag so the next login fires again. - Admins never meet the singleton condition (they have many entries) so this is effectively kiosk-only. Escape hatch: client.html Home button - Ctrl+Alt+Shift panel header now has a 🏠 Home button next to the close ×. Takes the tab back to /connections.html — primary route for a kiosk user whose session auto-opened into this tab. Bug fix: folder-modal group picker silently added a group on save - addFmGroupFromInput used to fall through to picking the combo's highlighted suggestion when the input was empty. fm-save calls addFmGroupFromInput to flush any typed-but-not-chipped text; with an empty input that meant every Save on an existing folder tacked on the first unselected known group (e.g. an operator group) — visible only on the next edit. Split the "pick suggestion when empty" behaviour out to an explicit helper that only fires from Enter-with-empty-input, never from Save.