Spaces:
Sleeping
Sleeping
Add icons to course activity actions
Browse filesFiles changed (3)
239 unmodified lines240241242243244245239 unmodified linesawait user.clear(repositoryInput);await user.type(repositoryInput, "https://github.com/acme/unlisted");expect((repositoryInput as HTMLInputElement).value).toBe("https://github.com/acme/unlisted");await user.click(screen.getByRole("button", { name: "Refresh requests" }));expect(await screen.findByText("Learner")).toBeTruthy();await user.click(screen.getByRole("button", { name: "Open round" }));239 unmodified lines240241242243244245246247248249239 unmodified linesawait user.clear(repositoryInput);await user.type(repositoryInput, "https://github.com/acme/unlisted");expect((repositoryInput as HTMLInputElement).value).toBe("https://github.com/acme/unlisted");expect(screen.getByRole("button", { name: "Managed rounds" }).getAttribute("aria-expanded")).toBe("false");expect(screen.queryByText("Learner")).toBeNull();await user.click(screen.getByRole("button", { name: "Managed rounds" }));expect(screen.getByRole("button", { name: "Managed rounds" }).getAttribute("aria-expanded")).toBe("true");await user.click(screen.getByRole("button", { name: "Refresh requests" }));expect(await screen.findByText("Learner")).toBeTruthy();await user.click(screen.getByRole("button", { name: "Open round" }));
15 unmodified lines161718192021224 unmodified lines27282930313237 unmodified lines707172737475820 unmodified lines89689789889990090190290390490590624 unmodified lines93193293393493593693715 unmodified linesLoaderCircle,LogOut,MessageSquareText,Play,RotateCcw,Redo2,Send,4 unmodified linesTerminalSquare,Upload,Undo2,XCircle,} from "lucide-react";import { api, waitForChallenge, waitForJob } from "./api";37 unmodified linesconst [historyOpen, setHistoryOpen] = useState(false);const [historyLoading, setHistoryLoading] = useState(false);const [instructorDashboard, setInstructorDashboard] = useState<InstructorDashboard | null>(null);const [dashboardLoading, setDashboardLoading] = useState(false);const [courseAccess, setCourseAccess] = useState<CourseAccessStatus | null>(null);const [courseAccessRequests, setCourseAccessRequests] = useState<CourseAccessRequest[]>([]);820 unmodified lines{page === "setup" && (<main className="setup-layout"><div className="setup-intro"><p className="eyebrow">NEW DEBUGGING SESSION</p><h1>Choose your challenge.</h1><p>Each run starts from a fresh repository copy. Your work and results stay attached to this session.</p></div>{config.course_mode && session.role === "student" && <section className="instructor-dashboard course-access-panel"><div className="panel-heading"><div><p className="eyebrow">COURSE ACCESS</p><h2>Instructor access</h2></div><button className="button button-secondary" onClick={() => void handleLoadCourseAccess()} disabled={courseAccessLoading}>Refresh access</button></div>{courseAccessError && <p className="notice notice-error" role="alert">{courseAccessError}</p>}{courseAccess?.request?.status === "pending" ? <p role="status">Your instructor access request is pending review.</p> : courseAccess?.request?.status === "approved" ? <p role="status">Your request was approved. Refresh access to activate instructor tools.</p> : <><label>Why do you need instructor access?<textarea value={accessRequestReason} onChange={(event) => setAccessRequestReason(event.target.value)} maxLength={1000} rows={2} placeholder="Optional note for the course administrator." /></label><button className="button button-secondary" onClick={() => void handleRequestInstructorAccess()} disabled={courseAccessLoading}>Request instructor access</button></>}</section>}{session.role === "instructor" && <section className="instructor-dashboard"><div className="panel-heading"><div><p className="eyebrow">COURSE ACTIVITY</p><h2>Managed rounds</h2></div><button className="button button-secondary" onClick={() => void handleLoadInstructorDashboard()} disabled={dashboardLoading}>{dashboardLoading ? <LoaderCircle className="spin" size={15} /> : null}Refresh</button></div>{dashboardLoading ? <p role="status">Loading course activity…</p> : instructorDashboard?.rounds.length ? <div className="managed-round-list">{instructorDashboard.rounds.map((round) => <article className="managed-round" key={round.round_id}><div className="managed-round-heading"><div><strong>{round.repo_url?.split("/").slice(-1)[0] || "Challenge round"}</strong><span>{round.target_file || "Target unavailable"}</span></div><span className={`history-status round-status-${round.status}`}>{round.status}</span></div><small>{round.participants.length} participants · {round.quota_units_per_student ?? 0} LLM units each</small>{round.participants.map((participant, index) => <div className="participant-row" key={`${participant.student_name}-${index}`}><span>{participant.student_name || "Student"}</span><span>{participant.status.replaceAll("_", " ")}</span><span>{participant.submission_count} submissions</span><strong>{participant.latest_score == null ? "—" : `${participant.latest_score}/100`}</strong></div>)}<div className="managed-round-actions">{round.status === "prepared" && <button className="button button-secondary" onClick={() => void handleRoundTransition(round.round_id, "open")} disabled={busy}>Open round</button>}{round.status === "open" && <button className="button button-secondary" onClick={() => void handleRoundTransition(round.round_id, "close")} disabled={busy}>Close round</button>}</div></article>)}</div> : <p>No rounds have been prepared yet.</p>}</section>}{config.course_mode && session.is_course_admin && <section className="instructor-dashboard access-review-panel"><div className="panel-heading"><div><p className="eyebrow">ACCESS REVIEW</p><h2>Instructor requests</h2></div><button className="button button-secondary" onClick={() => void handleLoadCourseAccess()} disabled={courseAccessLoading}>Refresh requests</button></div>{courseAccessError && <p className="notice notice-error" role="alert">{courseAccessError}</p>}{courseAccessRequests.length ? courseAccessRequests.map((accessRequest) => <article className="managed-round" key={accessRequest.request_id}><div className="managed-round-heading"><div><strong>{accessRequest.display_name}</strong><span>{accessRequest.auth_provider} · {accessRequest.provider_user_id}</span></div><small>{accessRequest.requested_at ? new Date(accessRequest.requested_at).toLocaleDateString() : ""}</small></div>{accessRequest.reason && <p>{accessRequest.reason}</p>}<div className="managed-round-actions"><button className="button button-secondary" onClick={() => void handleReviewCourseAccessRequest(accessRequest.request_id, "approved")} disabled={courseAccessLoading}>Approve</button><button className="button button-secondary" onClick={() => void handleReviewCourseAccessRequest(accessRequest.request_id, "rejected")} disabled={courseAccessLoading}>Reject</button></div></article>) : <p>No pending instructor requests.</p>}</section>}<form className="setup-panel" onSubmit={handleStartChallenge}><div className="round-join-row"><label>Join a shared class challenge<input value={roundCode} onChange={(event) => setRoundCode(event.target.value)} placeholder="Paste round code" /></label><button type="button" className="button button-secondary" onClick={() => void handleJoinRound()} disabled={busy || !roundCode.trim()}>{busy ? <LoaderCircle className="spin" size={16} /> : null}Join round</button></div>{!hasModelAccess && <p className="muted-copy" role="status">Without a model key, you can join existing challenges, run tests, and submit. Challenge creation, AI chat/hints, and AI review are disabled.</p>}{hasModelAccess && <><div className="round-divider">{config.course_mode ? "CREATE A PERSONAL CHALLENGE" : "OR CREATE A NEW CHALLENGE"}</div>24 unmodified lines</div><section className="self-assessment-panel"><div><p className="eyebrow">BEFORE SUBMITTING</p><h2>Self-assessment</h2></div><label>Confidence in your fix<div className="range-line"><input type="range" min={1} max={5} value={selfConfidence} onChange={(event) => setSelfConfidence(Number(event.target.value))} /><output>{selfConfidence}/5</output></div></label><label>Known limitations<textarea value={knownLimitations} onChange={(event) => setKnownLimitations(event.target.value)} maxLength={4000} rows={2} placeholder="Optional: note anything you could not verify." /></label></section><div className="editor-cta-row"><button className="button button-secondary" onClick={() => void handleRunTests()} disabled={busy}><Play size={16} />Run public tests</button><button className="button button-secondary" onClick={() => void handleShowPublicTests()} disabled={busy}><FileCode2 size={16} />View public tests</button><button className="button button-secondary" onClick={() => void handleShowDiff()} disabled={busy || selectedFile !== challenge.target_file} title={selectedFile !== challenge.target_file ? "Diff snapshot is available for the challenge target file" : "View changes"}><Code2 size={16} />View changes</button>{session.role === "instructor" && <button className="button button-secondary" onClick={() => void handleShowDiagnosis()} disabled={busy}><CircleHelp size={16} />What to fix and where</button>}{session.role === "instructor" && <label className="round-quota-control">LLM units per student<input type="number" min={0} max={100} step={1} value={roundQuota} onChange={(event) => setRoundQuota(Math.min(100, Math.max(0, Number(event.target.value))))} disabled={busy} /></label>}{session.role === "instructor" && <button className="button button-secondary" onClick={() => void handlePublishRound()} disabled={busy}><Share2 size={16} />Publish round</button>}<button className="button button-primary submit-button" onClick={() => void handleSubmit()} disabled={busy || selectedFile !== challenge.target_file} title={selectedFile !== challenge.target_file ? "Select the challenge target file before submitting" : "Submit fix"}><Upload size={16} />Submit fix</button></div>{publishedRound && <section className="round-share-panel" aria-live="polite"><div><p className="eyebrow">SHARED ROUND · {publishedRound.status}</p><strong>{publishedRound.round_id}</strong><small>{publishedRound.quota_units_per_student} LLM units/student · Artifact {publishedRound.artifact_hash.slice(0, 12)} · Tests {publishedRound.tests_hash.slice(0, 12)}</small></div>{publishedRound.status === "prepared" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "open")} disabled={busy}>Open round</button>}{publishedRound.status === "open" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "close")} disabled={busy}>Close round</button>}<button className="icon-button" onClick={async () => { try { await navigator.clipboard.writeText(publishedRound.round_id); setRoundCopied(true); } catch { setError("Clipboard access is unavailable. Select and copy the round code."); } }} aria-label="Copy round code" title="Copy round code"><Copy size={16} /></button>{roundCopied && <span className="round-copied">Copied</span>}</section>}{publicTestsView && <section className="test-panel public-tests-panel" aria-label="Public tests source"><div className="panel-heading"><div><p className="eyebrow">READ-ONLY SOURCE</p><h2>Public tests · {publicTestsView.file_path}</h2></div><button className="icon-button" onClick={() => setPublicTestsView(null)} aria-label="Close public tests"><XCircle size={16} /></button></div><div className="public-test-functions">{publicTestsView.functions.map((functionName) => <button className="button button-secondary" key={functionName} onClick={() => void handleJumpToTestFunction(functionName)}>Go to {functionName}</button>)}</div><pre className="public-tests-source" aria-readonly="true">{publicTestsView.source}</pre><p className="muted-copy">Showing {publicTestsView.total} public tests. Secret tests are not shown.</p></section>}{diagnosis && <section className="test-panel diagnosis-panel"><div className="panel-heading"><div><p className="eyebrow">LOCAL TEST DIAGNOSIS</p><h2>{diagnosis.file_path}</h2></div><button className="icon-button" onClick={() => setDiagnosis(null)} aria-label="Close diagnosis"><XCircle size={16} /></button></div><p><strong>Function:</strong> {diagnosis.functions.join(", ") || "Target logic"}</p><p>{diagnosis.bug_description}</p><pre className="expected-diff">{diagnosis.diff || "No focused diff is available."}</pre></section>}{diffOpen && diffResult && <section className="test-panel diff-panel"><div className="panel-heading"><div><p className="eyebrow">WORKSPACE DIFF</p><h2>{diffResult.has_changes ? "Your changes" : "No changes yet"}</h2></div><button className="icon-button" onClick={() => setDiffOpen(false)} aria-label="Close diff"><XCircle size={16} /></button></div><pre className="diff-content">{diffResult.diff || "The file is unchanged from the buggy version."}</pre></section>}15 unmodified lines1617181920212223244 unmodified lines2930313233343537 unmodified lines73747576777879820 unmodified lines90090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396424 unmodified lines98999099199299399499515 unmodified linesLoaderCircle,LogOut,MessageSquareText,LogIn,Play,RefreshCw,RotateCcw,Redo2,Send,4 unmodified linesTerminalSquare,Upload,Undo2,UserPlus,XCircle,} from "lucide-react";import { api, waitForChallenge, waitForJob } from "./api";37 unmodified linesconst [historyOpen, setHistoryOpen] = useState(false);const [historyLoading, setHistoryLoading] = useState(false);const [instructorDashboard, setInstructorDashboard] = useState<InstructorDashboard | null>(null);const [managedRoundsOpen, setManagedRoundsOpen] = useState(false);const [dashboardLoading, setDashboardLoading] = useState(false);const [courseAccess, setCourseAccess] = useState<CourseAccessStatus | null>(null);const [courseAccessRequests, setCourseAccessRequests] = useState<CourseAccessRequest[]>([]);820 unmodified lines{page === "setup" && (<main className="setup-layout"><div className="setup-intro"><p className="eyebrow">NEW DEBUGGING SESSION</p><h1>Choose your challenge.</h1><p>Each run starts from a fresh repository copy. Your work and results stay attached to this session.</p></div>{config.course_mode && session.role === "student" && <section className="instructor-dashboard course-access-panel"><div className="panel-heading"><div><p className="eyebrow">COURSE ACCESS</p><h2>Instructor access</h2></div><button className="button button-secondary" onClick={() => void handleLoadCourseAccess()} disabled={courseAccessLoading}>{courseAccessLoading ? <LoaderCircle className="spin" size={15} /> : <RefreshCw size={15} />}Refresh access</button></div>{courseAccessError && <p className="notice notice-error" role="alert">{courseAccessError}</p>}{courseAccess?.request?.status === "pending" ? <p role="status">Your instructor access request is pending review.</p> : courseAccess?.request?.status === "approved" ? <p role="status">Your request was approved. Refresh access to activate instructor tools.</p> : <><label>Why do you need instructor access?<textarea value={accessRequestReason} onChange={(event) => setAccessRequestReason(event.target.value)} maxLength={1000} rows={2} placeholder="Optional note for the course administrator." /></label><button className="button button-secondary" onClick={() => void handleRequestInstructorAccess()} disabled={courseAccessLoading}><UserPlus size={16} />Request instructor access</button></>}</section>}{session.role === "instructor" && (<section className="instructor-dashboard"><div className="panel-heading"><div><p className="eyebrow">COURSE ACTIVITY</p><h2 className="managed-round-title"><buttontype="button"className={`managed-round-toggle ${managedRoundsOpen ? "is-open" : ""}`}aria-expanded={managedRoundsOpen}aria-controls="managed-rounds-content"onClick={() => setManagedRoundsOpen((open) => !open)}>Managed rounds<ChevronDown size={15} aria-hidden="true" /></button></h2></div><button className="button button-secondary" onClick={() => void handleLoadInstructorDashboard()} disabled={dashboardLoading}>{dashboardLoading ? <LoaderCircle className="spin" size={15} /> : <RefreshCw size={15} />}Refresh</button></div>{managedRoundsOpen && (<div id="managed-rounds-content">{dashboardLoading ? <p role="status">Loading course activity…</p> : instructorDashboard?.rounds.length ? (<div className="managed-round-list">{instructorDashboard.rounds.map((round) => (<article className="managed-round" key={round.round_id}><div className="managed-round-heading"><div><strong>{round.repo_url?.split("/").slice(-1)[0] || "Challenge round"}</strong><span>{round.target_file || "Target unavailable"}</span></div><span className={`history-status round-status-${round.status}`}>{round.status}</span></div><small>{round.participants.length} participants · {round.quota_units_per_student ?? 0} LLM units each</small>{round.participants.map((participant, index) => (<div className="participant-row" key={`${participant.student_name}-${index}`}><span>{participant.student_name || "Student"}</span><span>{participant.status.replaceAll("_", " ")}</span><span>{participant.submission_count} submissions</span><strong>{participant.latest_score == null ? "—" : `${participant.latest_score}/100`}</strong></div>))}<div className="managed-round-actions">{round.status === "prepared" && <button className="button button-secondary" onClick={() => void handleRoundTransition(round.round_id, "open")} disabled={busy}><Play size={15} />Open round</button>}{round.status === "open" && <button className="button button-secondary" onClick={() => void handleRoundTransition(round.round_id, "close")} disabled={busy}><XCircle size={15} />Close round</button>}</div></article>))}</div>) : <p>No rounds have been prepared yet.</p>}</div>)}</section>)}{config.course_mode && session.is_course_admin && <section className="instructor-dashboard access-review-panel"><div className="panel-heading"><div><p className="eyebrow">ACCESS REVIEW</p><h2>Instructor requests</h2></div><button className="button button-secondary" onClick={() => void handleLoadCourseAccess()} disabled={courseAccessLoading}>{courseAccessLoading ? <LoaderCircle className="spin" size={15} /> : <RefreshCw size={15} />}Refresh requests</button></div>{courseAccessError && <p className="notice notice-error" role="alert">{courseAccessError}</p>}{courseAccessRequests.length ? courseAccessRequests.map((accessRequest) => <article className="managed-round" key={accessRequest.request_id}><div className="managed-round-heading"><div><strong>{accessRequest.display_name}</strong><span>{accessRequest.auth_provider} · {accessRequest.provider_user_id}</span></div><small>{accessRequest.requested_at ? new Date(accessRequest.requested_at).toLocaleDateString() : ""}</small></div>{accessRequest.reason && <p>{accessRequest.reason}</p>}<div className="managed-round-actions"><button className="button button-secondary" onClick={() => void handleReviewCourseAccessRequest(accessRequest.request_id, "approved")} disabled={courseAccessLoading}><Check size={15} />Approve</button><button className="button button-secondary" onClick={() => void handleReviewCourseAccessRequest(accessRequest.request_id, "rejected")} disabled={courseAccessLoading}><XCircle size={15} />Reject</button></div></article>) : <p>No pending instructor requests.</p>}</section>}<form className="setup-panel" onSubmit={handleStartChallenge}><div className="round-join-row"><label>Join a shared class challenge<input value={roundCode} onChange={(event) => setRoundCode(event.target.value)} placeholder="Paste round code" /></label><button type="button" className="button button-secondary" onClick={() => void handleJoinRound()} disabled={busy || !roundCode.trim()}>{busy ? <LoaderCircle className="spin" size={16} /> : <LogIn size={16} />}Join round</button></div>{!hasModelAccess && <p className="muted-copy" role="status">Without a model key, you can join existing challenges, run tests, and submit. Challenge creation, AI chat/hints, and AI review are disabled.</p>}{hasModelAccess && <><div className="round-divider">{config.course_mode ? "CREATE A PERSONAL CHALLENGE" : "OR CREATE A NEW CHALLENGE"}</div>24 unmodified lines</div><section className="self-assessment-panel"><div><p className="eyebrow">BEFORE SUBMITTING</p><h2>Self-assessment</h2></div><label>Confidence in your fix<div className="range-line"><input type="range" min={1} max={5} value={selfConfidence} onChange={(event) => setSelfConfidence(Number(event.target.value))} /><output>{selfConfidence}/5</output></div></label><label>Known limitations<textarea value={knownLimitations} onChange={(event) => setKnownLimitations(event.target.value)} maxLength={4000} rows={2} placeholder="Optional: note anything you could not verify." /></label></section><div className="editor-cta-row"><button className="button button-secondary" onClick={() => void handleRunTests()} disabled={busy}><Play size={16} />Run public tests</button><button className="button button-secondary" onClick={() => void handleShowPublicTests()} disabled={busy}><FileCode2 size={16} />View public tests</button><button className="button button-secondary" onClick={() => void handleShowDiff()} disabled={busy || selectedFile !== challenge.target_file} title={selectedFile !== challenge.target_file ? "Diff snapshot is available for the challenge target file" : "View changes"}><Code2 size={16} />View changes</button>{session.role === "instructor" && <button className="button button-secondary" onClick={() => void handleShowDiagnosis()} disabled={busy}><CircleHelp size={16} />What to fix and where</button>}{session.role === "instructor" && <label className="round-quota-control">LLM units per student<input type="number" min={0} max={100} step={1} value={roundQuota} onChange={(event) => setRoundQuota(Math.min(100, Math.max(0, Number(event.target.value))))} disabled={busy} /></label>}{session.role === "instructor" && <button className="button button-secondary" onClick={() => void handlePublishRound()} disabled={busy}><Share2 size={16} />Publish round</button>}<button className="button button-primary submit-button" onClick={() => void handleSubmit()} disabled={busy || selectedFile !== challenge.target_file} title={selectedFile !== challenge.target_file ? "Select the challenge target file before submitting" : "Submit fix"}><Upload size={16} />Submit fix</button></div>{publishedRound && <section className="round-share-panel" aria-live="polite"><div><p className="eyebrow">SHARED ROUND · {publishedRound.status}</p><strong>{publishedRound.round_id}</strong><small>{publishedRound.quota_units_per_student} LLM units/student · Artifact {publishedRound.artifact_hash.slice(0, 12)} · Tests {publishedRound.tests_hash.slice(0, 12)}</small></div>{publishedRound.status === "prepared" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "open")} disabled={busy}><Play size={15} />Open round</button>}{publishedRound.status === "open" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "close")} disabled={busy}><XCircle size={15} />Close round</button>}<button className="icon-button" onClick={async () => { try { await navigator.clipboard.writeText(publishedRound.round_id); setRoundCopied(true); } catch { setError("Clipboard access is unavailable. Select and copy the round code."); } }} aria-label="Copy round code" title="Copy round code"><Copy size={16} /></button>{roundCopied && <span className="round-copied">Copied</span>}</section>}{publicTestsView && <section className="test-panel public-tests-panel" aria-label="Public tests source"><div className="panel-heading"><div><p className="eyebrow">READ-ONLY SOURCE</p><h2>Public tests · {publicTestsView.file_path}</h2></div><button className="icon-button" onClick={() => setPublicTestsView(null)} aria-label="Close public tests"><XCircle size={16} /></button></div><div className="public-test-functions">{publicTestsView.functions.map((functionName) => <button className="button button-secondary" key={functionName} onClick={() => void handleJumpToTestFunction(functionName)}>Go to {functionName}</button>)}</div><pre className="public-tests-source" aria-readonly="true">{publicTestsView.source}</pre><p className="muted-copy">Showing {publicTestsView.total} public tests. Secret tests are not shown.</p></section>}{diagnosis && <section className="test-panel diagnosis-panel"><div className="panel-heading"><div><p className="eyebrow">LOCAL TEST DIAGNOSIS</p><h2>{diagnosis.file_path}</h2></div><button className="icon-button" onClick={() => setDiagnosis(null)} aria-label="Close diagnosis"><XCircle size={16} /></button></div><p><strong>Function:</strong> {diagnosis.functions.join(", ") || "Target logic"}</p><p>{diagnosis.bug_description}</p><pre className="expected-diff">{diagnosis.diff || "No focused diff is available."}</pre></section>}{diffOpen && diffResult && <section className="test-panel diff-panel"><div className="panel-heading"><div><p className="eyebrow">WORKSPACE DIFF</p><h2>{diffResult.has_changes ? "Your changes" : "No changes yet"}</h2></div><button className="icon-button" onClick={() => setDiffOpen(false)} aria-label="Close diff"><XCircle size={16} /></button></div><pre className="diff-content">{diffResult.diff || "The file is unchanged from the buggy version."}</pre></section>}
111 unmodified lines112113114115116117111 unmodified lines.history-entry > .button { justify-self: start; }.instructor-dashboard { display: grid; gap: 12px; margin: 0 0 28px; border-top: 1px solid var(--line); padding-top: 20px; }.instructor-dashboard h2 { margin: 0; font-size: 17px; }.instructor-dashboard > p { margin: 0; color: var(--muted); font-size: 13px; }.managed-round-list { display: grid; }.managed-round { display: grid; gap: 12px; border-top: 1px solid var(--line); padding: 16px 0; }111 unmodified lines112113114115116117118119120121111 unmodified lines.history-entry > .button { justify-self: start; }.instructor-dashboard { display: grid; gap: 12px; margin: 0 0 28px; border-top: 1px solid var(--line); padding-top: 20px; }.instructor-dashboard h2 { margin: 0; font-size: 17px; }.managed-round-title { display: flex; }.managed-round-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 2px 0; color: var(--ink); background: transparent; font: inherit; text-align: left; }.managed-round-toggle svg { color: var(--muted); transition: transform .16s ease; }.managed-round-toggle.is-open svg { transform: rotate(180deg); }.instructor-dashboard > p { margin: 0; color: var(--muted); font-size: 13px; }.managed-round-list { display: grid; }.managed-round { display: grid; gap: 12px; border-top: 1px solid var(--line); padding: 16px 0; }
frontend/src/App.test.tsx+4
frontend/src/App.tsx+63-5
frontend/src/styles.css+4