Fix CameraEntropy video initialization and add stats review panel

- Fix videoRef timing issue by using useEffect for video setup
- Stop animation loop on capture to prevent infinite warnings
- Fix null canvas reference in generateMnemonicFromEntropy
- Add stats review panel with continue/retake options
- Add seed generation explanation and blurred preview
- Implement seed generation from camera noise/entropy bits and enhance dice rolls with detailed statistical analysis
This commit is contained in:
LC mac
2026-02-10 00:15:49 +08:00
parent 185efe454f
commit 586eabc361
6 changed files with 1095 additions and 175 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { Shield, RefreshCw, Lock, Unlock } from 'lucide-react';
import { Shield, RefreshCw } from 'lucide-react';
import SecurityBadge from './badges/SecurityBadge';
import StorageBadge from './badges/StorageBadge';
import ClipboardBadge from './badges/ClipboardBadge';
@@ -28,7 +28,6 @@ interface HeaderProps {
activeTab: 'create' | 'backup' | 'restore' | 'seedblender';
onRequestTabChange: (tab: 'create' | 'backup' | 'restore' | 'seedblender') => void;
encryptedMnemonicCache: any;
handleLockAndClear: () => void;
appVersion: string;
isLocked: boolean;
onToggleLock: () => void;
@@ -45,7 +44,6 @@ const Header: React.FC<HeaderProps> = ({
activeTab,
onRequestTabChange,
encryptedMnemonicCache,
handleLockAndClear,
appVersion,
isLocked,
onToggleLock,