Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

feat(sidebar): add dot to show the user about new invintation (#1711)

Muhammadrizo29122cc18bac
diff --git a/packages/views/layout/app-sidebar.tsx b/packages/views/layout/app-sidebar.tsx
index 751b95e593..748edcaa6c 100644
--- a/packages/views/layout/app-sidebar.tsx
+++ b/packages/views/layout/app-sidebar.tsx
@@ -447,7 +447,12 @@ export function AppSidebar({ topSlot, searchSlot, headerClassName, headerStyle }
<DropdownMenuTrigger
render={
<SidebarMenuButton>
- <WorkspaceAvatar name={workspace?.name ?? "M"} size="sm" />
+ <span className="relative">
+ <WorkspaceAvatar name={workspace?.name ?? "M"} size="sm" />
+ {myInvitations.length > 0 && (
+ <span className="absolute -top-0.5 -right-0.5 size-2 rounded-full bg-brand ring-1 ring-sidebar" />
+ )}
+ </span>
<span className="flex-1 truncate font-medium">
{workspace?.name ?? "Multica"}
</span>