Skip to content

move user prompt above chatbox - #184

Merged
reynaldichernando merged 1 commit into
mainfrom
move-prompt-above-chatbox
Nov 17, 2026
Merged

reynaldichernando merged 1 commit into
mainfrom
move-prompt-above-chatbox

Conversation

@reynaldichernando

Copy link
Copy Markdown
Member

clarifying question
image

publish using custom domain
image

publish to puter.site
image

change puter.site subdomain
image

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@reynaldichernando
reynaldichernando merged commit fe047b4 into main Nov 17, 2026
2 checks passed
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