Skip to content

Conversation

@lgh-solace
Copy link
Collaborator

@lgh-solace lgh-solace commented Jan 5, 2026

What is the purpose of this change?

Logging out was logging back in immediately (also fixing overflow of long name)

How was this change implemented?

Adding await to ensure logout doesn't get logged immediately back in (via a useEffect re-rending) and truncating long names

How was this change tested?

  • Manual testing: [describe scenarios]
  • Unit tests: [new/modified tests]
  • Integration tests: [if applicable]
  • Known limitations: [what wasn't tested] => Needs manual testing in deployed enterprise version.

Is there anything the reviewers should focus on/be aware of?

There's a feature flag as this flow will not be revealed until logging out has been tested more broadly.

const handleLogoutClick = async () => {
setMenuOpen(false);
logout();
await logout();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the await here to stop logging in from immediately being triggered.

<User className="size-4" />
<span className="text-sm font-medium">{typeof userInfo?.username === "string" ? userInfo.username : "Guest"}</span>
<User className="size-4 shrink-0" />
<div className="min-w-0 truncate text-sm font-medium" title={userName}>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long names should not overflow the container.

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

WhiteSource Policy Violation Summary

✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-ui-pr-737!

@sonarqube-solacecloud
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@lgh-solace lgh-solace marked this pull request as ready for review January 5, 2026 20:46
@lgh-solace lgh-solace requested a review from JKaram January 5, 2026 20:47
@lgh-solace lgh-solace merged commit 6e189d5 into main Jan 5, 2026
25 checks passed
@lgh-solace lgh-solace deleted the lgh-datago117142-logoutUpdate branch January 5, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants