karaoke-gen 0.103.1__py3-none-any.whl → 0.107.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- backend/Dockerfile.base +1 -0
- backend/api/routes/admin.py +226 -3
- backend/api/routes/push.py +238 -0
- backend/api/routes/users.py +14 -3
- backend/config.py +12 -1
- backend/main.py +2 -1
- backend/models/job.py +4 -0
- backend/models/user.py +20 -2
- backend/services/encoding_interface.py +4 -0
- backend/services/gce_encoding/main.py +22 -8
- backend/services/job_manager.py +68 -11
- backend/services/job_notification_service.py +4 -21
- backend/services/push_notification_service.py +409 -0
- backend/services/stripe_service.py +2 -2
- backend/tests/conftest.py +2 -1
- backend/tests/test_admin_delete_outputs.py +352 -0
- backend/tests/test_gce_encoding_worker.py +229 -0
- backend/tests/test_impersonation.py +18 -3
- backend/tests/test_job_notification_service.py +24 -58
- backend/tests/test_push_notification_service.py +460 -0
- backend/tests/test_push_routes.py +357 -0
- backend/tests/test_stripe_service.py +205 -0
- backend/tests/test_video_worker_orchestrator.py +189 -0
- backend/workers/video_worker_orchestrator.py +23 -0
- karaoke_gen/instrumental_review/server.py +145 -35
- karaoke_gen/nextjs_frontend/__init__.py +98 -0
- karaoke_gen/nextjs_frontend/out/404/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/404.html +1 -0
- karaoke_gen/nextjs_frontend/out/__next.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/__next._full.txt +22 -0
- karaoke_gen/nextjs_frontend/out/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/01a7f8fe40f1ff47.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/112f346e31f991df.js +4 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/16d1a4dd9d8a873a.js +3 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/1ab85c362b8b0e86.js +9 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/247eb132b7f7b574.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/2b80d15cc95e4818.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/32c7eba5cd46c1bc.js +7 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/483f26794eae53d0.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/550c3b02e85f196a.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/55c5ade44387bef8.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/5628d92b5893add2.css +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/56ebf7665e4341c8.js +7 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/5997132b61dec430.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/5ea55255bce3eb9e.js +5 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/5eda89a57490b3cd.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/692f5d9e0d700c76.js +3 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/71d7a05b14f9f0f4.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/81ac355749ef3302.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/95f7e5934dbb0e5d.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/9bce8f19eaa46940.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/a6dad97d9634a72d.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/a9ed54eed3e14c92.js +2 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/b35cd41238ecfb17.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/b5bc3c3d5ebd49eb.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/b5c078c08db5ae32.js +5 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/be9c44a178104187.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/c4c840e18cb4861c.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/c645af7d6b65f73e.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/d2c5e2575df784d4.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/d30af02b96d81462.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/d9bdf64f4ec1e9b7.js +7 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/dcde6ed684dacd0e.js +5 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/e422cbe931246000.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/e483af34fc792d38.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/e57422aad6b897da.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/ef02697fb404726a.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/ff1a16fafef87110.js +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/chunks/turbopack-2d9ca3017a9deedf.js +3 -0
- karaoke_gen/nextjs_frontend/out/_next/static/zpw_-rjFIDV5tlPPtnvRI/_buildManifest.js +11 -0
- karaoke_gen/nextjs_frontend/out/_next/static/zpw_-rjFIDV5tlPPtnvRI/_clientMiddlewareManifest.json +1 -0
- karaoke_gen/nextjs_frontend/out/_next/static/zpw_-rjFIDV5tlPPtnvRI/_ssgManifest.js +1 -0
- karaoke_gen/nextjs_frontend/out/_not-found/__next._full.txt +18 -0
- karaoke_gen/nextjs_frontend/out/_not-found/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/_not-found/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/_not-found/__next._not-found.__PAGE__.txt +5 -0
- karaoke_gen/nextjs_frontend/out/_not-found/__next._not-found.txt +4 -0
- karaoke_gen/nextjs_frontend/out/_not-found/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/_not-found/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/_not-found/index.txt +18 -0
- karaoke_gen/nextjs_frontend/out/admin/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/__next.admin.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next.admin.beta.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next.admin.beta.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/beta/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next.admin.jobs.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next.admin.jobs.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/jobs/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next.admin.rate-limits.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next.admin.rate-limits.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/rate-limits/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next.admin.searches.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next.admin.searches.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/searches/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next.admin.users.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/users/__next.admin.users.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next._full.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next.admin.txt +7 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next.admin.users.detail.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next.admin.users.detail.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/__next.admin.users.txt +4 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/users/detail/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/admin/users/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/admin/users/index.txt +25 -0
- karaoke_gen/nextjs_frontend/out/app/__next._full.txt +22 -0
- karaoke_gen/nextjs_frontend/out/app/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/app/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/app/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/app/__next.app.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/app/__next.app.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/app/index.txt +22 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next._full.txt +19 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next.app.jobs.$oc$slug.__PAGE__.txt +6 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next.app.jobs.$oc$slug.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next.app.jobs.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/__next.app.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/index.txt +19 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next._full.txt +19 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next.app.jobs.$oc$slug.__PAGE__.txt +6 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next.app.jobs.$oc$slug.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next.app.jobs.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/__next.app.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/instrumental/index.txt +19 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next._full.txt +19 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next.app.jobs.$oc$slug.__PAGE__.txt +6 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next.app.jobs.$oc$slug.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next.app.jobs.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/__next.app.txt +4 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/app/jobs/local/review/index.txt +19 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next._full.txt +22 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next.auth.txt +4 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next.auth.verify.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/__next.auth.verify.txt +4 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/auth/verify/index.txt +22 -0
- karaoke_gen/nextjs_frontend/out/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/index.txt +22 -0
- karaoke_gen/nextjs_frontend/out/manifest.webmanifest +31 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next._full.txt +22 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next.order.success.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next.order.success.txt +4 -0
- karaoke_gen/nextjs_frontend/out/order/success/__next.order.txt +4 -0
- karaoke_gen/nextjs_frontend/out/order/success/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/order/success/index.txt +22 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next._full.txt +22 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next._head.txt +8 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next._index.txt +9 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next._tree.txt +2 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next.payment.success.__PAGE__.txt +9 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next.payment.success.txt +4 -0
- karaoke_gen/nextjs_frontend/out/payment/success/__next.payment.txt +4 -0
- karaoke_gen/nextjs_frontend/out/payment/success/index.html +1 -0
- karaoke_gen/nextjs_frontend/out/payment/success/index.txt +22 -0
- karaoke_gen/nextjs_frontend/out/screenshots/email-action_reminder.png +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/email-beta_welcome.png +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/email-job_completion.png +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/example-output.avif +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/homepage-full.png +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/homepage-hero.png +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/instrumental-review.avif +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/instrumental-review.png +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/job-dashboard.avif +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/lyrics-review.avif +0 -0
- karaoke_gen/nextjs_frontend/out/screenshots/lyrics-review.png +0 -0
- karaoke_gen/nextjs_frontend/out/sw.js +183 -0
- karaoke_gen/utils/cli_args.py +3 -3
- karaoke_gen/utils/gen_cli.py +4 -0
- karaoke_gen/utils/remote_cli.py +8 -40
- {karaoke_gen-0.103.1.dist-info → karaoke_gen-0.107.0.dist-info}/METADATA +2 -1
- {karaoke_gen-0.103.1.dist-info → karaoke_gen-0.107.0.dist-info}/RECORD +244 -131
- {karaoke_gen-0.103.1.dist-info → karaoke_gen-0.107.0.dist-info}/WHEEL +1 -1
- lyrics_transcriber/correction/agentic/agent.py +83 -60
- lyrics_transcriber/correction/anchor_sequence.py +48 -3
- lyrics_transcriber/correction/corrector.py +92 -58
- lyrics_transcriber/review/server.py +165 -33
- lyrics_transcriber/utils/tracing.py +214 -0
- karaoke_gen/instrumental_review/static/index.html +0 -1695
- lyrics_transcriber/frontend/.gitignore +0 -24
- lyrics_transcriber/frontend/.yarn/releases/yarn-4.7.0.cjs +0 -935
- lyrics_transcriber/frontend/.yarnrc.yml +0 -3
- lyrics_transcriber/frontend/README.md +0 -50
- lyrics_transcriber/frontend/REPLACE_ALL_FUNCTIONALITY.md +0 -210
- lyrics_transcriber/frontend/__init__.py +0 -25
- lyrics_transcriber/frontend/e2e/agentic-corrections.spec.ts +0 -207
- lyrics_transcriber/frontend/e2e/fixtures/agentic-correction-data.json +0 -226
- lyrics_transcriber/frontend/eslint.config.js +0 -28
- lyrics_transcriber/frontend/index.html +0 -22
- lyrics_transcriber/frontend/package-lock.json +0 -4553
- lyrics_transcriber/frontend/package.json +0 -48
- lyrics_transcriber/frontend/playwright.config.ts +0 -69
- lyrics_transcriber/frontend/public/android-chrome-192x192.png +0 -0
- lyrics_transcriber/frontend/public/android-chrome-512x512.png +0 -0
- lyrics_transcriber/frontend/src/App.tsx +0 -243
- lyrics_transcriber/frontend/src/api.ts +0 -262
- lyrics_transcriber/frontend/src/components/AIFeedbackModal.tsx +0 -111
- lyrics_transcriber/frontend/src/components/AddLyricsModal.tsx +0 -114
- lyrics_transcriber/frontend/src/components/AgenticCorrectionMetrics.tsx +0 -204
- lyrics_transcriber/frontend/src/components/AppHeader.tsx +0 -65
- lyrics_transcriber/frontend/src/components/AudioPlayer.tsx +0 -180
- lyrics_transcriber/frontend/src/components/CorrectedWordWithActions.tsx +0 -175
- lyrics_transcriber/frontend/src/components/CorrectionAnnotationModal.tsx +0 -359
- lyrics_transcriber/frontend/src/components/CorrectionDetailCard.tsx +0 -281
- lyrics_transcriber/frontend/src/components/CorrectionMetrics.tsx +0 -162
- lyrics_transcriber/frontend/src/components/DurationTimelineView.tsx +0 -257
- lyrics_transcriber/frontend/src/components/EditActionBar.tsx +0 -94
- lyrics_transcriber/frontend/src/components/EditModal.tsx +0 -720
- lyrics_transcriber/frontend/src/components/EditTimelineSection.tsx +0 -592
- lyrics_transcriber/frontend/src/components/EditWordList.tsx +0 -431
- lyrics_transcriber/frontend/src/components/FileUpload.tsx +0 -77
- lyrics_transcriber/frontend/src/components/FindReplaceModal.tsx +0 -467
- lyrics_transcriber/frontend/src/components/Header.tsx +0 -520
- lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +0 -1526
- lyrics_transcriber/frontend/src/components/LyricsSynchronizer/SyncControls.tsx +0 -216
- lyrics_transcriber/frontend/src/components/LyricsSynchronizer/TimelineCanvas.tsx +0 -721
- lyrics_transcriber/frontend/src/components/LyricsSynchronizer/UpcomingWordsBar.tsx +0 -80
- lyrics_transcriber/frontend/src/components/LyricsSynchronizer/index.tsx +0 -999
- lyrics_transcriber/frontend/src/components/MetricsDashboard.tsx +0 -51
- lyrics_transcriber/frontend/src/components/ModeSelectionModal.tsx +0 -127
- lyrics_transcriber/frontend/src/components/ModeSelector.tsx +0 -67
- lyrics_transcriber/frontend/src/components/ModelSelector.tsx +0 -23
- lyrics_transcriber/frontend/src/components/PreviewVideoSection.tsx +0 -177
- lyrics_transcriber/frontend/src/components/ReferenceView.tsx +0 -268
- lyrics_transcriber/frontend/src/components/ReplaceAllLyricsModal.tsx +0 -336
- lyrics_transcriber/frontend/src/components/ReviewChangesModal.tsx +0 -354
- lyrics_transcriber/frontend/src/components/SegmentDetailsModal.tsx +0 -64
- lyrics_transcriber/frontend/src/components/TimelineEditor.tsx +0 -383
- lyrics_transcriber/frontend/src/components/TimingOffsetModal.tsx +0 -131
- lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +0 -266
- lyrics_transcriber/frontend/src/components/WordDivider.tsx +0 -191
- lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +0 -466
- lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +0 -56
- lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +0 -89
- lyrics_transcriber/frontend/src/components/shared/constants.ts +0 -30
- lyrics_transcriber/frontend/src/components/shared/hooks/useWordClick.ts +0 -180
- lyrics_transcriber/frontend/src/components/shared/styles.ts +0 -13
- lyrics_transcriber/frontend/src/components/shared/types.js +0 -2
- lyrics_transcriber/frontend/src/components/shared/types.ts +0 -135
- lyrics_transcriber/frontend/src/components/shared/utils/keyboardHandlers.ts +0 -177
- lyrics_transcriber/frontend/src/components/shared/utils/localStorage.ts +0 -78
- lyrics_transcriber/frontend/src/components/shared/utils/referenceLineCalculator.ts +0 -75
- lyrics_transcriber/frontend/src/components/shared/utils/segmentOperations.ts +0 -360
- lyrics_transcriber/frontend/src/components/shared/utils/timingUtils.ts +0 -110
- lyrics_transcriber/frontend/src/components/shared/utils/wordUtils.ts +0 -22
- lyrics_transcriber/frontend/src/hooks/useManualSync.ts +0 -537
- lyrics_transcriber/frontend/src/main.tsx +0 -11
- lyrics_transcriber/frontend/src/theme.ts +0 -406
- lyrics_transcriber/frontend/src/types/global.d.ts +0 -9
- lyrics_transcriber/frontend/src/types.js +0 -2
- lyrics_transcriber/frontend/src/types.ts +0 -199
- lyrics_transcriber/frontend/src/validation.ts +0 -132
- lyrics_transcriber/frontend/src/vite-env.d.ts +0 -1
- lyrics_transcriber/frontend/tsconfig.app.json +0 -26
- lyrics_transcriber/frontend/tsconfig.json +0 -25
- lyrics_transcriber/frontend/tsconfig.node.json +0 -23
- lyrics_transcriber/frontend/tsconfig.tsbuildinfo +0 -1
- lyrics_transcriber/frontend/update_version.js +0 -11
- lyrics_transcriber/frontend/vite.config.d.ts +0 -2
- lyrics_transcriber/frontend/vite.config.js +0 -15
- lyrics_transcriber/frontend/vite.config.ts +0 -16
- lyrics_transcriber/frontend/web_assets/android-chrome-192x192.png +0 -0
- lyrics_transcriber/frontend/web_assets/android-chrome-512x512.png +0 -0
- lyrics_transcriber/frontend/web_assets/apple-touch-icon.png +0 -0
- lyrics_transcriber/frontend/web_assets/assets/index-BSMgOq4Z.js +0 -44465
- lyrics_transcriber/frontend/web_assets/assets/index-BSMgOq4Z.js.map +0 -1
- lyrics_transcriber/frontend/web_assets/favicon-16x16.png +0 -0
- lyrics_transcriber/frontend/web_assets/favicon-32x32.png +0 -0
- lyrics_transcriber/frontend/web_assets/favicon.ico +0 -0
- lyrics_transcriber/frontend/web_assets/index.html +0 -22
- lyrics_transcriber/frontend/web_assets/nomad-karaoke-logo.png +0 -0
- lyrics_transcriber/frontend/web_assets/nomad-karaoke-logo.svg +0 -5
- lyrics_transcriber/frontend/yarn.lock +0 -3711
- {lyrics_transcriber/frontend/public → karaoke_gen/nextjs_frontend/out}/apple-touch-icon.png +0 -0
- {lyrics_transcriber/frontend/public → karaoke_gen/nextjs_frontend/out}/favicon-16x16.png +0 -0
- {lyrics_transcriber/frontend/public → karaoke_gen/nextjs_frontend/out}/favicon-32x32.png +0 -0
- {lyrics_transcriber/frontend/public → karaoke_gen/nextjs_frontend/out}/favicon.ico +0 -0
- {lyrics_transcriber/frontend/public → karaoke_gen/nextjs_frontend/out}/nomad-karaoke-logo.svg +0 -0
- /lyrics_transcriber/frontend/public/nomad-karaoke-logo.png → /karaoke_gen/nextjs_frontend/out/nomad-logo.png +0 -0
- {karaoke_gen-0.103.1.dist-info → karaoke_gen-0.107.0.dist-info}/entry_points.txt +0 -0
- {karaoke_gen-0.103.1.dist-info → karaoke_gen-0.107.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,520 +0,0 @@
|
|
|
1
|
-
import { Box, Button, Typography, useMediaQuery, useTheme, Switch, FormControlLabel, Tooltip, Paper, IconButton, Chip } from '@mui/material'
|
|
2
|
-
import LockIcon from '@mui/icons-material/Lock'
|
|
3
|
-
import UploadFileIcon from '@mui/icons-material/UploadFile'
|
|
4
|
-
import FindReplaceIcon from '@mui/icons-material/FindReplace'
|
|
5
|
-
import EditIcon from '@mui/icons-material/Edit'
|
|
6
|
-
import UndoIcon from '@mui/icons-material/Undo'
|
|
7
|
-
import RedoIcon from '@mui/icons-material/Redo'
|
|
8
|
-
import TimerIcon from '@mui/icons-material/Timer'
|
|
9
|
-
import RestoreIcon from '@mui/icons-material/Restore'
|
|
10
|
-
import RateReviewIcon from '@mui/icons-material/RateReview'
|
|
11
|
-
import VisibilityIcon from '@mui/icons-material/Visibility'
|
|
12
|
-
import CheckCircleIcon from '@mui/icons-material/CheckCircle'
|
|
13
|
-
import HighlightOffIcon from '@mui/icons-material/HighlightOff'
|
|
14
|
-
import { CorrectionData, InteractionMode } from '../types'
|
|
15
|
-
import CorrectionMetrics from './CorrectionMetrics'
|
|
16
|
-
import AgenticCorrectionMetrics from './AgenticCorrectionMetrics'
|
|
17
|
-
import ModeSelector from './ModeSelector'
|
|
18
|
-
import AudioPlayer from './AudioPlayer'
|
|
19
|
-
import { ApiClient } from '../api'
|
|
20
|
-
import { findWordById } from './shared/utils/wordUtils'
|
|
21
|
-
|
|
22
|
-
interface HeaderProps {
|
|
23
|
-
isReadOnly: boolean
|
|
24
|
-
onFileLoad: () => void
|
|
25
|
-
data: CorrectionData
|
|
26
|
-
onMetricClick: {
|
|
27
|
-
anchor: () => void
|
|
28
|
-
corrected: () => void
|
|
29
|
-
uncorrected: () => void
|
|
30
|
-
}
|
|
31
|
-
effectiveMode: InteractionMode
|
|
32
|
-
onModeChange: (mode: InteractionMode) => void
|
|
33
|
-
apiClient: ApiClient | null
|
|
34
|
-
audioHash: string
|
|
35
|
-
onTimeUpdate: (time: number) => void
|
|
36
|
-
onHandlerToggle: (handler: string, enabled: boolean) => void
|
|
37
|
-
isUpdatingHandlers: boolean
|
|
38
|
-
onHandlerClick?: (handler: string) => void
|
|
39
|
-
onFindReplace?: () => void
|
|
40
|
-
onEditAll?: () => void
|
|
41
|
-
onUnCorrectAll?: () => void
|
|
42
|
-
onResetCorrections?: () => void
|
|
43
|
-
onTimingOffset?: () => void
|
|
44
|
-
timingOffsetMs?: number
|
|
45
|
-
onUndo: () => void
|
|
46
|
-
onRedo: () => void
|
|
47
|
-
canUndo: boolean
|
|
48
|
-
canRedo: boolean
|
|
49
|
-
annotationsEnabled?: boolean
|
|
50
|
-
onAnnotationsToggle?: (enabled: boolean) => void
|
|
51
|
-
// Review mode props
|
|
52
|
-
reviewMode?: boolean
|
|
53
|
-
onReviewModeToggle?: (enabled: boolean) => void
|
|
54
|
-
// Batch action props
|
|
55
|
-
onAcceptAllCorrections?: () => void
|
|
56
|
-
onAcceptHighConfidenceCorrections?: () => void
|
|
57
|
-
onRevertAllCorrections?: () => void
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default function Header({
|
|
61
|
-
isReadOnly,
|
|
62
|
-
onFileLoad,
|
|
63
|
-
data,
|
|
64
|
-
onMetricClick,
|
|
65
|
-
effectiveMode,
|
|
66
|
-
onModeChange,
|
|
67
|
-
apiClient,
|
|
68
|
-
audioHash,
|
|
69
|
-
onTimeUpdate,
|
|
70
|
-
onHandlerToggle,
|
|
71
|
-
isUpdatingHandlers,
|
|
72
|
-
onHandlerClick,
|
|
73
|
-
onFindReplace,
|
|
74
|
-
onEditAll,
|
|
75
|
-
onUnCorrectAll,
|
|
76
|
-
onResetCorrections,
|
|
77
|
-
onTimingOffset,
|
|
78
|
-
timingOffsetMs = 0,
|
|
79
|
-
onUndo,
|
|
80
|
-
onRedo,
|
|
81
|
-
canUndo,
|
|
82
|
-
canRedo,
|
|
83
|
-
annotationsEnabled = true,
|
|
84
|
-
onAnnotationsToggle,
|
|
85
|
-
reviewMode = false,
|
|
86
|
-
onReviewModeToggle,
|
|
87
|
-
onAcceptAllCorrections,
|
|
88
|
-
onAcceptHighConfidenceCorrections,
|
|
89
|
-
onRevertAllCorrections,
|
|
90
|
-
}: HeaderProps) {
|
|
91
|
-
const theme = useTheme()
|
|
92
|
-
const isMobile = useMediaQuery(theme.breakpoints.down('md'))
|
|
93
|
-
|
|
94
|
-
// Get handlers with their correction counts
|
|
95
|
-
const handlerCounts = data.corrections?.reduce((counts: Record<string, number>, correction) => {
|
|
96
|
-
counts[correction.handler] = (counts[correction.handler] || 0) + 1
|
|
97
|
-
return counts
|
|
98
|
-
}, {}) || {}
|
|
99
|
-
|
|
100
|
-
// Get available handlers from metadata
|
|
101
|
-
const availableHandlers = data.metadata.available_handlers || []
|
|
102
|
-
const enabledHandlers = new Set(data.metadata.enabled_handlers || [])
|
|
103
|
-
|
|
104
|
-
// Check if agentic mode is active
|
|
105
|
-
const isAgenticMode = availableHandlers.some((h: { id: string }) => h.id === 'AgenticCorrector')
|
|
106
|
-
|
|
107
|
-
// Create a map of gap IDs to their corrections
|
|
108
|
-
const gapCorrections = data.corrections.reduce((map: Record<string, number>, correction) => {
|
|
109
|
-
// Find the gap that contains this correction's word_id
|
|
110
|
-
const gap = data.gap_sequences.find(g =>
|
|
111
|
-
g.transcribed_word_ids.includes(correction.word_id)
|
|
112
|
-
)
|
|
113
|
-
if (gap) {
|
|
114
|
-
map[gap.id] = (map[gap.id] || 0) + 1
|
|
115
|
-
}
|
|
116
|
-
return map
|
|
117
|
-
}, {})
|
|
118
|
-
|
|
119
|
-
// Calculate metrics
|
|
120
|
-
const correctedGapCount = Object.keys(gapCorrections).length
|
|
121
|
-
const uncorrectedGapCount = data.gap_sequences.length - correctedGapCount
|
|
122
|
-
|
|
123
|
-
const uncorrectedGaps = data.gap_sequences
|
|
124
|
-
.filter(gap => !gapCorrections[gap.id] && gap.transcribed_word_ids.length > 0)
|
|
125
|
-
.map(gap => {
|
|
126
|
-
const firstWord = findWordById(data.corrected_segments, gap.transcribed_word_ids[0])
|
|
127
|
-
return {
|
|
128
|
-
position: firstWord?.id ?? '',
|
|
129
|
-
length: gap.transcribed_word_ids.length
|
|
130
|
-
}
|
|
131
|
-
})
|
|
132
|
-
|
|
133
|
-
// Calculate correction type counts
|
|
134
|
-
const replacedCount = data.corrections.filter(c => !c.is_deletion && !c.split_total).length
|
|
135
|
-
const addedCount = data.corrections.filter(c => c.split_total).length
|
|
136
|
-
const deletedCount = data.corrections.filter(c => c.is_deletion).length
|
|
137
|
-
|
|
138
|
-
return (
|
|
139
|
-
<>
|
|
140
|
-
{isReadOnly && (
|
|
141
|
-
<Box sx={{ display: 'flex', alignItems: 'center', mb: 0.8, color: 'text.secondary' }}>
|
|
142
|
-
<LockIcon sx={{ mr: 0.5 }} fontSize="small" />
|
|
143
|
-
<Typography variant="body2" sx={{ fontSize: '0.75rem' }}>
|
|
144
|
-
View Only Mode
|
|
145
|
-
</Typography>
|
|
146
|
-
</Box>
|
|
147
|
-
)}
|
|
148
|
-
|
|
149
|
-
{/* Review Mode toggle and Load File button */}
|
|
150
|
-
<Box sx={{
|
|
151
|
-
display: 'flex',
|
|
152
|
-
gap: 1,
|
|
153
|
-
justifyContent: 'flex-end',
|
|
154
|
-
alignItems: 'center',
|
|
155
|
-
mb: 1
|
|
156
|
-
}}>
|
|
157
|
-
{!isReadOnly && isAgenticMode && onReviewModeToggle && (
|
|
158
|
-
<Tooltip title={reviewMode
|
|
159
|
-
? "Hide inline correction actions"
|
|
160
|
-
: "Show inline actions on all corrections for quick review"
|
|
161
|
-
}>
|
|
162
|
-
<Chip
|
|
163
|
-
icon={<VisibilityIcon />}
|
|
164
|
-
label={reviewMode ? "Review Mode" : "Review Off"}
|
|
165
|
-
onClick={() => onReviewModeToggle(!reviewMode)}
|
|
166
|
-
color={reviewMode ? "secondary" : "default"}
|
|
167
|
-
variant={reviewMode ? "filled" : "outlined"}
|
|
168
|
-
size="small"
|
|
169
|
-
sx={{
|
|
170
|
-
cursor: 'pointer',
|
|
171
|
-
'& .MuiChip-icon': { fontSize: '1rem' }
|
|
172
|
-
}}
|
|
173
|
-
/>
|
|
174
|
-
</Tooltip>
|
|
175
|
-
)}
|
|
176
|
-
{isReadOnly && (
|
|
177
|
-
<Button
|
|
178
|
-
variant="outlined"
|
|
179
|
-
size="small"
|
|
180
|
-
startIcon={<UploadFileIcon />}
|
|
181
|
-
onClick={onFileLoad}
|
|
182
|
-
fullWidth={isMobile}
|
|
183
|
-
>
|
|
184
|
-
Load File
|
|
185
|
-
</Button>
|
|
186
|
-
)}
|
|
187
|
-
</Box>
|
|
188
|
-
|
|
189
|
-
<Box sx={{
|
|
190
|
-
display: 'flex',
|
|
191
|
-
gap: 1,
|
|
192
|
-
mb: 1,
|
|
193
|
-
flexDirection: isMobile ? 'column' : 'row',
|
|
194
|
-
height: isMobile ? 'auto' : '140px',
|
|
195
|
-
minHeight: isMobile ? 'auto' : '140px'
|
|
196
|
-
}}>
|
|
197
|
-
<Box sx={{
|
|
198
|
-
width: isMobile ? '100%' : '280px',
|
|
199
|
-
minWidth: isMobile ? '100%' : '280px',
|
|
200
|
-
position: 'relative',
|
|
201
|
-
height: isMobile ? 'auto' : '100%'
|
|
202
|
-
}}>
|
|
203
|
-
{isAgenticMode ? (
|
|
204
|
-
<AgenticCorrectionMetrics
|
|
205
|
-
corrections={data.corrections || []}
|
|
206
|
-
onCategoryClick={(category) => {
|
|
207
|
-
// TODO: Implement category filtering/highlighting
|
|
208
|
-
console.log('Filter by category:', category)
|
|
209
|
-
}}
|
|
210
|
-
onConfidenceFilterClick={(filter) => {
|
|
211
|
-
// TODO: Implement confidence filtering
|
|
212
|
-
console.log('Filter by confidence:', filter)
|
|
213
|
-
}}
|
|
214
|
-
/>
|
|
215
|
-
) : (
|
|
216
|
-
<Paper sx={{
|
|
217
|
-
p: 0.8,
|
|
218
|
-
height: '100%',
|
|
219
|
-
display: 'flex',
|
|
220
|
-
flexDirection: 'column'
|
|
221
|
-
}}>
|
|
222
|
-
<Typography variant="subtitle2" color="text.secondary" sx={{ mb: 0.5, fontSize: '0.7rem' }}>
|
|
223
|
-
Correction Handlers
|
|
224
|
-
</Typography>
|
|
225
|
-
|
|
226
|
-
<Box sx={{
|
|
227
|
-
flex: 1,
|
|
228
|
-
overflow: 'auto',
|
|
229
|
-
display: 'flex',
|
|
230
|
-
flexDirection: 'column'
|
|
231
|
-
}}>
|
|
232
|
-
{availableHandlers.map(handler => (
|
|
233
|
-
<Box key={handler.id} sx={{ mb: 0.5 }}>
|
|
234
|
-
<Tooltip
|
|
235
|
-
title={handler.description}
|
|
236
|
-
placement="right"
|
|
237
|
-
>
|
|
238
|
-
<FormControlLabel
|
|
239
|
-
control={
|
|
240
|
-
<Switch
|
|
241
|
-
checked={enabledHandlers.has(handler.id)}
|
|
242
|
-
onChange={(e) => onHandlerToggle(handler.id, e.target.checked)}
|
|
243
|
-
size="small"
|
|
244
|
-
disabled={isUpdatingHandlers}
|
|
245
|
-
/>
|
|
246
|
-
}
|
|
247
|
-
label={`${handler.name} (${handlerCounts[handler.id] || 0})`}
|
|
248
|
-
onClick={(e) => {
|
|
249
|
-
if ((e.target as HTMLElement).tagName !== 'INPUT') {
|
|
250
|
-
e.preventDefault();
|
|
251
|
-
e.stopPropagation();
|
|
252
|
-
onHandlerClick?.(handler.id);
|
|
253
|
-
}
|
|
254
|
-
}}
|
|
255
|
-
sx={{
|
|
256
|
-
ml: 0,
|
|
257
|
-
py: 0,
|
|
258
|
-
my: 0,
|
|
259
|
-
minHeight: '24px',
|
|
260
|
-
'& .MuiFormControlLabel-label': {
|
|
261
|
-
fontSize: '0.7rem',
|
|
262
|
-
cursor: 'pointer',
|
|
263
|
-
lineHeight: 1.2
|
|
264
|
-
}
|
|
265
|
-
}}
|
|
266
|
-
/>
|
|
267
|
-
</Tooltip>
|
|
268
|
-
</Box>
|
|
269
|
-
))}
|
|
270
|
-
</Box>
|
|
271
|
-
</Paper>
|
|
272
|
-
)}
|
|
273
|
-
</Box>
|
|
274
|
-
<Box sx={{ flex: 1, height: '100%' }}>
|
|
275
|
-
<CorrectionMetrics
|
|
276
|
-
// Anchor metrics
|
|
277
|
-
anchorCount={data.metadata.anchor_sequences_count}
|
|
278
|
-
multiSourceAnchors={data.anchor_sequences?.filter(anchor =>
|
|
279
|
-
anchor?.reference_word_ids &&
|
|
280
|
-
Object.keys(anchor.reference_word_ids).length > 1
|
|
281
|
-
).length ?? 0}
|
|
282
|
-
anchorWordCount={data.anchor_sequences?.reduce((sum, anchor) =>
|
|
283
|
-
sum + (anchor.transcribed_word_ids?.length || 0), 0) ?? 0}
|
|
284
|
-
// Updated gap metrics
|
|
285
|
-
correctedGapCount={correctedGapCount}
|
|
286
|
-
uncorrectedGapCount={uncorrectedGapCount}
|
|
287
|
-
uncorrectedGaps={uncorrectedGaps}
|
|
288
|
-
// Updated correction type counts
|
|
289
|
-
replacedCount={replacedCount}
|
|
290
|
-
addedCount={addedCount}
|
|
291
|
-
deletedCount={deletedCount}
|
|
292
|
-
onMetricClick={onMetricClick}
|
|
293
|
-
totalWords={data.metadata.total_words}
|
|
294
|
-
/>
|
|
295
|
-
</Box>
|
|
296
|
-
</Box>
|
|
297
|
-
|
|
298
|
-
{/* Batch Actions Panel - shown when review mode is enabled */}
|
|
299
|
-
{!isReadOnly && reviewMode && isAgenticMode && data.corrections?.length > 0 && (
|
|
300
|
-
<Paper sx={{ p: 0.8, mb: 1, backgroundColor: 'action.hover' }}>
|
|
301
|
-
<Box sx={{
|
|
302
|
-
display: 'flex',
|
|
303
|
-
flexDirection: isMobile ? 'column' : 'row',
|
|
304
|
-
gap: 1,
|
|
305
|
-
alignItems: isMobile ? 'stretch' : 'center',
|
|
306
|
-
justifyContent: 'space-between'
|
|
307
|
-
}}>
|
|
308
|
-
<Typography variant="subtitle2" sx={{ fontSize: '0.75rem', color: 'text.secondary' }}>
|
|
309
|
-
Batch Actions ({data.corrections.length} corrections)
|
|
310
|
-
</Typography>
|
|
311
|
-
<Box sx={{
|
|
312
|
-
display: 'flex',
|
|
313
|
-
gap: 1,
|
|
314
|
-
flexWrap: 'wrap'
|
|
315
|
-
}}>
|
|
316
|
-
{onAcceptHighConfidenceCorrections && (
|
|
317
|
-
<Button
|
|
318
|
-
variant="contained"
|
|
319
|
-
size="small"
|
|
320
|
-
color="success"
|
|
321
|
-
startIcon={<CheckCircleIcon />}
|
|
322
|
-
onClick={onAcceptHighConfidenceCorrections}
|
|
323
|
-
sx={{ fontSize: '0.75rem', py: 0.5 }}
|
|
324
|
-
>
|
|
325
|
-
Accept High Confidence ({data.corrections.filter(c => c.confidence >= 0.8).length})
|
|
326
|
-
</Button>
|
|
327
|
-
)}
|
|
328
|
-
{onAcceptAllCorrections && (
|
|
329
|
-
<Button
|
|
330
|
-
variant="outlined"
|
|
331
|
-
size="small"
|
|
332
|
-
color="success"
|
|
333
|
-
startIcon={<CheckCircleIcon />}
|
|
334
|
-
onClick={onAcceptAllCorrections}
|
|
335
|
-
sx={{ fontSize: '0.75rem', py: 0.5 }}
|
|
336
|
-
>
|
|
337
|
-
Accept All
|
|
338
|
-
</Button>
|
|
339
|
-
)}
|
|
340
|
-
{onRevertAllCorrections && (
|
|
341
|
-
<Button
|
|
342
|
-
variant="outlined"
|
|
343
|
-
size="small"
|
|
344
|
-
color="error"
|
|
345
|
-
startIcon={<HighlightOffIcon />}
|
|
346
|
-
onClick={onRevertAllCorrections}
|
|
347
|
-
sx={{ fontSize: '0.75rem', py: 0.5 }}
|
|
348
|
-
>
|
|
349
|
-
Revert All
|
|
350
|
-
</Button>
|
|
351
|
-
)}
|
|
352
|
-
</Box>
|
|
353
|
-
</Box>
|
|
354
|
-
</Paper>
|
|
355
|
-
)}
|
|
356
|
-
|
|
357
|
-
<Paper sx={{ p: 0.8, mb: 1 }}>
|
|
358
|
-
<Box sx={{
|
|
359
|
-
display: 'flex',
|
|
360
|
-
flexDirection: isMobile ? 'column' : 'row',
|
|
361
|
-
gap: 1,
|
|
362
|
-
alignItems: isMobile ? 'flex-start' : 'center',
|
|
363
|
-
justifyContent: 'space-between',
|
|
364
|
-
width: '100%'
|
|
365
|
-
}}>
|
|
366
|
-
<Box sx={{
|
|
367
|
-
display: 'flex',
|
|
368
|
-
gap: 0.5,
|
|
369
|
-
flexDirection: 'row',
|
|
370
|
-
flexWrap: 'wrap',
|
|
371
|
-
alignItems: 'center',
|
|
372
|
-
minHeight: '32px'
|
|
373
|
-
}}>
|
|
374
|
-
<ModeSelector
|
|
375
|
-
effectiveMode={effectiveMode}
|
|
376
|
-
onChange={onModeChange}
|
|
377
|
-
/>
|
|
378
|
-
{!isReadOnly && onResetCorrections && (
|
|
379
|
-
<Tooltip title="Undo all your changes">
|
|
380
|
-
<Button
|
|
381
|
-
variant="outlined"
|
|
382
|
-
size="small"
|
|
383
|
-
color="warning"
|
|
384
|
-
onClick={onResetCorrections}
|
|
385
|
-
startIcon={<UndoIcon />}
|
|
386
|
-
sx={{ minWidth: 'fit-content', height: '32px' }}
|
|
387
|
-
>
|
|
388
|
-
Undo All
|
|
389
|
-
</Button>
|
|
390
|
-
</Tooltip>
|
|
391
|
-
)}
|
|
392
|
-
{!isReadOnly && (
|
|
393
|
-
<Box sx={{ display: 'flex', height: '32px' }}>
|
|
394
|
-
<Tooltip title="Undo">
|
|
395
|
-
<span>
|
|
396
|
-
<IconButton
|
|
397
|
-
size="small"
|
|
398
|
-
onClick={onUndo}
|
|
399
|
-
disabled={!canUndo}
|
|
400
|
-
sx={{
|
|
401
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
402
|
-
borderRadius: '4px',
|
|
403
|
-
mx: 0.25,
|
|
404
|
-
height: '32px',
|
|
405
|
-
width: '32px'
|
|
406
|
-
}}
|
|
407
|
-
>
|
|
408
|
-
<UndoIcon fontSize="small" />
|
|
409
|
-
</IconButton>
|
|
410
|
-
</span>
|
|
411
|
-
</Tooltip>
|
|
412
|
-
<Tooltip title="Redo">
|
|
413
|
-
<span>
|
|
414
|
-
<IconButton
|
|
415
|
-
size="small"
|
|
416
|
-
onClick={onRedo}
|
|
417
|
-
disabled={!canRedo}
|
|
418
|
-
sx={{
|
|
419
|
-
border: `1px solid ${theme.palette.divider}`,
|
|
420
|
-
borderRadius: '4px',
|
|
421
|
-
mx: 0.25,
|
|
422
|
-
height: '32px',
|
|
423
|
-
width: '32px'
|
|
424
|
-
}}
|
|
425
|
-
>
|
|
426
|
-
<RedoIcon fontSize="small" />
|
|
427
|
-
</IconButton>
|
|
428
|
-
</span>
|
|
429
|
-
</Tooltip>
|
|
430
|
-
</Box>
|
|
431
|
-
)}
|
|
432
|
-
{!isReadOnly && (
|
|
433
|
-
<Button
|
|
434
|
-
variant="outlined"
|
|
435
|
-
size="small"
|
|
436
|
-
onClick={onFindReplace}
|
|
437
|
-
startIcon={<FindReplaceIcon />}
|
|
438
|
-
sx={{ minWidth: 'fit-content', height: '32px' }}
|
|
439
|
-
>
|
|
440
|
-
Find/Replace
|
|
441
|
-
</Button>
|
|
442
|
-
)}
|
|
443
|
-
{!isReadOnly && onEditAll && (
|
|
444
|
-
<Button
|
|
445
|
-
variant="outlined"
|
|
446
|
-
size="small"
|
|
447
|
-
onClick={onEditAll}
|
|
448
|
-
startIcon={<EditIcon />}
|
|
449
|
-
sx={{ minWidth: 'fit-content', height: '32px' }}
|
|
450
|
-
>
|
|
451
|
-
Edit All
|
|
452
|
-
</Button>
|
|
453
|
-
)}
|
|
454
|
-
{!isReadOnly && onUnCorrectAll && (
|
|
455
|
-
<Tooltip title="Revert only automatic AI corrections (keeps your manual edits)">
|
|
456
|
-
<Button
|
|
457
|
-
variant="outlined"
|
|
458
|
-
size="small"
|
|
459
|
-
onClick={onUnCorrectAll}
|
|
460
|
-
startIcon={<RestoreIcon />}
|
|
461
|
-
sx={{ minWidth: 'fit-content', height: '32px' }}
|
|
462
|
-
>
|
|
463
|
-
Undo Auto Corrections
|
|
464
|
-
</Button>
|
|
465
|
-
</Tooltip>
|
|
466
|
-
)}
|
|
467
|
-
{!isReadOnly && onTimingOffset && (
|
|
468
|
-
<Box sx={{ display: 'flex', alignItems: 'center' }}>
|
|
469
|
-
<Button
|
|
470
|
-
variant="outlined"
|
|
471
|
-
size="small"
|
|
472
|
-
onClick={onTimingOffset}
|
|
473
|
-
startIcon={<TimerIcon />}
|
|
474
|
-
color={timingOffsetMs !== 0 ? "secondary" : "primary"}
|
|
475
|
-
sx={{ minWidth: 'fit-content', height: '32px' }}
|
|
476
|
-
>
|
|
477
|
-
Timing Offset
|
|
478
|
-
</Button>
|
|
479
|
-
{timingOffsetMs !== 0 && (
|
|
480
|
-
<Typography
|
|
481
|
-
variant="body2"
|
|
482
|
-
sx={{
|
|
483
|
-
ml: 1,
|
|
484
|
-
fontWeight: 'bold',
|
|
485
|
-
color: theme.palette.secondary.main
|
|
486
|
-
}}
|
|
487
|
-
>
|
|
488
|
-
{timingOffsetMs > 0 ? '+' : ''}{timingOffsetMs}ms
|
|
489
|
-
</Typography>
|
|
490
|
-
)}
|
|
491
|
-
</Box>
|
|
492
|
-
)}
|
|
493
|
-
{!isReadOnly && onAnnotationsToggle && (
|
|
494
|
-
<Tooltip title={annotationsEnabled
|
|
495
|
-
? "Click to disable annotation prompts when editing"
|
|
496
|
-
: "Click to enable annotation prompts when editing"
|
|
497
|
-
}>
|
|
498
|
-
<Button
|
|
499
|
-
variant="outlined"
|
|
500
|
-
size="small"
|
|
501
|
-
onClick={() => onAnnotationsToggle(!annotationsEnabled)}
|
|
502
|
-
startIcon={<RateReviewIcon />}
|
|
503
|
-
color={annotationsEnabled ? "primary" : "inherit"}
|
|
504
|
-
sx={{ minWidth: 'fit-content', height: '32px' }}
|
|
505
|
-
>
|
|
506
|
-
{annotationsEnabled ? "Feedback On" : "Feedback Off"}
|
|
507
|
-
</Button>
|
|
508
|
-
</Tooltip>
|
|
509
|
-
)}
|
|
510
|
-
<AudioPlayer
|
|
511
|
-
apiClient={apiClient}
|
|
512
|
-
onTimeUpdate={onTimeUpdate}
|
|
513
|
-
audioHash={audioHash}
|
|
514
|
-
/>
|
|
515
|
-
</Box>
|
|
516
|
-
</Box>
|
|
517
|
-
</Paper>
|
|
518
|
-
</>
|
|
519
|
-
)
|
|
520
|
-
}
|