browser: document lazy loading implementation plan

- Add detailed §15 lazy loading plan with 7 implementation steps
- Update Phase 2 checklist with specific tasks
- Add E2E test harness for browser files
- Refactor browser layout and handler structure
- Add .gitignore for common patterns

WIP: Actual lazy loading not yet implemented.
This commit is contained in:
gmp
2026-05-31 18:43:46 +00:00
parent 6a43e3c0db
commit 3f1c881a06
8 changed files with 516 additions and 5 deletions
+6
View File
@@ -112,6 +112,12 @@ func SetBrowserState(s *BrowserState) {
currentBrowserState = s
}
// ComputeVisibleEntriesForTest is exported for testing purposes.
// It builds the list of ui.ListItem entries that should be rendered.
func ComputeVisibleEntriesForTest(state *BrowserState) []ui.ListItem {
return computeVisibleEntries(state)
}
// computeVisibleEntries builds the list of ui.ListItem entries that should be
// rendered based on the current scroll position and visible count.
func computeVisibleEntries(state *BrowserState) []ui.ListItem {