Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ tauri-plugin-autostart = "2.5"
tauri-plugin-clipboard-manager = "2.3"
tauri-plugin-deep-link = "2.4"
tauri-plugin-dialog = "2.3"
tauri-plugin-fs = "2.2"
tauri-plugin-http = { version = "2.5", features = ["unsafe-headers"] }
tauri-plugin-opener = "2.5"
tauri-plugin-os = "2.3"
Expand Down
3 changes: 2 additions & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@hypr/plugin-deeplink2": "workspace:*",
"@hypr/plugin-detect": "workspace:*",
"@hypr/plugin-extensions": "workspace:*",
"@hypr/plugin-flag": "workspace:*",
"@hypr/plugin-fs-db": "workspace:*",
"@hypr/plugin-fs-sync": "workspace:*",
"@hypr/plugin-fs2": "workspace:*",
Expand Down Expand Up @@ -72,7 +73,6 @@
"@hypr/plugin-tracing": "workspace:*",
"@hypr/plugin-updater2": "workspace:*",
"@hypr/plugin-windows": "workspace:*",
"@hypr/plugin-flag": "workspace:*",
"@hypr/store": "workspace:*",
"@hypr/tinybase-utils": "workspace:*",
"@hypr/tiptap": "workspace:^",
Expand All @@ -96,6 +96,7 @@
"@tauri-apps/plugin-autostart": "^2.5.1",
"@tauri-apps/plugin-deep-link": "^2.4.6",
"@tauri-apps/plugin-dialog": "^2.6.0",
"@tauri-apps/plugin-fs": "^2.4.5",
"@tauri-apps/plugin-http": "^2.5.6",
"@tauri-apps/plugin-opener": "^2.5.3",
"@tauri-apps/plugin-os": "^2.3.2",
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ tauri-plugin-detect = { workspace = true }
tauri-plugin-dialog = { workspace = true }
tauri-plugin-extensions = { workspace = true }
tauri-plugin-flag = { workspace = true }
tauri-plugin-fs = { workspace = true }
tauri-plugin-fs-db = { workspace = true }
tauri-plugin-fs-sync = { workspace = true }
tauri-plugin-fs2 = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use ext::*;
use store::*;

use tauri::Manager;

Check warning on line 11 in apps/desktop/src-tauri/src/lib.rs

View workflow job for this annotation

GitHub Actions / desktop_ci (linux, depot-ubuntu-22.04-8)

unused import: `tauri::Manager`

Check warning on line 11 in apps/desktop/src-tauri/src/lib.rs

View workflow job for this annotation

GitHub Actions / desktop_ci (linux, depot-ubuntu-22.04-8)

unused import: `tauri::Manager`
use tauri_plugin_permissions::{Permission, PermissionsPluginExt};
use tauri_plugin_windows::{AppWindow, WindowsPluginExt};

Expand Down Expand Up @@ -77,6 +77,7 @@
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_opener2::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_fs::init())
.plugin(tauri_plugin_analytics::init())
.plugin(tauri_plugin_bedrock::init())
.plugin(tauri_plugin_importer::init())
Expand Down
33 changes: 21 additions & 12 deletions apps/desktop/src/components/feedback/feedback-modal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { downloadDir } from "@tauri-apps/api/path";
import { save } from "@tauri-apps/plugin-dialog";
import { writeTextFile } from "@tauri-apps/plugin-fs";
import { arch, version as osVersion, platform } from "@tauri-apps/plugin-os";
import { Bug, Lightbulb, X } from "lucide-react";
import { useCallback, useEffect, useState } from "react";
Expand Down Expand Up @@ -103,18 +106,24 @@ export function FeedbackModal() {
if (attachLogs) {
const logContent = await getLogContent();
if (logContent) {
logSection = `

## Application Logs (last 1000 lines, redacted)
<details>
<summary>Click to expand logs</summary>

\`\`\`
${logContent}
\`\`\`

</details>
const defaultPath = await downloadDir();
const timestamp = new Date().toISOString().replace(/[:.]/g, "-");
const defaultFileName = `hyprnote-logs-${timestamp}.txt`;

const filePath = await save({
title: "Save Application Logs",
defaultPath: `${defaultPath}/${defaultFileName}`,
filters: [{ name: "Text Files", extensions: ["txt", "log"] }],
});

if (filePath) {
await writeTextFile(filePath, logContent);
logSection = `

## Application Logs
Logs have been saved to a file. Please attach the saved log file to this issue.
`;
}
}
}

Expand Down Expand Up @@ -267,7 +276,7 @@ ${logSection}
htmlFor="attach-logs"
className="text-sm text-neutral-600 cursor-pointer"
>
Attach application logs (user info redacted)
Save application logs to file (for manual attachment)
</label>
</div>

Expand Down
Loading
Loading