feat: implement AI improvements

This commit is contained in:
AI Scout Agent 2026-05-31 00:43:12 +03:00
parent 2f78fa1106
commit 6edc50203a

View file

@ -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