Make Website Scanner discoverable in sidebar nav.
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Deploy Recon was wired at /deploy-recon but buried at the bottom of a non-scrolling sidebar under an opaque label; move it after Crucible, rename to Website Scanner, enable nav scroll, and add route/nav smoke tests plus README.
This commit is contained in:
17
server/web/src/components/Layout/Layout.nav.test.ts
Normal file
17
server/web/src/components/Layout/Layout.nav.test.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { operatorNavItems } from './Layout';
|
||||
|
||||
describe('operator sidebar nav', () => {
|
||||
it('includes Website Scanner linking to /deploy-recon', () => {
|
||||
const item = operatorNavItems.find((i) => i.to === '/deploy-recon');
|
||||
expect(item).toBeDefined();
|
||||
expect(item!.label).toBe('Website Scanner');
|
||||
expect(item!.icon).toBe('recon');
|
||||
});
|
||||
|
||||
it('places Website Scanner directly after Crucible for discoverability', () => {
|
||||
const scannerIdx = operatorNavItems.findIndex((i) => i.to === '/deploy-recon');
|
||||
const crucibleIdx = operatorNavItems.findIndex((i) => i.to === '/crucible');
|
||||
expect(scannerIdx).toBe(crucibleIdx + 1);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user