feat: move support links to workspace switcher (#16653)

## Summary
Move the Support and Documentation links from the bottom left navigation
drawer to the workspace switcher dropdown menu.

## Changes
- **Workspace Switcher**: Added Support (conditional) and Documentation
links before Log out
- **Settings Navigation**: Added Support and Documentation links in the
Other section
- **Support visibility**: Support link only appears when FrontChat is
configured (not waiting for script to load)
- **FrontChat loading**: Created `SupportChatEffect` component to ensure
FrontChat script loads at app startup for popup notifications
- **Bug fix**: Fixed settings navigation items without a path appearing
highlighted
- **Cleanup**: Removed unused `SupportDropdown`, `SupportButton`, and
`SupportButtonSkeletonLoader` components
- **Hidden**: Temporarily commented out Integrations page

## Screenshots
The Support and Documentation links now appear in:
1. Workspace switcher dropdown (top left)
2. Settings navigation (Other section)
This commit is contained in:
Félix Malfait
2025-12-18 10:09:10 +01:00
committed by GitHub
parent 4fe8e3d3b6
commit 12544da527
12 changed files with 100 additions and 195 deletions
@@ -24,7 +24,7 @@ export const SettingsNavigationDrawerItem = ({
end: item.matchSubPages === false,
});
const isActive = !!matchResult && !hasActiveSubItem;
const isActive = !!item.path && !!matchResult && !hasActiveSubItem;
if (isDefined(item.isHidden) && item.isHidden) {
return null;
@@ -37,7 +37,7 @@ export const SettingsNavigationDrawerItem = ({
indentationLevel={item.indentationLevel}
subItemState={subItemState}
label={item.label}
to={href}
to={href || undefined}
Icon={item.Icon}
active={isActive}
soon={item.soon}
@@ -53,7 +53,7 @@ export const SettingsNavigationDrawerItem = ({
indentationLevel={item.indentationLevel}
subItemState={subItemState}
label={item.label}
to={href}
to={href || undefined}
Icon={item.Icon}
active={isActive}
soon={item.soon}