Repository navigation
Show at once what switching to a conversation does - #604
Open
thiblahute wants to merge 1 commit into
Open
thiblahute wants to merge 1 commit into
thiblahute wants to merge 1 commit into
Conversation
Going to a pane in a tab of several panes this browser has no geometry for showed nothing until Herdr sent the tab's layout: the pane gone to now fills the tab alone until the split arrives. A pane's chat loading its first messages fills the pane, its message box at the bottom, instead of a small box at the top. One showing what it had last draws a thin moving line across its top until its first read since the switch answers. Its header names it at once: the session's title, else the workspace, dimmed, until the title is read. A plugin popup (Herdr Float) shows its frame as soon as its key is pressed, "Opening…" until Herdr has opened it, and goes as soon as it is asked to close, its keys back where they were, while Herdr closes it; either move ends with Herdr's answer, an error or 5 seconds. Its code is fetched once the page is idle, so the first popup does not wait for it. The initial JS budget goes from 833 to 834 KiB (833.1 KiB with this).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Show at once what going to a pane, a pane's chat or a plugin popup does, instead of nothing until Herdr answers.
Why
Three switches left the page blank or unchanged until Herdr answered:
What changed
tabLayout.ts,store.ts: without cached geometry, the pane gone to fills the tab alone until the split arrives.AgentHistoryDrawer.tsx,AgentHistoryDrawer.css: a pane's chat loading its first messages fills the pane, its message box at the bottom. One showing what it had last draws a thin moving line across its top until its first read since the switch answers (static with reduced motion). The header names the workspace, dimmed, until the session's title is read.store.ts(popupMoving),App.tsx,PopupOverlay.tsx,base.css: a popup shows its frame, "Opening…", as soon as its key is pressed, and goes as soon as it is asked to close, its keys back where they were. Either move ends with Herdr's popup push, the action failing, or 5 seconds. The popup's code is fetched once the page is idle, so the first popup does not wait for it.FEATURES.md: the chat's loading and catching-up states.scripts/check-web-assets.mjs: the initial JS budget goes from 833 to 834 KiB (833.1 KiB with this change).Verification
bun test web/src/tabLayout.test.ts web/src/browserNavigation.test.ts web/src/store.test.ts: new tests "a tab of several panes with no geometry shows the pane gone to alone" and "plugin popup moves"; the browser navigation test now expects the pane gone to alone instead of no layout. All fail onmain.bun run format:check,bun run lint(only the existingTerminalView.tsxwarning),bun run typecheck:bun,bun run build:web,bun run test:quickwith an isolatedHOME/TMPDIR.Manual checks