From afa7e43051734ce547db60607a45cf6f0165df8a Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 4 Dec 2025 09:17:41 -0600 Subject: [PATCH] Improve draft focus group UX with clickable cards and Run Session button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Make entire draft card clickable to enter setup mode - Rename "Edit" button to "Continue Setup" for better clarity - Add "Run Session" button for complete drafts (with discussion guide and participants) - Prevent checkbox clicks from triggering card navigation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/pages/FocusGroups.tsx | 148 ++++++++++++++++++++++---------------- 1 file changed, 85 insertions(+), 63 deletions(-) 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 + + + )} + + )}