diff options
| author | Adam Malczewski <[email protected]> | 2026-03-24 13:18:50 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-03-24 13:18:50 +0900 |
| commit | bb543c3f7840f2a3fa1b7a1fb32245fa87a30f7b (patch) | |
| tree | d2a9db2741dfd9822c5f76dca278562220e9b064 /.rules/changelog/2026-03/24 | |
| parent | e5583b836d4fe2f7f9806ed85a190254a6ea3990 (diff) | |
| download | ai-pulse-obsidian-plugin-bb543c3f7840f2a3fa1b7a1fb32245fa87a30f7b.tar.gz ai-pulse-obsidian-plugin-bb543c3f7840f2a3fa1b7a1fb32245fa87a30f7b.zip | |
initial prototype
Diffstat (limited to '.rules/changelog/2026-03/24')
| -rw-r--r-- | .rules/changelog/2026-03/24/05.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.rules/changelog/2026-03/24/05.md b/.rules/changelog/2026-03/24/05.md new file mode 100644 index 0000000..7970687 --- /dev/null +++ b/.rules/changelog/2026-03/24/05.md @@ -0,0 +1,35 @@ +# Changelog — 2026-03-24 #05 + +## Settings moved from sidebar panel to modal + +### Changes + +- **New file: `src/settings-modal.ts`** + - Created `SettingsModal` class extending Obsidian `Modal` + - Contains Ollama URL, Connect button, and Model dropdown settings + - Reads shared connection state from the plugin instance + - Helper method `populateModelDropdown()` for reusable dropdown population + +- **`src/chat-view.ts`** + - Removed inline settings panel from bottom of chat sidebar + - Added a gear (⚙) settings button next to the Send button in the input row + - Clicking the gear button opens the `SettingsModal` + - Auto-connects to Ollama when the chat view opens via `plugin.connect()` + - Removed unused imports (`Setting`, `testConnection`, `listModels`) + - Added imports for `setIcon` and `SettingsModal` + +- **`src/main.ts`** + - Added runtime connection state fields: `connectionStatus`, `connectionMessage`, `availableModels` + - Added `connect()` method that tests connection, fetches available models, and stores results + - Added `testConnection` and `listModels` imports + +- **`styles.css`** + - Removed `.ai-organizer-settings-panel` styles + - Added `.ai-organizer-input-buttons` vertical button group layout + - Added `.ai-organizer-settings-btn` with transparent background and hover state + +### Summary + +- "Test Connection" renamed to "Connect" +- Settings are now in a modal opened via a gear button in the sidebar input row +- Auto-connect runs when the chat view opens, pre-populating models for the settings modal |
