- sink_volume and source_volume knobs now show a dropdown of active
PulseAudio/PipeWire output/input devices (monitors excluded), with
the system-default device marked in the label
- app_volume knob shows a dropdown of running apps (was already a
dropdown, previously had a textarea for group_volume)
- group_volume knob shows a <select multiple> listbox so several apps
can be selected at once with ctrl/shift-click
- Add GET /api/sinks and GET /api/sources backend endpoints
- Add fetchSinks() / fetchSources() in api.ts with AudioDevice type
- Load sinks and sources in App.tsx alongside running apps on refresh
- All 23 frontend tests pass
Set up Vitest (jsdom environment) and @testing-library/react.
api.test.ts — fetchRunningApps:
- returns parsed JSON on 2xx
- returns [] on non-ok HTTP status
- returns [] on network error (non-throwing contract)
KnobCard.test.tsx — app_volume:
- datalist is rendered with all supplied runningApps as options
- no datalist / list attr when runningApps is empty or omitted
- onChange called with the new value on input change
KnobCard.test.tsx — group_volume:
- app-picker select rendered with runningApps options
- no picker when runningApps is empty or omitted
- Add button disabled until an app is selected
- Add button enabled after selection
- clicking Add appends app to targets
- clicking Add skips duplicates (onChange not called)
- picker resets to placeholder after a successful Add
- Add GET /api/apps endpoint that queries pulsectl for active sink inputs
and returns deduplicated app names (application.name + process.binary)
- Add fetchRunningApps() API helper (returns [] on any failure, non-fatal)
- Fetch running apps on page load; expose a Refresh button in the Knobs
section header to re-query without a full page reload
- KnobCard app_volume: wire target input to an HTML5 <datalist> so the
browser shows a native autocomplete dropdown of running apps
- KnobCard group_volume: add a select + Add button beneath the textarea so
users can pick a running app and append it without typing
- CSS: style the app-picker row and the compact refresh button in h2
- FastAPI + uvicorn server (turnup-ui) serving config API and static files
- React + TypeScript frontend: connection, global LEDs, per-knob/button
cards, preset save/load/apply, toast notifications, dark theme
- Vite builds into src/turnup/ui/static/ so no Node.js needed at install time
- PWA assets (manifest, service worker, icon) in ui/public/
- turnup-ui.service systemd user unit; enabled globally via turnupd.install
- PKGBUILD: add python-fastapi + python-uvicorn deps, install UI service file
- pyproject.toml: ui extras group, turnup-ui entry point