Skip to content

Follow-ups from merge train #21061 review: quota refusal translation (#21013) #21084

Closed

Description

@mrveiss

Valid review findings on the quota-refusal translation work, deferred from merge train #21061.

  • autobot-frontend/src/composables/useConversationFiles.ts (~L213): route the upload/create/save/copy write-error fallbacks through i18n.
  • PhaseProgressionIndicator.unscored.test.ts (~L80): assert the English incomplete key exists separately from the fallback.
  • useConversationFiles.createRefusal.spec.ts (~L54): assert the full mocked translation result for save, copy and upload.
  • useConversationFiles.createRefusal.spec.ts (~L68): assert uploadFiles returns false on refusal.
  • useConversationFiles.createRefusal.spec.ts (~L75): add non-refusal tests for copyFile and uploadFiles asserting the server detail is retained.

Refs #21061, #21013

Deferred by maintainer decision 2026-11-07 so the train could land.

Activity

  1. added
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Nov 7, 2026
  2. github-actions commented on Nov 7, 2026

    @github-actions
    Contributor

    needs-structure cleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).

  3. removed
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Nov 8, 2026
  4. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    Closure check for merge train #21184 (merge commit 209d547, ancestor of main; delivered via #21149).

    AC Evidence (on main, autobot-frontend/src/composables) Verdict
    useConversationFiles.ts: route the write-error fallbacks through i18n useConversationFiles.ts:208 chat.input.uploadError.unknown, :351 chat.conversationFiles.createFailed, :398 ...saveFailed, :414 ...copyFailed; __tests__/useConversationFiles.createRefusal.spec.ts:94-104 it.each asserts each translated key met
    PhaseProgressionIndicator.unscored.test.ts: assert English incomplete key exists separately from fallback components/workflow/__tests__/PhaseProgressionIndicator.unscored.test.ts:83 expect(statusKeys.incomplete).toBe('Incomplete'), plus :91-97 translated-locale render met
    createRefusal.spec.ts: assert the full mocked translation result for save, copy, upload createRefusal.spec.ts:47 quotaText full string, asserted at :55, :63, :70 met
    assert uploadFiles returns false on refusal createRefusal.spec.ts:69 met
    non-refusal tests for copyFile and uploadFiles keep server detail createRefusal.spec.ts:80-85 (copyFile) and :87-92 (uploadFiles), both expect 'boom' met

    All five ACs ticked; closing. Test execution is CI's (train #21184), not re-run here.

  5. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    Landed via PR #21149, merged to main through merge train #21184 (merge commit 209d547, frozen head 912d66d). Evidence for the ticked items, checked against origin/main:

    • write-error fallbacks via i18n - ✅ autobot-frontend/src/composables/useConversationFiles.ts uses i18n.global.t('chat.input.uploadError.unknown'), chat.conversationFiles.createFailed, .saveFailed, .copyFailed.
    • separate English incomplete key assertion - ✅ src/components/workflow/__tests__/PhaseProgressionIndicator.unscored.test.ts (statusKeys.incomplete is 'Incomplete', and a locale override renders translated incomplete).
    • full mocked translation result, uploadFiles returns false on refusal, non-refusal copyFile/uploadFiles keep the server detail - ✅ src/composables/__tests__/useConversationFiles.createRefusal.spec.ts ('write refusals beyond create', 'copyFile keeps the server detail...', 'uploadFiles keeps the server detail...').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions