Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.52 KB

File metadata and controls

42 lines (34 loc) · 1.52 KB

Chat Creation with Group ID - Test Results

Issue Fixed

The issue was that the create-chat view case was missing from the main rendering logic in workspace-application.tsx. While the URL parsing correctly identified the view and extracted parameters, there was no corresponding rendering case.

Changes Made

1. Added Missing View Case

{currentView === 'create-chat' && routeParams.workspaceId && (
    <div className="h-full overflow-y-auto">
        <CreateChatView 
            workspaceId={routeParams.workspaceId}
            groupId={queryParams.groupId || null}
        />
    </div>
)}

2. Updated CreateChatView Component

  • Added groupId?: string | null to props interface
  • Added visual indication for group context
  • Enhanced cancel button navigation

3. Import Added

import { CreateChatView } from '@/components/workspace/chat/create-chat-view';

Test URLs

  • /add/chat/3bb95a95-f957-4a9b-841b-12ff980295a8 - Basic chat creation
  • /add/chat/3bb95a95-f957-4a9b-841b-12ff980295a8?groupId=some-group-id - With group context

Expected Behavior

  1. URL with groupId parameter should now render the CreateChatView component
  2. Component should show "Group context" badge when groupId is present
  3. Chat creation should work normally
  4. Cancel button should preserve group context in navigation
  5. No more navigation to wrong pages when clicking create chat with groupId

Status

FIXED - The create-chat view now properly handles groupId parameters and renders correctly.