diff --git a/src/pages/FocusGroups.tsx b/src/pages/FocusGroups.tsx index 980271d5..5922b6b1 100644 --- a/src/pages/FocusGroups.tsx +++ b/src/pages/FocusGroups.tsx @@ -378,18 +378,28 @@ const FocusGroups = () => { ) : filteredGroups.length > 0 ? (
{filteredGroups.map((group) => ( -
{ + if (group.status === 'draft') { + setDraftToEdit(group); + setMode('create'); + } + }} >
- toggleGroupSelection(group.id || group._id || '')} + onClick={(e) => e.stopPropagation()} className="mt-1" />
@@ -461,68 +471,80 @@ const FocusGroups = () => {
- + {/* Show Run Session button only when draft is complete (has discussion guide and participants) */} + {group.discussionGuide && Array.isArray(group.participants) && group.participants.length > 0 && ( + + )} +
+ ) : ( + + }} + > + {group.status === 'completed' ? ( + <> + View Session + + + ) : group.status === 'in-progress' || group.status === 'active' || group.status === 'ai_mode' ? ( + <> + Join Session + + + ) : group.status === 'paused' ? ( + <> + Session Details + + + ) : group.status === 'scheduled' ? ( + <> + View Details + + + ) : ( + <> + View Session + + + )} + + )}