Skip to content

refactor: deduplicate TranscriptionConfigDialog with shared form helpers#440

Open
alexander-turner wants to merge 2 commits intorishikanthc:mainfrom
alexander-turner:claude/refactor-transcription-dialog
Open

refactor: deduplicate TranscriptionConfigDialog with shared form helpers#440
alexander-turner wants to merge 2 commits intorishikanthc:mainfrom
alexander-turner:claude/refactor-transcription-dialog

Conversation

@alexander-turner
Copy link
Copy Markdown

@alexander-turner alexander-turner commented Mar 25, 2026

  • Extract SelectField, SwitchField, SliderField, AdvancedAccordion helpers into FormHelpers.tsx — reusable across any config dialog
  • Move shared CSS class constants (inputClassName, etc.) to FormHelpers.tsx
  • Extract DiarizationSection component to eliminate 3x copy-pasted diarization blocks (Whisper, Parakeet, Canary)
  • Replace 11 inline Select blocks, 5 Switch+label blocks, 2 Slider blocks, and 2 Accordion wrappers with single-line helper calls

claude added 2 commits March 25, 2026 02:11
- Extract SelectField, SwitchField, SliderField, AdvancedAccordion to FormHelpers
- Move shared CSS class constants (inputClassName, etc.) to FormHelpers
- Extract DiarizationSection to eliminate 3x copy-pasted diarization blocks
- Replace 11 inline Select blocks, 5 Switch+label blocks, 2 Slider blocks,
  2 Accordion wrappers with single-line helper calls

TranscriptionConfigDialog: 1178 → 702 lines (-40%)
FormHelpers: 119 → 264 lines (reusable form infrastructure)

https://claude.ai/code/session_01YMyUwpk577EradV93tMMqS
Remove 4 duplicated CSS class constants and replace manual Select/Switch
blocks with SelectField and SwitchField from FormHelpers.

225 → 185 lines (-18%)

https://claude.ai/code/session_01YMyUwpk577EradV93tMMqS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants