Add e2e test harness for testing editor logic without Gio display

- internal/test/e2e/: FrameCapture, Harness, ElementAssertions, helpers
- internal/editor/logic.go: Add done channel and Done() method for graceful shutdown
- internal/editor/mock_setup.go: Mock filesystem for tests
- internal/browser/: Browser layout and search logic
- internal/io/: Worker pool for async tasks
- Update architecture docs and spec
This commit is contained in:
gmp
2026-05-31 08:56:30 -04:00
parent a1ef84609f
commit 6a43e3c0db
34 changed files with 8514 additions and 286 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ func run(w *app.Window) error {
logic.DisplayLineChan() <- int(renderer.LastLineY())
// Send search query update to the logic goroutine when it changes.
// The logic goroutine handles filtering and triggers a new frame.
newQuery := logic.State().SearchEditor.Text()
if newQuery != logic.State().SearchQuery {
newQuery := logic.State().Browser.SearchEditor.Text()
if newQuery != logic.State().Browser.Query {
logic.SearchQueryChan() <- newQuery
}
if events := renderer.CheckGestures(e.Source, gtx.Metric); len(events) > 0 {