Skip to content

feat(bulkProcessing): add bulk translation modal DEV-1414#7134

Open
duvld wants to merge 71 commits into
mainfrom
anji/dev-1414-bulk-translation-modal
Open

feat(bulkProcessing): add bulk translation modal DEV-1414#7134
duvld wants to merge 71 commits into
mainfrom
anji/dev-1414-bulk-translation-modal

Conversation

@duvld

@duvld duvld commented Jun 8, 2026

Copy link
Copy Markdown
Member

🗒️ Checklist

  1. run linter locally
  2. update developer docs (API, README, inline, etc.), if any
  3. for user-facing doc changes create a Zulip thread at #Support Docs Updates, if any
  4. draft PR with a title <type>(<scope>)<!>: <title> DEV-1234
  5. assign yourself, tag PR: at least Front end and/or Back end or workflow
  6. fill in the template below and delete template comments
  7. review thyself: read the diff and repro the preview as written
  8. open PR & confirm that CI passes & request reviewers, if needed
  9. act on any greptile review below a 5/5 score or leave comment explaining why you won't
  10. delete this checklist section from the final squash commit before merging

📣 Summary

Adds modal to allow bulk translation for multiple transcripts

💭 Notes

Very similar to BulkTranscriptionModal with key differences in time estimation and props

👀 Preview steps

  1. ℹ️ Have multiple audio submissions with transcripts
  2. Click the column header for the transcript
  3. Open the bulk translation modal
  4. 🟢 [on PR] notice that the modal correct displays the amount of rows selected and the correct amount of characters
  5. Click Start translation
  6. 🟢 notice that the network tab shows the request goes through with no errors
  7. Select too many submissions and have a user that has ASR exceeded limits
  8. 🟢 notice that the extra modal step + the warnings work the same as the BulkTranscriptionModal

duvld and others added 2 commits June 8, 2026 20:42
…lationModal.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
…lationModal.tsx

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@duvld duvld changed the title Anji/dev 1414 bulk translation modal feat(bulkProcessing): add bulk translation modal DEV-1414 Jun 8, 2026
@duvld

duvld commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@greptile-apps please re-review

@duvld duvld marked this pull request as ready for review June 12, 2026 00:25
@duvld duvld requested a review from magicznyleszek as a code owner June 12, 2026 00:25

@magicznyleszek magicznyleszek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok, bulk processing doesn't work (I suspect BE issues, already talking about this on Zulip). I have to ideas to refactor a bit, other than that good :)

<Text size='xs'>
{t('Automatic translation is provided by Google Cloud Platform.')}
&nbsp;
<Anchor href={envStore.data.support_url + GOOGLE_TRANSCRIPTION_LANGUAGE_SUPPORT_URL} underline='always'>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice for using Anchor, please make it target blank :)

props.onRequestClose()
props.onSuccess()
},
onError: () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my commit from the other PR 55d4448 and handle errors in similar way here

return (
<>
{showWarningModal && (
<Stack gap='md'>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both modals have identical warning modal, extract to a shared component (maybe BulkProcessingWarningModal.tsx?) And maybe move both modals to some `…/js/components/submissions/bulkProcessing/ directory?

Base automatically changed from anji/dev-1419-bulk-transcript-modal to main June 15, 2026 16:03
duvld added 4 commits June 16, 2026 15:19
 Conflicts:
	jsapp/js/components/languages/RegionSelector.tsx
	jsapp/js/components/submissions/BulkTranscriptionModal/BulkTranscriptionModal.tsx
	jsapp/js/components/submissions/table.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants