[PR #11] feat: add top-bar chat completion preset toggle #11

Open
opened 2026-10-15 13:27:24 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SillyTavern/Extension-TopInfoBar/pull/11
Author: @GentleBurr
Created: 4/12/2026
Status: 🔄 Open

Base: main ← Head: preset-profile-toggle


📝 Commits (1)

  • a608b53 feat: add top-bar chat completion preset toggle

📊 Changes

2 files changed (+96 additions, -3 deletions)

View changed files

📝 index.js (+85 -0)
📝 style.css (+11 -3)

📄 Description

This update introduces a new toggleable panel in the top bar for quick access to Chat Completion Presets, complementing the existing connection profiles UI.

Key implementations:

  • New Preset Panel: Added a fa-sliders icon toggle that opens a dedicated dropdown targeting #settings_preset_openai, allowing users to switch presets directly from the chat view.
  • Native Synchronization: Implemented two-way event listeners and a MutationObserver to ensure the top-bar dropdown stays perfectly in sync with the native settings menu (handling dynamic additions/removals of presets).
  • Linked Preset Support: Added a 150ms execution delay to the connection profile change listener. This ensures the top-bar preset display accurately updates when SillyTavern silently applies a preset linked to a specific API connection.
  • UI/CSS Stacking Polish: Refactored the CSS to share properties between the connection and preset panels, and implemented a CSS :has() selector to dynamically flatten the connection panel's bottom border-radius when both dropdowns are stacked open.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SillyTavern/Extension-TopInfoBar/pull/11 **Author:** [@GentleBurr](https://github.com/GentleBurr) **Created:** 4/12/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `preset-profile-toggle` --- ### 📝 Commits (1) - [`a608b53`](https://github.com/SillyTavern/Extension-TopInfoBar/commit/a608b53c6429cf4d758b5d4bb2c564d8e5bf2c83) feat: add top-bar chat completion preset toggle ### 📊 Changes **2 files changed** (+96 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `index.js` (+85 -0) 📝 `style.css` (+11 -3) </details> ### 📄 Description This update introduces a new toggleable panel in the top bar for quick access to Chat Completion Presets, complementing the existing connection profiles UI. Key implementations: * New Preset Panel: Added a fa-sliders icon toggle that opens a dedicated dropdown targeting #settings_preset_openai, allowing users to switch presets directly from the chat view. * Native Synchronization: Implemented two-way event listeners and a MutationObserver to ensure the top-bar dropdown stays perfectly in sync with the native settings menu (handling dynamic additions/removals of presets). * Linked Preset Support: Added a 150ms execution delay to the connection profile change listener. This ensures the top-bar preset display accurately updates when SillyTavern silently applies a preset linked to a specific API connection. * UI/CSS Stacking Polish: Refactored the CSS to share properties between the connection and preset panels, and implemented a CSS :has() selector to dynamically flatten the connection panel's bottom border-radius when both dropdowns are stacked open. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
SillyTavern/Extension-TopInfoBar#11
No description provided.