Spaces:
Sleeping
Sleeping
Hide unauthorized round controls and redesign test results
Browse filesFiles changed (5)
641 unmodified lines642643644645646647648612 unmodified lines126112621263126412651266126712681269127012711272127312741275127612771278116 unmodified lines1395139613971398139914001401641 unmodified lines "timer_remaining": timer_minutes * 60 if timer_minutes else None, "challenge_summary": workspace.challenge_summary, "challenge_round_id": payload.round_id, "can_manage_round": _can_manage_challenge_round(session, payload.round_id), "storage_warning": session.progress_storage_warning, } job.status = "completed"612 unmodified lines _require_round_publisher(session.challenge_round_id, session)
def _can_manage_challenge_round(session: UserSession, round_id: str | None = None) -> bool: managed_round_id = round_id or session.challenge_round_id if not managed_round_id: return True actor = f"{session.identity.get('provider', '')}:{session.identity.get('user_id', '')}" try: publisher = get_challenge_round_publisher(managed_round_id, _course_id()) except ChallengeRoundStoreError: return False return bool(publisher and publisher == actor)
def _require_round_publisher(round_id: str, session: UserSession) -> str: actor = f"{session.identity.get('provider', '')}:{session.identity.get('user_id', '')}" try:116 unmodified lines "timer_remaining": max(0, int(session.timer_deadline - time.time())) if session.timer_deadline else None, "challenge_summary": workspace.challenge_summary, "published_round": session.published_round, "can_manage_round": _can_manage_challenge_round(session), "chat_history": session.chat_history, "chat_log": session.chat_log, "hint_log": session.hint_log,626 unmodified lines62762862963063063163263348 unmodified lines682683684685685686687688689690691691692693694695696697697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727703704705706728729730731732708733734735626 unmodified lines const editor = await screen.findByRole("textbox", { name: "Code editor" }); await user.type(editor, "# work in progress"); await user.click(screen.getByRole("button", { name: /^public tests$/i })); expect(await screen.findByText("1 of 2 passed")).toBeTruthy(); expect(await screen.findByText(/1 of 2 passed/)).toBeTruthy(); await user.click(screen.getByRole("button", { name: "Back to challenges" }));
await waitFor(() => expect(mocks.saveFile).toHaveBeenCalledWith("src/demo.py", editedCode));48 unmodified lines await screen.findByRole("heading", { name: "src/demo.py" }); await user.type(screen.getByPlaceholderText(/note anything you could not verify/i), "Old attempt note"); await user.click(screen.getByRole("button", { name: /^public tests$/i })); expect(await screen.findByText("1 of 2 passed")).toBeTruthy(); expect(await screen.findByText(/1 of 2 passed/)).toBeTruthy(); await user.click(screen.getByRole("button", { name: "Challenge history" })); mocks.challenge.mockResolvedValueOnce(nextChallenge); await user.click(await screen.findByRole("button", { name: "Resume attempt" }));
expect(await screen.findByRole("heading", { name: "src/other.py" })).toBeTruthy(); expect(screen.queryByText("1 of 2 passed")).toBeNull(); expect(screen.queryByText(/1 of 2 passed/)).toBeNull(); expect(screen.queryByLabelText("Public tests source")).toBeNull(); expect(screen.getByText("Tests not run")).toBeTruthy(); expect((screen.getByPlaceholderText(/note anything you could not verify/i) as HTMLTextAreaElement).value).toBe(""); });
it("shows public tests in one simple function input expected actual table", async () => { it("hides solution and round controls for an instructor who does not own the round", async () => { mocks.session.mockResolvedValue({ authenticated: true, identity, role: "instructor", has_model_key: true, workspace_id: "workspace-1", hints_used: 0, submission_count: 0 }); mocks.challenge.mockResolvedValue({ ...challenge, challenge_round_id: "12345678-1234-4234-8234-123456789abc", can_manage_round: false, published_round: { round_id: "12345678-1234-4234-8234-123456789abc", artifact_hash: "artifact", tests_hash: "tests", timer_minutes: 30, chat_messages_per_student: 5, visibility: "private", status: "prepared", }, }); render(<App />);
expect(await screen.findByRole("heading", { name: "src/demo.py" })).toBeTruthy(); expect(screen.queryByRole("button", { name: /what to fix and where/i })).toBeNull(); expect(screen.queryByRole("button", { name: "Publish challenge" })).toBeNull(); expect(screen.queryByRole("button", { name: "Open round" })).toBeNull(); expect(screen.queryByRole("button", { name: "Close round" })).toBeNull(); });
it("shows public tests in a terminal-style function input expected actual view", async () => { const user = userEvent.setup(); render(<App />);
expect(await screen.findByRole("heading", { name: "src/demo.py" })).toBeTruthy(); await user.click(screen.getByRole("button", { name: /^public tests$/i })); expect(await screen.findByText("Function")).toBeTruthy(); expect(screen.getByText("Input")).toBeTruthy(); expect(screen.getByText("Expected")).toBeTruthy(); expect(screen.getByText("Actual")).toBeTruthy(); expect((await screen.findAllByText("INPUT")).length).toBeGreaterThan(0); expect(screen.getAllByText("EXPECTED").length).toBeGreaterThan(0); expect(screen.getAllByText("ACTUAL").length).toBeGreaterThan(0); expect(screen.getAllByRole("button", { name: /jump to target/i }).length).toBeGreaterThan(0); expect(screen.queryByText(/str len=/i)).toBeNull(); expect(screen.getByText(/Secret tests are not shown/)).toBeTruthy(); });
it("loads a challenge, runs tests, requests a hint and shows submission results", async () => {1534 unmodified lines153515361537153815381539154015412 unmodified lines1544154515461547154815471548154915501551155215531554155515561555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171534 unmodified lines <div className="editor-footer"><span><Code2 size={14} />Python</span><span>{code.split("\n").length} lines</span>{dirty && <span className="unsaved-indicator">Not saved</span>}</div> </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 handleRunAndViewPublicTests()} disabled={busy}><Play size={16} />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>}{!challenge.challenge_round_id && <button className="button button-secondary" onClick={() => setPublishDialogOpen(true)} disabled={busy || Boolean(publishedRound)}><Share2 size={16} />Publish challenge</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> <div className="editor-cta-row"><button className="button button-secondary" onClick={() => void handleRunAndViewPublicTests()} disabled={busy}><Play size={16} />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" && challenge.can_manage_round !== false && <button className="button button-secondary" onClick={() => void handleShowDiagnosis()} disabled={busy}><CircleHelp size={16} />What to fix and where</button>}{!challenge.challenge_round_id && challenge.can_manage_round !== false && <button className="button button-secondary" onClick={() => setPublishDialogOpen(true)} disabled={busy || Boolean(publishedRound)}><Share2 size={16} />Publish challenge</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> {publishDialogOpen && <div className="publish-dialog-backdrop" role="presentation" onMouseDown={(event) => { if (event.target === event.currentTarget) setPublishDialogOpen(false); }}><section className="publish-dialog" role="dialog" aria-modal="true" aria-labelledby="publish-dialog-title"><div className="panel-heading"><div><p className="eyebrow">SHARED CHALLENGE</p><h2 id="publish-dialog-title">Publish challenge</h2></div><button className="icon-button" onClick={() => setPublishDialogOpen(false)} aria-label="Close publish dialog"><XCircle size={16} /></button></div><label className="publish-field">Maximum chat messages per student<input type="number" min={0} max={100} step={1} value={roundChatMessageLimit} onChange={(event) => setRoundChatMessageLimit(Math.min(100, Math.max(0, Number(event.target.value))))} disabled={busy} /></label><div className="option-row"><div><strong>Timed challenge</strong><small>Set a countdown for this published round.</small></div><button type="button" className={`switch ${roundTimeLimitEnabled ? "switch-on" : ""}`} role="switch" aria-label="Timed challenge" aria-checked={roundTimeLimitEnabled} onClick={() => setRoundTimeLimitEnabled((enabled) => !enabled)} disabled={busy}><span /></button></div>{roundTimeLimitEnabled && <label className="publish-field">Time limit in minutes<input type="number" min={1} max={120} step={5} value={roundTimerMinutes} onChange={(event) => setRoundTimerMinutes(Number(event.target.value))} onBlur={(event) => setRoundTimerMinutes(Math.min(120, Math.max(1, Number(event.target.value) || 30))) } disabled={busy} /></label>}<label className="publish-private-option"><input type="checkbox" checked={roundVisibility === "private"} onChange={(event) => setRoundVisibility(event.target.checked ? "private" : "public")} disabled={busy || session.role !== "instructor"} /><span><strong>Private challenge</strong>{session.role !== "instructor" && <small>You need instructor permission to publish a private challenge.</small>}</span></label>{session.role !== "instructor" && <p className="publish-permission-note">Students can publish public challenges only.</p>}<div className="publish-dialog-actions"><button className="button button-secondary" onClick={() => setPublishDialogOpen(false)} disabled={busy}>Cancel</button><button className="button button-primary" onClick={() => void handlePublishRound()} disabled={busy}>Publish challenge</button></div></section></div>} {publishedRound && ( <section className="round-share-panel" aria-live="polite">2 unmodified lines <strong>{publishedRound.round_id}</strong> <small>{publishedRound.visibility === "private" ? "Private challenge code" : "Published in public catalog"} · {publishedRound.timer_minutes > 0 ? `${publishedRound.timer_minutes} min time limit` : "No time limit"} · {publishedRound.chat_messages_per_student} chat messages/student · Artifact {publishedRound.artifact_hash.slice(0, 12)} · Tests {publishedRound.tests_hash.slice(0, 12)}</small> </div> {publishedRound.visibility === "private" && publishedRound.status === "prepared" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "open")} disabled={busy}><Play size={15} />Open round</button>} {publishedRound.visibility === "private" && publishedRound.status === "open" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "close")} disabled={busy}><XCircle size={15} />Close round</button>} {challenge.can_manage_round !== false && publishedRound.visibility === "private" && publishedRound.status === "prepared" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "open")} disabled={busy}><Play size={15} />Open round</button>} {challenge.can_manage_round !== false && publishedRound.visibility === "private" && publishedRound.status === "open" && <button className="button button-secondary" onClick={() => void handleRoundTransition(publishedRound.round_id, "close")} disabled={busy}><XCircle size={15} />Close round</button>} {publishedRound.status === "open" && <button className="button button-secondary" onClick={() => void handleCopyChallengeLink(publishedRound.round_id)} aria-label={copiedChallengeLinkId === publishedRound.round_id ? "Challenge link copied" : "Copy challenge link"}><Link2 size={15} />{copiedChallengeLinkId === publishedRound.round_id ? "Link copied" : "Copy challenge link"}</button>} {publishedRound.visibility === "private" && publishedRound.status === "prepared" && <small className="round-link-hint">Open the round before sharing its direct link.</small>} <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">PUBLIC TESTS · {publicTestsView.file_path}</p><h2>{testResult ? `${testResult.passed} of ${testResult.total} passed` : `Showing ${publicTestsView.total} tests`}</h2></div>{testResult && <span className={`result-pill ${testResult.all_passed ? "pill-success" : "pill-warning"}`}>{testResult.all_passed ? <CheckCircle2 size={15} /> : <AlertCircle size={15} />}{testResult.all_passed ? "All passing" : "Needs work"}</span>}<button className="icon-button" onClick={() => { setPublicTestsView(null); setTestResult(null); }} aria-label="Close public tests"><XCircle size={16} /></button></div><div className="public-test-table simple-test-table"><div className="public-test-table-header"><span>Test</span><span>Function</span><span>Input</span><span>Expected</span><span>Actual</span></div>{((publicTestsView.tests && publicTestsView.tests.length ? publicTestsView.tests : (testResult?.per_test ?? []).map((item) => ({ num: item.num, function_name: item.function_name ?? "target", args: item.args ?? "Not provided", expected: item.expected ?? "Not provided" })))).map((test) => { const result = (testResult?.per_test ?? []).find((item) => item.num === test.num); const actual = result?.actual_raw ?? result?.actual; return <article className="simple-test-row" key={test.num}><div className="simple-test-status"><span className={result?.status === "PASS" ? "test-pass" : result?.status ? "test-fail" : "test-pending"}>{result?.status === "PASS" ? <Check size={15} /> : result?.status ? <XCircle size={15} /> : <TerminalSquare size={15} />}</span><strong>Test {test.num}</strong></div><button className="test-function-link" type="button" onClick={() => void handleJumpToTestFunction(test.function_name)}>{test.function_name}</button><code>{test.args}</code><code>{test.expected}</code><code>{actual === undefined ? (result ? "Not returned" : "—") : formatTestActual(actual)}</code></article>; })}</div><p className="muted-copy">Showing {publicTestsView.total} public tests. Secret tests are not shown.</p></section>} {publicTestsView && ( <section className="test-panel public-tests-panel" role="region" aria-label="Public tests source"> <div className="test-terminal-bar"> <div className="test-terminal-title"> <span className="test-terminal-dots" aria-hidden="true"><i /><i /><i /></span> <span>public-tests</span> </div> <button className="icon-button" onClick={() => { setPublicTestsView(null); setTestResult(null); }} aria-label="Close public tests"><XCircle size={16} /></button> </div> <div className="test-terminal-summary"> <div> <p className="test-terminal-command"><span>$</span> pytest {selectedFile}</p> <p className="test-terminal-caption">{publicTestsView.file_path} · {testResult ? `${testResult.passed} of ${testResult.total} passed` : `Showing ${publicTestsView.total} tests`}</p> </div> {testResult && ( <span className={`test-terminal-result ${testResult.all_passed ? "test-terminal-result-pass" : "test-terminal-result-fail"}`}> {testResult.all_passed ? <CheckCircle2 size={16} /> : <XCircle size={16} />} {testResult.all_passed ? "PASSED" : "FAILED"} </span> )} </div> <div className="test-terminal-list"> {((publicTestsView.tests && publicTestsView.tests.length ? publicTestsView.tests : (testResult?.per_test ?? []).map((item) => ({ num: item.num, function_name: item.function_name ?? "target", args: item.args ?? "Not provided", expected: item.expected ?? "Not provided", })) )).map((test) => { const result = (testResult?.per_test ?? []).find((item) => item.num === test.num); const actual = result?.actual_raw ?? result?.actual; const status = result?.status === "PASS" ? "PASS" : result?.status ? "FAIL" : "PENDING"; return ( <article className={`test-terminal-row test-terminal-row-${status.toLowerCase()}`} key={test.num}> <div className="test-terminal-status"> {status === "PASS" ? <Check size={14} /> : status === "FAIL" ? <XCircle size={14} /> : <TerminalSquare size={14} />} <strong>{status}</strong> </div> <div className="test-terminal-case"> <div className="test-terminal-case-head"> <span>Test {test.num}</span> <button className="test-function-link" type="button" onClick={() => void handleJumpToTestFunction(test.function_name)} aria-label={`Jump to ${test.function_name}`} title={`Jump to ${test.function_name}`}> {test.function_name} <span aria-hidden="true">↗</span> </button> </div> <dl className="test-terminal-values"> <div><dt>INPUT</dt><dd><code>{test.args}</code></dd></div> <div><dt>EXPECTED</dt><dd><code>{test.expected}</code></dd></div> <div><dt>ACTUAL</dt><dd><code>{actual === undefined ? (result ? "Not returned" : "—") : formatTestActual(actual)}</code></dd></div> </dl> </div> </article> ); })} </div> <p className="test-terminal-footer">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>} </section>36 unmodified lines3738394041424336 unmodified linesexport type ChallengeData = { workspace_id: string; challenge_round_id?: string | null; can_manage_round?: boolean; repo_url: string; target_file: string; file_path: string;331 unmodified lines332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376331 unmodified lines.public-tests-source { max-height: 420px; overflow: auto; margin: 0; border-radius: 5px; padding: 12px; color: #d2dce4; background: #152334; font: 11px/1.6 'IBM Plex Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }@media (max-width: 720px) { .public-test-row dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }@media (max-width: 900px) { .simple-test-table { overflow-x: auto; } .public-test-table-header, .simple-test-row { min-width: 760px; } } .public-tests-panel { padding: 0; overflow: hidden; border-color: #d9e2df; background: #12212a; } .test-terminal-bar { min-height: 43px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2b3c46; padding: 0 12px 0 14px; color: #b9c7cd; background: #1b2b35; } .test-terminal-title { display: flex; align-items: center; gap: 10px; font: 600 10px 'IBM Plex Mono', monospace; letter-spacing: .3px; } .test-terminal-dots { display: flex; gap: 5px; } .test-terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #6e7f87; } .test-terminal-dots i:first-child { background: #d56a56; } .test-terminal-dots i:nth-child(2) { background: #d5ad63; } .test-terminal-dots i:last-child { background: #63a989; } .test-terminal-bar .icon-button { color: #aab7bd; } .test-terminal-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 13px; color: #dce6ea; } .test-terminal-command { margin: 0; color: #edf4f5; font: 600 12px 'IBM Plex Mono', monospace; } .test-terminal-command span { margin-right: 7px; color: #79c4ac; } .test-terminal-caption { margin: 7px 0 0; color: #91a2a9; font: 10px 'IBM Plex Mono', monospace; } .test-terminal-result { display: inline-flex; min-width: 82px; align-items: center; justify-content: center; gap: 6px; border: 1px solid; border-radius: 4px; padding: 7px 9px; font: 700 10px 'IBM Plex Mono', monospace; } .test-terminal-result-pass { border-color: #4b8069; color: #98d7b7; background: #19372f; } .test-terminal-result-fail { border-color: #9a6257; color: #f0b0a2; background: #432b29; } .test-terminal-list { border-top: 1px solid #2b3c46; } .test-terminal-row { display: grid; grid-template-columns: 82px minmax(0, 1fr); border-bottom: 1px solid #263943; background: #162630; } .test-terminal-row:last-child { border-bottom: 0; } .test-terminal-status { display: flex; min-height: 72px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border-right: 1px solid #263943; font: 700 9px 'IBM Plex Mono', monospace; } .test-terminal-row-pass .test-terminal-status { color: #85cba9; background: #182f29; } .test-terminal-row-fail .test-terminal-status { color: #efa08f; background: #352728; } .test-terminal-row-pending .test-terminal-status { color: #99a6ac; background: #1a2931; } .test-terminal-case { min-width: 0; padding: 10px 12px 12px; } .test-terminal-case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #dce6e8; font: 600 11px 'IBM Plex Mono', monospace; } .test-terminal-case-head .test-function-link { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 55%; border: 1px solid #35505a; border-radius: 4px; color: #83cbb8; background: #1a3037; padding: 5px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .test-terminal-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; } .test-terminal-values div { min-width: 0; } .test-terminal-values dt { margin-bottom: 4px; color: #7f969e; font: 700 8px 'IBM Plex Mono', monospace; } .test-terminal-values dd { margin: 0; min-width: 0; } .test-terminal-values code { display: block; min-height: 28px; overflow: auto; border: 1px solid #2a3d46; border-radius: 4px; padding: 6px 7px; color: #dce7e9; background: #101c23; font: 10px/1.4 'IBM Plex Mono', monospace; white-space: pre-wrap; overflow-wrap: anywhere; } .test-terminal-footer { margin: 0; border-top: 1px solid #263943; padding: 10px 14px; color: #83979f; background: #1b2b35; font: 9px 'IBM Plex Mono', monospace; } @media (max-width: 720px) { .test-terminal-summary { align-items: flex-start; } .test-terminal-row { grid-template-columns: 66px minmax(0, 1fr); } .test-terminal-values { grid-template-columns: 1fr; } .test-terminal-case-head { align-items: flex-start; flex-direction: column; } .test-terminal-case-head .test-function-link { max-width: 100%; } }.public-tests-panel > .muted-copy { margin-bottom: 0; }.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.panel-heading h2, .hint-heading h2 { margin: 0; color: var(--ink); font-size: 16px; font-weight: 600; }backend/app.py+14
frontend/src/App.test.tsx+33-9
frontend/src/App.tsx+63-5
frontend/src/api.ts+1
frontend/src/styles.css+39