fix(web): restore secondary navigation routes
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 19s
CD Pipeline / build-and-deploy (push) Successful in 3m40s
CD Pipeline / post-deploy-checks (push) Successful in 1m20s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 19s
CD Pipeline / build-and-deploy (push) Successful in 3m40s
CD Pipeline / post-deploy-checks (push) Successful in 1m20s
This commit is contained in:
27
apps/web/src/lib/__tests__/product-ia.test.ts
Normal file
27
apps/web/src/lib/__tests__/product-ia.test.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { PRODUCT_NAV_SECTIONS } from '../navigation/product-ia'
|
||||
|
||||
const navIds = PRODUCT_NAV_SECTIONS.flatMap(section => section.items.map(item => item.id))
|
||||
|
||||
describe('product IA navigation', () => {
|
||||
it('keeps secondary operational routes visible in the canonical nav map', () => {
|
||||
expect(navIds).toEqual(expect.arrayContaining([
|
||||
'awooop-runs',
|
||||
'awooop-approvals',
|
||||
'awooop-contracts',
|
||||
'alerts',
|
||||
'reports',
|
||||
'terminal',
|
||||
'classic',
|
||||
]))
|
||||
})
|
||||
|
||||
it('keeps IwoooS related security routes integrated instead of removing them', () => {
|
||||
expect(navIds).toEqual(expect.arrayContaining([
|
||||
'iwooos-security',
|
||||
'iwooos-security-compliance',
|
||||
'governance-security',
|
||||
]))
|
||||
})
|
||||
})
|
||||
@@ -134,8 +134,21 @@ export const PRODUCT_NAV_SECTIONS: ProductNavSection[] = [
|
||||
href: '/iwooos',
|
||||
labelKey: 'iwooos',
|
||||
Icon: ShieldCheck,
|
||||
aliases: ['/security-compliance'],
|
||||
relatedPaths: ['/security', '/compliance', '/governance'],
|
||||
},
|
||||
{
|
||||
id: 'iwooos-security-compliance',
|
||||
href: '/security-compliance',
|
||||
labelKey: 'iwooosSecurityCompliance',
|
||||
Icon: ShieldCheck,
|
||||
aliases: ['/security', '/compliance'],
|
||||
surface: 'secondary',
|
||||
},
|
||||
{
|
||||
id: 'governance-security',
|
||||
href: '/governance',
|
||||
labelKey: 'governanceSecurity',
|
||||
Icon: Radar,
|
||||
surface: 'secondary',
|
||||
},
|
||||
{
|
||||
id: 'operations',
|
||||
|
||||
Reference in New Issue
Block a user