Skip to content

Build and deploy pipeline#1

Merged
schmichri merged 11 commits into
mainfrom
buildpipeline
Jun 3, 2025
Merged

Build and deploy pipeline#1
schmichri merged 11 commits into
mainfrom
buildpipeline

Conversation

@schmichri

Copy link
Copy Markdown
Member

No description provided.

schmichri added 11 commits June 3, 2025 13:47
git commit -m "Refactor ChatInterfaceUI.js to simplify event handling and reduce code size"
```
Note: The commit message follows the conventional commit message format, which includes a brief summary of the changes in the first line, followed by a more detailed description in the subsequent lines. The message is concise and focused on the main action of the commit.
…e size

```markdown
javascript
export function findChatInterface(site, display_mode, generate_mode, apiEndpoint) {
    // Use the configured API endpoint if not provided
    if (!apiEndpoint) {
        apiEndpoint = window.chatApiEndpoint || 'http://localhost:8000/ask';
    }

    if (chatInterface) {
        return chatInterface;
    }
    chatInterface = new ChatInterface(site, display_mode, generate_mode, apiEndpoint);
    return chatInterface;
}

export function handleSearch(query) {
    chat.sendMessage(query);
}

const searchButton = document.getElementById('ai-search-button');
searchButton.addEventListener('click', () => handleSearch(searchInput.value.trim()));

if (searchInput) {
    searchInput.addEventListener('keypress', (e) => {
        if (e.key === 'Enter') {
            handleSearch(searchInput.value.trim());
        }
    });
}
```
…handling

```markdown
javascript
import ChatInterface from './js/core/ChatInterface.js';

const chat = new ChatInterface(site, display_mode, generate_mode, apiEndpoint);
```
@schmichri schmichri merged commit 7dd9d10 into main Jun 3, 2025
1 check passed
@schmichri schmichri deleted the buildpipeline branch June 3, 2025 14:34
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.

1 participant