# Feature Parity: Browser SPA → SSR ## Source of truth: current SSR features | # | Feature | Historical browser impl | Current SSR impl | Test strategy | | -- | --------------------------------- | --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | 1 | **File tree** | `FileTree` web-component with search, expand, git status colors, rename decorations | `@pierre/trees/ssr` `preloadFileTree` + `serializeFileTreeSsrPayload` | Unit: assert serialized HTML contains all paths, git status attributes, search input. E2E: Playwright clicks a file, asserts diff scrolls into view. | | 2 | **Diff rendering** | `FileDiff` web-component, split view, syntax highlight, hover highlight, line selection | `@pierre/diffs/ssr` `preloadPatchDiff` per file or `preloadMultiFileDiff` | Unit: assert `prerenderedHTML` contains changed lines, line numbers, syntax tokens. E2E: Playwright asserts split columns exist. | | 3 | **Line selection** | `onLineSelected` / `onGutterUtilityClick` / `onLineClick` / `onLineNumberClick` callbacks → floating form | Inline `
` below each diff file, or server-rendered ``; data attributes on lines for minimal JS targeting | Unit: POST `/finding` with line range → server stores finding. E2E: Playwright clicks line → form appears, fills, submits → finding visible in drawer. | | 4 | **Finding form** | Floating `
` with severity, category, comment, notes | Inline form or modal; POST to server | Unit: validation tests (existing `validateFinding` route). E2E: submit form → finding appears in findings list. | | 5 | **Findings list** | Drawer with numbered items, severity/category pills, remove button | Server-rendered findings panel; remove via POST or htmx | Unit: assert findings HTML renders pills. E2E: add finding → remove → count updates. | | 6 | **Review notes** | `