Repository navigation
move user prompt above chatbox - #184
Merged
Merged
Conversation
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-cutting UI change spans layout, scrolling, focus restoration, chat switching, reloads, and mobile behavior, requiring browser-level validation to confirm their interactions.
No open issues 🎉
What changed in this PR
Moves interactive clarification and publishing prompts into a persistent dock above the composer while preserving their position in conversation history.
Changes:
- Adds dock layout, scrolling, lifecycle, and chat-switch handling.
- Docks clarification, publish, address-change, and custom-domain cards while they await user action.
- Adds restoration, styling, focus handling, regression tests, and mini-DOM support.
| File | Description |
|---|---|
| src/tools/chat_ui/publish.js | Docks publish-related cards and restores them to conversation history when settled. |
| src/tools/chat_ui/domain.js | Shows custom-domain prompts in the dock. |
| src/tools/chat_ui/clarify.js | Places clarification questions in the dock and appends their recap to the transcript. |
| src/tools/chat_ui/address.js | Places site-address change prompts in the dock. |
| src/js/ui.js | Adds the dock container to the chat layout. |
| src/js/helpers.js | Implements shared ChatDock behavior and scroll pinning. |
| src/js/app.js | Handles dock cleanup and restoration, chat transitions, sent-message dismissal, and deferred suggestions. |
| src/css/styles.css | Styles the dock, card headers, close controls, responsive sizing, and dark mode. |
| scripts/test-publish-card.mjs | Adds tests for docking, dismissal, reload restoration, replacement, and settling behavior. |
| scripts/lib/mini-dom.mjs | Adds DOM operations required by the card movement tests. |
Review effort: Lite
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.
clarifying question

publish using custom domain

publish to puter.site

change puter.site subdomain
