From 38a367e0cdef5f0a821102928a1b2ebc5f931f46 Mon Sep 17 00:00:00 2001 From: Eduard Gert Date: Mon, 18 May 2026 10:39:39 +0200 Subject: [PATCH] update markdown files --- client/ui/CLAUDE.md | 2 +- client/ui/frontend/CLAUDE.md | 3 ++- client/ui/frontend/WAILS-API.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/ui/CLAUDE.md b/client/ui/CLAUDE.md index f5c4ea85e..8efffcd66 100644 --- a/client/ui/CLAUDE.md +++ b/client/ui/CLAUDE.md @@ -49,7 +49,7 @@ All services live in `services/` and assume a build tag `!android && !ios && !fr ## Events bus -`main.go` registers four typed events for the frontend: `netbird:status` (`Status`), `netbird:event` (`SystemEvent`), `netbird:update:available` (`UpdateAvailable`), `netbird:update:progress` (`UpdateProgress`). Plus three plain-string events: +`main.go` registers five typed events for the frontend: `netbird:status` (`Status`), `netbird:event` (`SystemEvent`), `netbird:profile:changed` (`ProfileRef`), `netbird:update:available` (`UpdateAvailable`), `netbird:update:progress` (`UpdateProgress`). `netbird:profile:changed` fires from `ProfileSwitcher.SwitchActive` after a successful daemon-side switch — both the React `ProfileContext` and the tray subscribe so a flip driven from one surface paints in the others (the daemon itself does not emit a profile event). Plus three plain-string events: - `EventTriggerLogin = "trigger-login"` — tray asking the frontend's `startLogin()` to begin an SSO flow. - `EventBrowserLoginCancel = "browser-login:cancel"` — the `BrowserLogin` window's Cancel button or red-X close. `startLogin()` listens and tears down the daemon's pending `WaitSSOLogin`. diff --git a/client/ui/frontend/CLAUDE.md b/client/ui/frontend/CLAUDE.md index 91ff79b86..efe505208 100644 --- a/client/ui/frontend/CLAUDE.md +++ b/client/ui/frontend/CLAUDE.md @@ -46,10 +46,11 @@ Subscribe with `Events.On(name, handler)`. The handler receives `{ data: