From a53d629b6194d8d44f07eeb641de9eaadfb554ca Mon Sep 17 00:00:00 2001 From: Hibryda Date: Sun, 8 Mar 2026 01:58:05 +0100 Subject: [PATCH] docs: update meta files for dialog capability fix session --- CHANGELOG.md | 1 + docs/v3-progress.md | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a3b4fe..851ea95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Stub `pick_directory` Tauri command (replaced by `tauri-plugin-dialog` frontend API) ### Fixed +- Native directory picker not opening: added missing `"dialog:default"` permission to `v2/src-tauri/capabilities/default.json` — Tauri's IPC security layer silently blocked `invoke()` calls without this capability - Sidebar drawer not scaling to content width: removed leftover v2 grid layout on `#app` in `app.css` (`display: grid; grid-template-columns: var(--sidebar-width) 1fr` + media queries) that constrained `.app-shell` to 260px first column; v3 `.app-shell` manages its own flexbox layout internally - ContextPane.svelte CSS converted from px to rem: font-size, padding, margin, gap; added `white-space: nowrap` on `.ctx-header`/`.ctx-error` for intrinsic width measurement diff --git a/docs/v3-progress.md b/docs/v3-progress.md index 5372182..ae545e7 100644 --- a/docs/v3-progress.md +++ b/docs/v3-progress.md @@ -314,3 +314,6 @@ All editor themes map to the same `--ctp-*` CSS custom property names (26 vars). - [x] Added folder browse button (folder SVG icon) to: Default CWD, existing project CWD, Add Project path - [x] Styled `.input-with-browse` layout (flex row, themed browse button) - [x] Fixed nested input theme: `.setting-field .input-with-browse input` selector for dark background +- [x] Fixed dialog not opening: added `"dialog:default"` permission to `v2/src-tauri/capabilities/default.json` — Tauri IPC security blocked invoke() without capability +- [x] Verified via Playwright: error was `Cannot read properties of undefined (reading 'invoke')` in browser context (expected — Tauri IPC only exists in WebView), confirming code is correct +- [x] Clean rebuild required after capability changes (cached binary doesn't pick up new permissions)