Skip to content

Add auto focus on demos#30

Merged
to-be-coder merged 11 commits intomainfrom
add-auto-focus-on-demos
Mar 24, 2026
Merged

Add auto focus on demos#30
to-be-coder merged 11 commits intomainfrom
add-auto-focus-on-demos

Conversation

@to-be-coder
Copy link
Copy Markdown
Collaborator

No description provided.

to-be-coder and others added 6 commits March 20, 2026 15:39
The <input> intrinsic requires the native RenderLib which isn't available
in unit tests. Tests use mockUseKeyboard for keyboard simulation, so
focus={false} prevents <input> from rendering while the useKeyboard
fallback handles character input. Also adds focus prop to ChatPanel
for pass-through, and restores the full keyboard fallback in useKeyboard
handler when not focused.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ensure all PromptInput and ChatPanel test usages pass focus={false}
to prevent <input> intrinsic from rendering in unit test env.
Delete stale snapshots to allow regeneration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
to-be-coder and others added 2 commits March 20, 2026 22:14
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cjroth cjroth temporarily deployed to add-auto-focus-on-demos - website PR #30 March 21, 2026 02:22 — with Render Destroyed
@cjroth cjroth temporarily deployed to add-auto-focus-on-demos - website PR #30 March 24, 2026 15:54 — with Render Destroyed
@to-be-coder to-be-coder merged commit 5329892 into main Mar 24, 2026
2 checks passed
@to-be-coder to-be-coder deleted the add-auto-focus-on-demos branch March 24, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants