1. SettingRow — the titled bordered card with a control on the right (flex items-start…
- User
- SettingRow — the titled bordered card with a control on the right (flex items-start justify-between gap-4 rounded-lg border border-border p-4 → title + description + slot). 6 instances (KeatingUiSettings, Speech). Pairs cleanly with Toggle. Good win.
- SettingsSectionHeader — h3 + muted p. 11 instances, but trivial markup with varying margins; low payoff.
- Radio card group — 7-ish instances, but they diverge (Speech adds status badges + API-key hints, ModelSelector differs), so only a partial/awkward extract.
My recommendation: do SettingRow (real duplication, low risk), skip the header (not worth the indirection), and leave the radio groups as-is (too heterogeneous).
Assistant
I'll implement your recommendation: extract
SettingRow, leave the header and radio groups as-is. Let me explore the settings UI first.Assistant
Now I have the full picture. Let me extract
SettingRowand replace the 6 classic instances (4 in KeatingUiSettingsTab, 2 in SpeechSettingsTab), leaving the header and radio groups untouched.Assistant
Now replace the instances. I'll do all edits in parallel:
Assistant
Build succeeded. Let me also run the web tests: