# Feature Parity: Browser SPA → SSR ## Source of truth: browser/index.ts features | # | Feature | Browser impl | SSR plan | 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 `