Skip to content

Commit 808e833

Browse files
doublegateclaude
andcommitted
fix(clients): resolve Tauri 2.0 configuration and build issues
wraith-chat fixes: - Fix Tauri 2.0 plugin initialization error by removing invalid plugin configs from tauri.conf.json and adding capabilities/default.json - Fix SQLCipher database key persistence by adding proper keyring features (sync-secret-service, crypto-rust) for Linux Secret Service - Add database key mismatch detection with automatic backup recovery - Add KDE Wayland workaround for Error 71 (EPROTO) - Fix TypeScript unused import errors in frontend components - Add missing tsconfig.node.json for Vite build - Update Tauri plugin dependencies to v2.6.0 for compatibility wraith-sync fixes: - Fix Tauri 2.0 plugin initialization error (same as wraith-chat) - Add KDE Wayland workaround for Error 71 Both clients now build and run correctly on Linux with KDE Plasma. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e63c2c8 commit 808e833

File tree

19 files changed

+311
-54
lines changed

19 files changed

+311
-54
lines changed
Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
<\!DOCTYPE html><html><body>Placeholder</body></html>
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>WRAITH Chat</title>
7+
<script type="module" crossorigin src="/assets/index-BQjXt0nW.js"></script>
8+
<link rel="stylesheet" crossorigin href="/assets/index-BrCg67_n.css">
9+
</head>
10+
<body>
11+
<div id="root"></div>
12+
</body>
13+
</html>

clients/wraith-chat/frontend/src/App.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Main App Component
22

3-
import React, { useEffect, useState } from 'react';
3+
import { useEffect, useState } from 'react';
44
import { useConversationStore } from './stores/conversationStore';
5-
import { useMessageStore } from './stores/messageStore';
65
import { useContactStore } from './stores/contactStore';
76
import { useNodeStore } from './stores/nodeStore';
87
import ConversationList from './components/ConversationList';

clients/wraith-chat/frontend/src/components/ConversationList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Conversation List Component
22

3-
import React from 'react';
43
import { useConversationStore } from '../stores/conversationStore';
54
import { formatDistanceToNow } from 'date-fns';
65

clients/wraith-chat/frontend/src/components/GroupSettings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Group Settings Component - Sprint 17.7
22

3-
import React, { useEffect, useState, useCallback } from 'react';
3+
import { useEffect, useState } from 'react';
44
import {
55
useGroupStore,
66
formatMemberCount,

clients/wraith-chat/frontend/src/components/MessageBubble.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Message Bubble Component
22

3-
import React from 'react';
43
import type { Message } from '../types';
54
import { format } from 'date-fns';
65

clients/wraith-chat/frontend/src/components/VoiceCall.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
// Voice Call Component - Sprint 17.5
22

3-
import React, { useEffect, useState, useCallback } from 'react';
3+
import { useEffect, useState, useCallback } from 'react';
44
import {
55
useCallStore,
66
formatCallDuration,
77
getCallStateText,
88
type CallInfo,
9-
type CallState,
109
} from '../stores/callStore';
1110

1211
interface VoiceCallProps {
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"skipLibCheck": true,
5+
"module": "ESNext",
6+
"moduleResolution": "bundler",
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
9+
},
10+
"include": ["vite.config.ts"]
11+
}

clients/wraith-chat/src-tauri/Cargo.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ path = "src/main.rs"
1616

1717
[dependencies]
1818
# Tauri 2.0
19-
tauri = "2.0"
20-
tauri-plugin-dialog = "2.0"
21-
tauri-plugin-fs = "2.0"
22-
tauri-plugin-shell = "2.0"
23-
tauri-plugin-log = "2.0"
24-
tauri-plugin-notification = "2.0"
19+
tauri = { version = "2", features = [] }
20+
tauri-plugin-dialog = "2"
21+
tauri-plugin-fs = "2"
22+
tauri-plugin-shell = "2"
23+
tauri-plugin-log = "2"
24+
tauri-plugin-notification = "2"
2525

2626
# WRAITH Protocol
2727
wraith-core = { path = "../../../crates/wraith-core" }
@@ -63,7 +63,9 @@ chrono = "0.4"
6363
uuid = { version = "1", features = ["v4"] }
6464

6565
# Secure key storage (cross-platform keyring)
66-
keyring = "3"
66+
# sync-secret-service: Uses D-Bus Secret Service API (libsecret/GNOME Keyring)
67+
# crypto-rust: Pure Rust crypto for secret encryption over D-Bus
68+
keyring = { version = "3", features = ["sync-secret-service", "crypto-rust"] }
6769

6870
# Voice Calling (Sprint 17.5)
6971
audiopus = "0.3.0-rc.0"
@@ -85,4 +87,4 @@ default = ["custom-protocol"]
8587
custom-protocol = ["tauri/custom-protocol"]
8688

8789
[build-dependencies]
88-
tauri-build = { version = "2.0", features = [] }
90+
tauri-build = { version = "2", features = [] }
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "../gen/schemas/desktop-schema.json",
3+
"identifier": "default",
4+
"description": "enables the default permissions for WRAITH Chat",
5+
"windows": [
6+
"main"
7+
],
8+
"permissions": [
9+
"core:default",
10+
"dialog:default",
11+
"dialog:allow-open",
12+
"dialog:allow-save",
13+
"dialog:allow-message",
14+
"dialog:allow-ask",
15+
"fs:default",
16+
"fs:allow-read-dir",
17+
"fs:allow-read-file",
18+
"fs:allow-write-file",
19+
"shell:default",
20+
"shell:allow-open",
21+
"notification:default",
22+
"notification:allow-notify"
23+
]
24+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{"default":{"identifier":"default","description":"enables the default permissions for WRAITH Chat","local":true,"windows":["main"],"permissions":["core:default","dialog:default","dialog:allow-open","dialog:allow-save","dialog:allow-message","dialog:allow-ask","fs:default","fs:allow-read-dir","fs:allow-read-file","fs:allow-write-file","shell:default","shell:allow-open","notification:default","notification:allow-notify"]}}

0 commit comments

Comments
 (0)