summaryrefslogtreecommitdiffhomepage
path: root/.rules
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-24 14:52:40 +0900
committerAdam Malczewski <[email protected]>2026-03-24 14:52:40 +0900
commit4e43498aec88c3f974fd179bef9e81d1cef63e9c (patch)
tree7b73e6f54cf3ecffa087f89aeb78ccb9414e7581 /.rules
parentc34eca01c8fc8bc8ff6a14d0c48a9c2323daf915 (diff)
downloadai-pulse-obsidian-plugin-4e43498aec88c3f974fd179bef9e81d1cef63e9c.tar.gz
ai-pulse-obsidian-plugin-4e43498aec88c3f974fd179bef9e81d1cef63e9c.zip
Fix mobile load error, add FAB and collapse UI
Diffstat (limited to '.rules')
-rw-r--r--.rules/changelog/2026-03/24/09.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/.rules/changelog/2026-03/24/09.md b/.rules/changelog/2026-03/24/09.md
new file mode 100644
index 0000000..e9a39b3
--- /dev/null
+++ b/.rules/changelog/2026-03/24/09.md
@@ -0,0 +1,34 @@
+# Changelog — 2026-03-24 #09
+
+## Mobile "Load failed" Fix
+
+- **`src/ollama-client.ts`**: Imported `Platform` from Obsidian for runtime mobile detection.
+- Split `sendChatMessageStreaming` into three functions:
+ - `sendChatMessageStreaming()` — dispatcher that checks `Platform.isMobile`
+ - `sendChatMessageStreamingMobile()` — uses `requestUrl()` (non-streaming) to bypass WebView sandbox restrictions on mobile
+ - `sendChatMessageStreamingDesktop()` — preserves native `fetch()` for real token-by-token streaming on desktop
+- Enhanced error messages in `testConnection()` and the mobile chat path with mobile-specific hints (e.g., "use your computer's LAN IP instead of localhost").
+- Added `"load failed"` to the list of caught network error patterns.
+
+## UI: DaisyUI-inspired Collapse for Tool Call Details
+
+- **`src/chat-view.ts`**: Replaced native `<details>/<summary>` in `appendToolCall` with a checkbox-driven CSS grid collapse.
+- **`styles.css`**: Added `.ai-organizer-collapse` styles using `grid-template-rows: 0fr → 1fr` transition with a rotating arrow indicator, inspired by DaisyUI's collapse component.
+
+## UI: FAB / Speed Dial
+
+- **`src/chat-view.ts`**: Removed Settings and Tools buttons from the input row. Added a floating action button (FAB) in the top-right of the messages area.
+ - Main trigger: gear icon, rotates 90° on open.
+ - Actions fan downward with staggered scale/opacity animations.
+ - Three actions: **AI Settings** (sliders icon), **Tools** (wrench icon), **Clear Chat** (trash icon).
+ - Clicking an action opens the modal/clears chat and blurs focus to auto-close the FAB.
+- **`styles.css`**: Added FAB positioning, animation, label, and action button styles using Obsidian CSS variables.
+
+## UI: Settings Modal Rename
+
+- **`src/settings-modal.ts`**: Changed modal title from "AI Organizer Settings" to "AI Settings".
+
+## Removed
+
+- Removed the `.ai-organizer-tools-active` accent styling from the tools FAB button.
+- Removed the old inline `.ai-organizer-input-buttons`, `.ai-organizer-settings-btn`, and `.ai-organizer-tools-btn` styles.