Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix: remove unused "Join immediately" checkbox from meeting form

Gener5892b0bb4c63
diff --git a/src/web/src/app/(app)/w/[slug]/agents/[id]/meetings/page.tsx b/src/web/src/app/(app)/w/[slug]/agents/[id]/meetings/page.tsx
index f981a2ca9..1115927e4 100644
--- a/src/web/src/app/(app)/w/[slug]/agents/[id]/meetings/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/agents/[id]/meetings/page.tsx
@@ -56,7 +56,7 @@ export default function AgentMeetingsPage() {
const [meetUrl, setMeetUrl] = useState("");
const [meetTitle, setMeetTitle] = useState("");
const [meetParticipants, setMeetParticipants] = useState("");
- const [meetImmediate, setMeetImmediate] = useState(true);
+
const loadMeetings = useCallback(async () => {
try {
@@ -93,7 +93,6 @@ export default function AgentMeetingsPage() {
meetingUrl: meetUrl,
title: meetTitle || undefined,
participants: participants.length > 0 ? participants : undefined,
- immediate: meetImmediate,
});
toast.success("Meeting created");
setCreateOpen(false);
@@ -285,15 +284,6 @@ export default function AgentMeetingsPage() {
className="w-full rounded-md border border-border bg-background px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-ring resize-none"
/>
</div>
- <label className="flex items-center gap-2 text-sm">
- <input
- type="checkbox"
- checked={meetImmediate}
- onChange={(e) => setMeetImmediate(e.target.checked)}
- className="rounded"
- />
- Join immediately
- </label>
</SheetBody>
<SheetFooter>
<Button variant="outline" onClick={() => setCreateOpen(false)}>
diff --git a/src/web/src/app/api/agents/[id]/meetings/route.ts b/src/web/src/app/api/agents/[id]/meetings/route.ts
index d0ceedc50..85a6360c0 100644
--- a/src/web/src/app/api/agents/[id]/meetings/route.ts
+++ b/src/web/src/app/api/agents/[id]/meetings/route.ts
@@ -47,7 +47,6 @@ export const POST = withAuth(async (req: NextRequest, ctx) => {
title?: string
participants?: string[]
scheduledAt?: string
- immediate?: boolean
}
try {
body = await req.json() as typeof body
@@ -58,8 +57,6 @@ export const POST = withAuth(async (req: NextRequest, ctx) => {
if (!body.meetingUrl) return writeError("meetingUrl is required", 400)
if (!MEET_URL_RE.test(body.meetingUrl)) return writeError("invalid Google Meet URL format", 400)
- const shouldJoinNow = body.immediate === true || !body.scheduledAt
-
const meeting = await queries.meetingSession.createMeetingSession(db, {
agentId,
workspaceId: ws.workspaceId,
@@ -68,7 +65,7 @@ export const POST = withAuth(async (req: NextRequest, ctx) => {
status: MeetingStatus.SCHEDULED,
isWhitelisted: true,
participants: body.participants ?? [],
- scheduledAt: shouldJoinNow ? new Date().toISOString() : body.scheduledAt!,
+ scheduledAt: body.scheduledAt ?? new Date().toISOString(),
})
const created = await queries.meetingSession.getMeetingSession(db, meeting.id, ws.workspaceId)
diff --git a/src/web/src/lib/api.ts b/src/web/src/lib/api.ts
index bbef25674..f83777a34 100644
--- a/src/web/src/lib/api.ts
+++ b/src/web/src/lib/api.ts
@@ -816,8 +816,6 @@ export const createMeeting = (agentId: string, workspaceId: string, data: {
meetingUrl: string;
title?: string;
participants?: string[];
- scheduledAt?: string;
- immediate?: boolean;
}) =>
apiFetch<MeetingSession>(`/api/agents/${agentId}/meetings${wsQuery(workspaceId)}`, {
method: "POST",