Repository navigation
Native iOS app: Prepare tab, Generate, case document, Attack and Export - #130
Conversation
The app saves generated cases and researched sources the way the website does, so the pure parts of generateCase and autosaveDiscoveredSources now live in packages/core and the website imports them back unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generate and Attack send the same requests as Ask: the same headers, 200 s timeout, abort before the session read and error kinds. The POST moves to ai-request.ts, the model reader takes a feature, and the context builder takes the feature and side the website's requestSide picks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Prepare tab lists the tools and the Current Debate's saved Prepare results. Generate and Attack send the website's requests, keep researched sources in the Auto-saved folder and save to cases and attacks as the website does. Results open as documents after mock 03, with collapsible arguments, citation chips, a share button, a menu with Discuss, Save, the auto-saved sources undo and Delete, and pinned next steps. Export makes a PDF with expo-print and copies the result as text. Word and Google Docs export are not in the app yet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pinned buttons share the width equally as in mock 03, with the mock's tight padding so Attack this case fits, and shorter Spanish and Hungarian labels. On iPad they stay in the document's centred column. Deleting a document that has nothing behind it returns to the Debate tab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The screenshot script answers Generate and Attack with fixed outputs inside the page and fakes their saves, so it never calls a model or writes to staging. It renders the HTML handed to expo-print and keeps the copied text next to the screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Essentials by visiting https://app.coderabbit.ai/settings/billing. Comment |
Forms and open results from one account no longer reach the next: they live in session memory that the auth provider clears on every account change. Undo of auto-saved sources only deletes ids read for the Current Debate and filters the delete by that debate. Cancelling Generate or Attack stops the source autosave before the next write. Prepare shows only the Current Debate's saved results, and Ask clears its citations library on a debate change. Generate, Attack and Ask's whole answers now save the server's source rankings to the request's debate and say when the input was shortened, as the website does. The ranking helpers move to @debatelab/core so both clients share them. Attack weaknesses are keyed by position. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Prepare's Retry skipped the ownership check, so a late retry for one debate could replace another debate's loaded results and leave a spinner. Every load now takes a sequence number and only the newest may write. Generate, Attack and Ask's whole-answer path pass their request signal to the source rankings, which stop before using the read and before writing once the student cancels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Codex review (gpt-6.1-sol)
Accepted: if a source moved to another debate, Undo's "Removed N" count can come out too high. Local checks at adb53ae. GitHub Actions starts no jobs because of billing, so these ran locally:
Merging into 🤖 Generated with Claude Code |



This PR adds the Prepare tab, Generate, the generated case as a document (mock 03), Attack and Export, from plans/2026-10-08-native-ios-app.md. It targets
feat/native-ios.Prepare tab
Generate
feature_configsfor each tool. The debate context includes pins.@debatelab/core.client.tsimports it back in one line, and its behaviour is unchanged.recordResult.The document
Attack
Export
docxwould have to run under Hermes in Expo Go, and that can't be tested on the VPS.Checks
Run locally on Node 22, because GitHub Actions starts no jobs on this account (billing):
npm run verifyexits 0: 287 Vitest, 30 collaboration and 333 Deno tests, the build, the service-worker check and 30 Chromium smoke tests.Live on the staging seed Pro account:
Not proven
These need Adam's phone:
Discuss to Ask did not run live.
🤖 Generated with Claude Code