mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 16:57:48 +01:00
- Switch to correct floating-ui SuggestionButton component with working typing functionality - Fix button positioning to display in middle-right of screen (not bottom) - Add explicit positioning styles to ensure proper panel placement - Resolve character-by-character input issues by using the optimized component version - All feedback form features now working: backdrop close, scope switching, element selection 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1.5 KiB
1.5 KiB
created_date: 2025-09-16 last_modified_date: 2025-09-16 last_modified_summary: Initial document describing RevampCopilot layering and behavior
RevampCopilot (Chatbot) — Component Guide
Overview
RevampCopilot is the site assistant shown as a floating button and an expandable chat panel. It must remain accessible above non-critical overlays while yielding to critical UI like the mobile navigation.
Stacking Context and z-index
- Floating button:
z-[95] - Chat panel:
z-[96] - Welcome modal overlay/content:
z-[80]/z-[81] - Mobile menu overlay/panel:
z-[100]/z-[101]
Result: Chat stays above general overlays (e.g., feature panels, welcome overlay) but below the mobile menu.
Files
src/features/chatbot/components/FloatingButton.tsxsrc/features/chatbot/components/RevampCopilot.tsxsrc/features/chatbot/components/ChatWindow.tsx
Behavior
- The chat input focuses automatically when the panel opens or after sending a message.
- Enter submits; Shift+Enter allows multiline in future variants.
Accessibility
- Buttons have clear
aria-labels. - Panel does not trap focus; ESC behavior handled by browser/OS; consider adding a close shortcut in future.
Troubleshooting
- Chat hidden behind overlay: verify z-index values and ensure no inline styles override class-based z-indices.
- Input not typing: ensure the panel is not minimized and
onKeyDownis bound; check for page-level focus traps.
Change Log
- 2025-09-16: Adjusted z-index for chat (95/96) and WelcomeModal (80/81) to resolve overlay conflicts.