From 6edc50203a0b952885f43184ec94174af21865e9 Mon Sep 17 00:00:00 2001 From: AI Scout Agent Date: Sun, 31 May 2026 00:43:12 +0300 Subject: [PATCH] feat: implement AI improvements --- frontend/js/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/js/app.js b/frontend/js/app.js index 1c60a72..e4540e3 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -106,6 +106,12 @@ async function consumeAcceptInvite(inviteId) { try { const result = await api.acceptInvite(inviteId); + // Stash a toast message to show after reload. + localStorage.setItem(PENDING_INVITE_TOAST_KEY, JSON.stringify({ + message: t('accept.success', { workspace: result?.workspace_name || '' }), + type: 'success' + })); + // Switch to the joined workspace. New JWT carries the workspace context; // reload picks it up for sidebar /me + socket rooms + data fetches. If // the switch fails, log and reload anyway - the membership was created