Skip to content

fix(admin): drop Active badge, fix MP3 default, correct audio-conversion copy#19

Merged
revtex merged 1 commit intodevfrom
fix/admin-options-active-badge-mp3-default
Apr 25, 2026
Merged

fix(admin): drop Active badge, fix MP3 default, correct audio-conversion copy#19
revtex merged 1 commit intodevfrom
fix/admin-options-active-badge-mp3-default

Conversation

@revtex
Copy link
Copy Markdown
Owner

@revtex revtex commented Apr 25, 2026

Summary

Three small admin-options fixes reported in dev testing.

Changes

Frontend — OptionsPanel.tsx

  • Removed the green "Active" badge that was rendered next to every wired setting. Only "Planned" badges show now (for the seven keys persisted but not wired to runtime behavior).
  • Reworded the audioConversion description from "Convert incoming audio to AAC/M4A using FFmpeg." to "Convert incoming audio with FFmpeg before storing. Select the codec and bitrate below." — the old copy implied AAC/M4A only, but MP3 outputs are equally supported via the encoding preset.

Backend — seed + worker

  • internal/seed/seed.go: default audioEncodingPreset changed from aac_lc_32kmp3_32k. This was the actual root cause of the reported bug. The dropdown labels mp3_32k as "(default)" and audio.ParseEncodingPreset falls back to mp3_32k on empty/unknown input, but the seed contradicted both by writing aac_lc_32k to the settings row at install time, so freshly-installed instances saw AAC-LC 32k preselected the moment audio conversion was enabled.
  • internal/audio/worker.go: moved the (default) comment marker off PresetAACLC32k and onto PresetMP3_32k so the source of truth matches the seed and parser fallback.

Verification

  • go vet ./... and go build ./... clean.
  • pnpm exec tsc --noEmit clean.
  • Existing audio worker tests already assert PresetMP3_32k is the parser fallback, so no test changes needed.

CHANGELOG

Updated under [Unreleased] — two entries under Changed (Active badge, audio-conversion copy) and one under Fixed (MP3 default seed).

…ion copy

- OptionsPanel: remove green 'Active' badge from wired settings; only
  'Planned' badges render now.
- OptionsPanel: reword 'Audio Conversion' description to reflect that
  MP3 and AAC outputs are both supported via the encoding preset.
- seed: default audioEncodingPreset is now mp3_32k (matching the
  dropdown's '(default)' label and audio.ParseEncodingPreset's
  fallback) instead of aac_lc_32k.
- audio/worker.go: move the '(default)' comment marker from
  PresetAACLC32k onto PresetMP3_32k to match the seed and parser.
@revtex revtex merged commit 2622909 into dev Apr 25, 2026
7 checks passed
@revtex revtex deleted the fix/admin-options-active-badge-mp3-default branch April 25, 2026 16:29
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.

1 participant