blob: e9a39b3d9ba59fcd44a7c43a87b03b67f83c1a2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.
|