Commit 50bce471 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Add /roadmap: the engineering status audit, viewable in-app

Ports the published roadmap (full feature-by-feature audit: what's
functional, what's built but unreachable, and the two active security
gaps in /remix and the Rooms websocket) into the app itself at
/roadmap, gated behind super_admin like the Admin panel - it names
specific active vulnerabilities in detail, so it isn't something to
leave reachable by a plain logged-in user. Linked from the header
alongside Business/Admin.
Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent be345ade
Pipeline #1079 canceled with stage
import { render, screen } from '@testing-library/react'
import { MemoryRouter } from 'react-router-dom'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { Roadmap } from './Roadmap'
import { AuthProvider } from '../context/AuthContext'
import { PlayerProvider } from '../context/PlayerContext'
// Role gating itself (redirect-to-login, access-denied) is covered generically by
// RequireRole.test.tsx - this just checks the page's own content renders once past that gate.
describe('Roadmap', () => {
beforeEach(() => {
vi.stubEnv('VITE_DEV_ACCESS_TOKEN', '')
vi.stubEnv('VITE_DEV_REFRESH_TOKEN', '')
})
afterEach(() => {
vi.unstubAllEnvs()
vi.restoreAllMocks()
})
it('renders the critical security issues and feature inventory', () => {
render(
<MemoryRouter>
<AuthProvider>
<PlayerProvider>
<Roadmap />
</PlayerProvider>
</AuthProvider>
</MemoryRouter>,
)
expect(screen.getByText('/remix has no authentication at all')).toBeInTheDocument()
expect(screen.getByText('Room WebSocket trusts an unauthenticated user_id')).toBeInTheDocument()
// "Soundmarks"/"Remix" also appear in the page nav, so scope to feature-card-only text.
expect(screen.getByText('Location-tied anthems, three tiers')).toBeInTheDocument()
expect(screen.getByText('Stems, key/BPM detect, AI arrangement')).toBeInTheDocument()
expect(screen.getByText('Now')).toBeInTheDocument()
expect(screen.getByText('Next')).toBeInTheDocument()
expect(screen.getByText('Ideas')).toBeInTheDocument()
})
})
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment