Skip to content

Commit 71dacde

Browse files
piwi3910claude
andcommitted
feat(settings): mount full SettingsScreen with all 12 panels (DCC-D1)
- add get_app_data_dir tauri command returning the app data directory path - mount SettingsScreen with Account, Appearance, Editor, Sync, Notifications, Plugins, ApiKeys, Agents, Hotkeys, Privacy, Advanced, Diagnostics panels - wire HotkeysPanel with current CmdOrCtrl+Shift+K binding and reset handlers - wire AdvancedPanel onShowLogs to reveal app data dir via Tauri shell/finder - wire PrivacyPanel dataDir from get_app_data_dir; onExportData opens dir - wire ApiKeysPanel to /api/api-keys endpoints (mint + revoke) - wire PluginsPanel to /api/plugins/* (toggle enable/disable, install by url) - wire SyncPanel to adapter.triggerSync(); show server url and last sync time - wire DiagnosticsPanel onCopyReport to navigator.clipboard - add Settings button in AppShell header alongside existing Plugins/Agents buttons - standalone Agents/Plugins buttons kept for quick access; AgentsPanel also present inside SettingsScreen under the Agents tab Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 80ca57a commit 71dacde

2 files changed

Lines changed: 436 additions & 4 deletions

File tree

src-tauri/src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@ async fn update_jumplist(
142142
Ok(())
143143
}
144144

145+
// --- App data directory ---
146+
147+
#[tauri::command]
148+
async fn get_app_data_dir(app: tauri::AppHandle) -> Result<String, String> {
149+
use tauri::Manager;
150+
app.path()
151+
.app_data_dir()
152+
.map(|p| p.to_string_lossy().into_owned())
153+
.map_err(|e| e.to_string())
154+
}
155+
145156
#[cfg_attr(mobile, tauri::mobile_entry_point)]
146157
pub fn run() {
147158
tauri::Builder::default()
@@ -203,6 +214,8 @@ pub fn run() {
203214
win_search_upsert_note,
204215
win_search_remove_note,
205216
update_jumplist,
217+
// Phase D: app data dir for settings panels
218+
get_app_data_dir,
206219
])
207220
.run(tauri::generate_context!())
208221
.expect("error while running tauri application");

0 commit comments

Comments
 (0)