Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Code review (code-reviewer pass) at 4e72036Verdict: CHANGES NEEDED (one MEDIUM behaviour regression risk plus a11y and test gaps; no blockers in the i18n half). Checked: no
Not run: tests and type-check (read-only review of the diff via |
Code review follow-up at 92522f9
New strings ( AC1 of #20906: NOT met in full. The response type is generated and checked; the call itself is a hand-built URL through the shared client because no generated operation client exists. Leave AC1 unticked until one does. Evidence: vitest |
|
Follow-up at b2c38fe: session reactivity Defect: Fix: the composable takes a string, ref or getter ( Test: new |
Code review (code-reviewer pass) follow-up at b2c38feCHANGES NEEDED - all prior findings are resolved, but one new defect in the preview loading state (introduced by the latest-wins token) should be fixed first. Prior findings: typed preview call ( Session reactivity:
No hardcoded UI strings found in the new code (all |
Code review follow-up at eae5eb8
Counts: new |
|
Correction to the test count in issuecomment-6728134140: the combined vitest run over |
Code review (code-reviewer pass) follow-up at eae5eb8APPROVE - all 4 prior findings are resolved in code and covered by tests; two LOW items below may go to a linked follow-up. Prior findings
New pieces
|
Code review follow-up at 7b6f078
Verification: vitest |
|
Follow-up at 3d4e2f3: one loading-state implementation The hand-rolled Checks: vitest on composables/tests, components/chat, i18n: 132 files passed, 1593 tests passed, 1 skipped (4 new reset tests in useLoadingState.test.ts; existing #21159 session tests unchanged). vue-tsc --noEmit -p tsconfig.app.json: exit 0. eslint on the 3 touched files: exit 0. Merge of origin/main was a no-op. |
|
Code review (code-reviewer pass) follow-up at 3d4e2f3 Verdict: APPROVE.
Tests at 3d4e2f3: vitest on composables, chat components and i18n, 1593 passed, 1 skipped; vue-tsc and eslint clean. |
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
useConversationFiles.tsstill set English literals on its read, delete, download, preview, rename and guard error paths. One defect class in one file, so everyerror.valueand everyextractApiErrorMessagefallback now goes throughchat.conversationFiles.*keys (English only), via two small helpers (tr,failureText) so a server detail still wins over the translated fallback.GET /conversation-files/conversation/{session_id}/preview/{file_id}had no caller; only a hand-builtpreview_urlstring pointed at it. The same composable owns the panel's preview action, so the wiring lives there (same file, one PR).paths[...]['get']['responses'][200]), not hand-written. The hand-builtpreview_urlfield is removed fromConversationFileand the list mapper.text/*attachment now calls the route and shows itspreview_contentin a pane inChatFilePanel.vue. Types the route has no inline text for (images, PDF, audio, video) keep the existing authenticated blob-tab path unchanged.What Changed
autobot-frontend/src/composables/useConversationFiles.ts: all error literals replaced by i18n keys; newpreviewstate,openPreviewPane,closePreview;preview_urlremoved.autobot-frontend/src/utils/conversationFilePreview.ts(new):ConversationFilePreviewtype from the generatedpaths.autobot-frontend/src/utils/conversationFileList.ts: no hand-builtpreview_url.autobot-frontend/src/components/chat/ChatFilePanel.vue: preview pane.autobot-frontend/src/i18n/locales/en.json: newchat.conversationFiles.*error keys andchat.filePanel.previewEmpty/closePreview.repo_tests/unconnected_code_baseline.txt: the route's entry removed.useConversationFiles.errors.spec.ts(rename failure: translated fallback and kept server detail; missing-parameter and no-session guards),ChatFilePanel.preview.spec.ts(opening a preview calls the route and renders the response),conversationFileList.test.tsupdated.useConversationFiles.ts+ChatFilePanel.vue(fix(chat): useConversationFiles still shows English literals on read, rename and guard errors #21159): the composable takes a string, ref or getter and resolves the conversation id on every request and guard; the panel passes() => props.sessionId, so switching conversations with the panel open no longer shows or acts on the previous conversation's files, and a late list reply for a left conversation is dropped. Test:useConversationFiles.sessionReactivity.test.ts.Not in scope: #20225 and #20195 stay in their own issues.
Verification
src/composables/__tests__,src/components/chat, the list-mapper test and the locale-parity test: 126 files passed, 1522 tests passed, 1 skipped.vue-tsc --noEmit -p tsconfig.app.json: exit 0.eslinton the touched files: exit 0.repo_tests/unconnected_code_gate_20512_test.pywithfrontend_api_contract_ratchet_test.py: 57 passed (baseline entry removed, route now reached; the inline-generic ratchet holds).grep -nE "error.value = '|, '[A-Z]" useConversationFiles.tsreturns nothing.Model Used
Claude Sonnet 5.5
Closes #21159
Refs #20906
#20906 AC1 (a production caller reaches the route through the generated client, #20867) is not met: no generated operation client exists yet and #20867 is open. ACs 2 and 3 are delivered.