Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions apps/ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1278,17 +1278,22 @@ export default function App() {
</div>

<div className="lg:col-span-8 flex flex-col">
<div className="bg-bg-surface-dark border border-border border-b-0 rounded-t-sm px-3 py-1.5 flex items-center justify-between">
<div className="flex items-center">
<span className={`w-2 h-2 rounded-full mr-2 ${isAnalyzing ? 'bg-accent animate-pulse' : audioUrl ? 'bg-success' : 'bg-border'}`}></span>
<h3 className="text-[10px] font-mono text-text-secondary uppercase tracking-wider">Signal Monitor</h3>
</div>
</div>

<div
{/* data-testid="signal-panel" lifted onto the DeviceRack so
the testid wraps the title strip (containing the
visible "Signal Monitor" text the
tests/smoke/error-states.spec.ts:524 selector
`signalPanel.getByText('Signal Monitor')` looks for).
The inner bg-bg-card div preserves the palette
contract the theme-shell smoke locks. */}
<DeviceRack
data-testid="signal-panel"
className="flex-grow bg-bg-card border border-border rounded-b-sm p-4 relative flex flex-col"
name="Signal Monitor"
status={isAnalyzing ? 'active' : audioUrl ? 'success' : 'idle'}
className="flex-grow flex flex-col"
>
<div
className="flex-grow bg-bg-card p-4 relative flex flex-col"
>
{audioUrl && audioFile ? (
<div className="flex flex-col relative z-10 gap-4">
<WaveformPlayer audioUrl={audioUrl} audioFile={audioFile} onAudioElement={handleAudioElement} />
Expand All @@ -1310,6 +1315,7 @@ export default function App() {
<IdleValuePropPanel />
)}
</div>
</DeviceRack>
</div>
</section>

Expand Down
2 changes: 1 addition & 1 deletion apps/ui/src/components/SpectrogramViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export function SpectrogramViewer({
onClick={() => setActiveKind(spec.kind)}
className={`px-2 py-0.5 text-[10px] font-mono uppercase tracking-wide rounded-sm transition-colors ${
spec.kind === activeKind
? 'bg-blue-500/20 text-blue-400 border border-blue-500/30'
? 'bg-accent/20 text-accent border border-accent/30'
: 'text-text-secondary hover:text-text-primary border border-transparent'
}`}
>
Expand Down
Loading