Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: drop Security Camera instructions card and relabel device control as Devices (#13013) (#13081)

[._.]/4abb30e0250f
diff --git a/client/src/pages/Security.jsx b/client/src/pages/Security.jsx
index a66c83da1a..fc2f058e3c 100644
--- a/client/src/pages/Security.jsx
+++ b/client/src/pages/Security.jsx
@@ -367,6 +367,7 @@ export default function Security() {
actions={<>
<button
onClick={() => setShowSettings(s => !s)}
+ aria-expanded={showSettings}
className={`flex items-center gap-2 px-3 py-1.5 text-sm rounded-lg transition-colors ${
showSettings
? 'bg-port-accent text-white'
@@ -374,7 +375,7 @@ export default function Security() {
}`}
>
<Settings size={16} />
- <span className="max-sm:sr-only">Settings</span>
+ <span className="max-sm:sr-only">Devices</span>
</button>
</>}
/>
@@ -633,17 +634,6 @@ export default function Security() {
</div>
</div>
</div>
-
- {/* Instructions */}
- <div className="bg-port-card border border-port-border rounded-xl p-4">
- <h3 className="font-semibold text-white mb-3">Instructions</h3>
- <ul className="space-y-2 text-sm text-gray-400">
- <li>1. Click &quot;Start Media&quot; to stream from server</li>
- <li>2. Video and audio stream from the PortOS server</li>
- <li>3. Use controls to toggle camera/mic</li>
- <li>4. Select different devices in Settings</li>
- </ul>
- </div>
</div>
</div>
</div>
diff --git a/client/src/pages/Security.test.jsx b/client/src/pages/Security.test.jsx
index c69791db5d..1c910b3900 100644
--- a/client/src/pages/Security.test.jsx
+++ b/client/src/pages/Security.test.jsx
@@ -78,11 +78,12 @@ describe('Security monitor iOS audio session', () => {
vi.unstubAllGlobals();
});
- it('renders its title and settings control in the shared page header', async () => {
+ it('renders its title and devices control in the shared page header', async () => {
render(<Security />);
await act(async () => {});
expect(screen.getByRole('heading', { level: 1, name: 'Security Camera' })).toBeInTheDocument();
- expect(screen.getByRole('button', { name: 'Settings' })).toBeInTheDocument();
+ expect(screen.getByRole('button', { name: 'Devices' })).toBeInTheDocument();
+ expect(screen.queryByText('Instructions')).toBeNull();
});
it('claims playback once the monitor graph is live', async () => {
@@ -233,7 +234,10 @@ describe('Security monitor toggle posts the new flag value', () => {
const api = (await import('../services/api')).default;
render(<Security />);
await act(async () => {});
- fireEvent.click(screen.getByRole('button', { name: /Settings/i }));
+ const devicesButton = screen.getByRole('button', { name: 'Devices' });
+ expect(devicesButton.getAttribute('aria-expanded')).toBe('false');
+ fireEvent.click(devicesButton);
+ expect(devicesButton.getAttribute('aria-expanded')).toBe('true');
expect(screen.getByRole('option', { name: 'Camera 1' })).toBeTruthy();
api.get.mockResolvedValueOnce({ video: [{ id: '2', name: 'Example replacement camera' }], audio: [] });
fireEvent.click(screen.getByRole('button', { name: /Refresh devices/i }));