mirror of
https://github.com/nimbold/Firelink.git
synced 2026-07-26 12:08:27 +00:00
fix: resolve keyboard shortcut and log state edge cases, add privacy note
- Disabled Backspace/Delete keyboard shortcuts when any app modal is active - Synced frontend LogsView pause state with the backend on initial mount - Added a privacy and telemetry note in the Logs view to inform users - Removed legacy polling dead code from LogsView
This commit is contained in:
@@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react';
|
||||
import { invokeCommand as invoke } from '../ipc';
|
||||
import { save } from '@tauri-apps/plugin-dialog';
|
||||
import { attachLogger } from '@tauri-apps/plugin-log';
|
||||
import { FileDown, Trash2, Terminal, Filter, Play, Pause } from 'lucide-react';
|
||||
import { FileDown, Trash2, Terminal, Filter, Play, Pause, Info } from 'lucide-react';
|
||||
import { WindowDragRegion } from './WindowDragRegion';
|
||||
import { useToast } from '../contexts/ToastContext';
|
||||
|
||||
@@ -171,6 +171,15 @@ export default function LogsView() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Privacy Hint */}
|
||||
<div className="bg-black/10 border-y border-border-modal px-4 py-2 shrink-0 flex items-center gap-2 text-text-muted text-[10px] select-none">
|
||||
<Info size={12} className="text-text-muted opacity-80 shrink-0" />
|
||||
<span className="opacity-90 leading-tight">
|
||||
<strong className="font-medium text-text-primary mr-1">Privacy Note:</strong>
|
||||
Telemetry securely captures basic hardware capabilities (OS, CPU, RAM) exclusively for troubleshooting. No unique identifiers or sensitive paths are collected. Logs remain entirely offline on your device until manually exported.
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* Console */}
|
||||
<div ref={scrollRef} className="logs-console flex-1 overflow-y-auto p-3 font-mono text-[11px] leading-[1.5] select-text" style={{ userSelect: 'text', WebkitUserSelect: 'text' }}>
|
||||
{logs.length === 0 && (
|
||||
|
||||
Reference in New Issue
Block a user