Skip to content

AI chatbar improvements#97

Merged
boehlerlukas merged 5 commits intomasterfrom
imp/default-font
Mar 18, 2026
Merged

AI chatbar improvements#97
boehlerlukas merged 5 commits intomasterfrom
imp/default-font

Conversation

@floooat
Copy link
Copy Markdown
Contributor

@floooat floooat commented Mar 18, 2026

  • default font (gleap standard)
  • part definitions for css overwrites inside shadow tree
  • fit chatbar to content width

Copilot AI review requested due to automatic review settings March 18, 2026 13:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the AI chatbar UI styling/behavior to better align with Gleap’s standard font and to adjust how the chatbar/input sizes within the shadow DOM.

Changes:

  • Apply Gleap’s standard font styling within the AI chatbar shadow DOM (via gleap-font).
  • Adjust the AI input sizing behavior (attempting to better fit content width).
  • Update the demo configuration (URLs formatting + new SDK key).

Reviewed changes

Copilot reviewed 2 out of 12 changed files in this pull request and generated 4 comments.

File Description
src/GleapAiChatbarManager.js Adds shadow-DOM font baseline and tweaks input sizing rules for the AI chatbar UI.
demo/main.js Reformats demo setup and changes the hardcoded SDK key.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines 656 to 661
// Create the main container div inside shadow DOM
this.innerContainer = document.createElement('div');
this.innerContainer.className = 'gleap-ai-ui-container' + extraClasses;
this.innerContainer.className = 'gleap-font gleap-ai-ui-container' + extraClasses;
this.innerContainer.setAttribute('part', 'container');

// Create the HTML structure inside shadow DOM
Comment on lines +3 to +13
Gleap.setFrameUrl('http://0.0.0.0:3001');
Gleap.setApiUrl('http://0.0.0.0:9000');
Gleap.setWSApiUrl('ws://0.0.0.0:9000');

//Gleap.disableQueryParams(true);

Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV");
Gleap.initialize('ody3fTXIIbWfipYNLCeCxJBizXVVaX9J');

Gleap.on("tool-execution", (tool) => {
console.log(tool);
}); No newline at end of file
Gleap.on('tool-execution', (tool) => {
console.log(tool);
});
outline: none;
box-sizing: border-box;
field-sizing: content;
max-width: 40vw;
floooat and others added 2 commits March 18, 2026 14:22
# Conflicts:
#	build/browser/index.js
#	build/browser/index.js.map
#	build/cjs/index.js
#	build/cjs/index.js.map
#	build/esm/index.mjs
#	build/esm/index.mjs.map
#	published/latest/index.js
#	published/latest/index.js.map
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@boehlerlukas boehlerlukas merged commit bdb5bde into master Mar 18, 2026
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.

3 participants