From 39f8393e000cfeca65b1f8a6bc0feafeb463f209 Mon Sep 17 00:00:00 2001 From: spencrmartin Date: Wed, 3 Dec 2025 15:03:40 -0500 Subject: [PATCH] feat: Add interactive dropdown navigation to SpaceBreadcrumb - Enhanced SpaceBreadcrumb with dropdown menus for Spaces and Rooms - Users can now click Space/Room names to see and switch between options - Added visual improvements: Layers icon for Spaces, ChevronDown indicators - Implemented click-outside-to-close and smooth animations - Added accessibility features: ARIA labels, keyboard navigation - Integrated room switching in TabbedChatContainer - Added comprehensive documentation in BREADCRUMB_DROPDOWN_FEATURE.md Key Features: - Space dropdown: View and navigate to all available Spaces - Room dropdown: View and switch between rooms in current Space - Current Space/Room highlighted with accent color - Member counts displayed for context - Smooth Framer Motion animations - Full keyboard and screen reader support --- BREADCRUMB_DROPDOWN_FEATURE.md | 292 ++++++++++++++++++ ui/desktop/src/components/SpaceBreadcrumb.tsx | 246 +++++++++++++-- .../src/components/TabbedChatContainer.tsx | 32 +- 3 files changed, 543 insertions(+), 27 deletions(-) create mode 100644 BREADCRUMB_DROPDOWN_FEATURE.md diff --git a/BREADCRUMB_DROPDOWN_FEATURE.md b/BREADCRUMB_DROPDOWN_FEATURE.md new file mode 100644 index 0000000000..e4ea79a1c4 --- /dev/null +++ b/BREADCRUMB_DROPDOWN_FEATURE.md @@ -0,0 +1,292 @@ +# Channels Breadcrumb Dropdown Feature + +## Overview +Enhanced the `SpaceBreadcrumb` component to include interactive dropdown menus for both Spaces and Rooms, allowing users to quickly switch between channels without leaving the chat view. + +## Features Implemented + +### 1. **Space Dropdown** +- Click on the Space name to see all available Spaces +- Shows Space icon, name, and member count +- Current Space is highlighted with an accent indicator +- Smooth animations with Framer Motion + +### 2. **Room Dropdown** +- Click on the Room name to see all rooms in the current Space +- Shows room icon, name, topic (if available), and member count +- Current room is highlighted with an accent indicator +- Smooth animations with Framer Motion + +### 3. **Visual Improvements** +- Changed Space icon from `Hash` to `Layers` for better hierarchy +- Added `ChevronDown` icons that rotate when dropdowns are open +- Hover states with background color changes +- Click-outside-to-close functionality + +### 4. **Accessibility** +- Proper ARIA labels and roles +- Keyboard navigation support +- Screen reader friendly +- Semantic HTML with `