Replace JUST-OS iframe with native API chat client#702
Merged
LukasWallrich merged 2 commits intomasterfrom Mar 18, 2026
Merged
Conversation
Replace the iframe-based JUST-OS chatbot integration with a native chat client that communicates directly with the JUST-OS API at bot.just-os.org/chat. This resolves several UX issues with the iframe approach: conversation loss when switching between widget sizes, no control over styling, and hacky negative margins to hide the JUST-OS page header. Key changes: - New JS chat client (static/js/just-os-chat.js) that streams responses via newline-delimited JSON from the JUST-OS API - Two display modes: docked right panel (default, 1/3 width) and floating centered panel (pop-out, resizable via drag handle) - Session persistence via sessionStorage - conversation survives same-tab page navigations - Welcome message on first open - Bot responses rendered as HTML with inline citations shown as plain text and a collapsible reference list below each response - Copy-to-clipboard button on bot messages - New Chat button to reset conversation - Full-page mode on /just_os_chatbot/ page works independently Relates to #521 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
👍 All image files/references (if any) are in webp format, in line with our policy. |
Contributor
✅ Spell Check PassedNo spelling issues found when checking 3 changed file(s)! 🎉 |
Contributor
Author
|
✅ Staging Deployment Status This PR has been successfully deployed to staging as part of an aggregated deployment. Deployed at: 2026-03-17 16:58:40 UTC The staging site shows the combined state of all compatible open PRs. |
Contributor
Author
|
@richarddushime please review - happy to discuss tomorrow |
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
bot.just-os.org/chatsessionStorageso conversation survives same-tab page navigationsWhat changed
layouts/partials/chatbot.htmllayouts/shortcodes/just_os_chat.htmlstatic/js/just-os-chat.jsFeatures
chat_idArchitecture
JustOSChat) — no global state pollution beyond toggle functionsPOST https://bot.just-os.org/chatwith{ message, chat_id }, streams newline-delimited JSONinnerHTML(API returns HTML with citation links); user messages astextContentsessionStoragepersistence keyed byjust-os-chat-state#just-os-window) on all pages except/just_os_chatbot/; full-page mode (#just-os-fullpage) on the dedicated pageTest plan
/just_os_chatbot/): full-page mode works independentlyRelates to #521
🤖 Generated with Claude Code